3

OpenESB (Glassfish-full-installer-windows2.1) で Netbeans 6.5.1 を実行しています。

外部 WSDL を呼び出すローカルWSDL ( http://www.webservicex.net/ CreditCard.asmx?WSDL )。BPEL の準備ができました

ここに画像の説明を入力

複合アプリケーションを作成すると、SOAP 呼び出しがローカル WSDL から BPEL (Consumer to Producer) に自動的にバインドされます。別の SOAP オブジェクトをドラッグ アンド ドロップし、ローカル WSDL と同じインターフェイスで構成して出力を受け取る必要がありました。呼び出しアクション (正しいですか?)。

ここに画像の説明を入力

ローカル WSDL から操作を選択してテスト ケースを実行すると、次の SoapResponse が得られます。

<SOAP-ENV:Fault>
      <faultcode xmlns="">SOAP-ENV:Server</faultcode>
      <faultstring xmlns="">BPCOR-6135: A fault was not handled in the process scope; Fault Name is {http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/ErrorHandling}systemFault; Fault Data is &a....Sending errors for the pending requests in the process scope before terminating the process instance</faultstring>
      <faultactor xmlns="">sun-bpel-engine</faultactor>
      <detail xmlns="">
        <detailText>BPCOR-6135: A fault was not handled in the process scope; Fault Name is {http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/ErrorHandling}systemFault; Fault Data is &a... Sending errors for the pending requests in the process scope before terminating the process instance
   Caused by: BPCOR-6131: An Error status was received while doing an invoke (partnerLink=externalBPELImplementation, portType={http://www.webservicex.net}CCCheckerSoap, operation=ValidateCardNumber)
BPCOR-6129: Line Number is 37
BPCOR-6130: Activity Name is Invoke1
   Caused by: HTTP Status-Code 404: Not Found - Not Found</detailText>
      </detail>

外部 WSDL をテストする別のプロジェクトを作成しましたが、期待どおりにクレジット カード番号を検証していますが、BPEL または複合アプリケーションに問題があります。

別のテスト ケースを作成し、Soap オブジェクトを Comp. アプリ。インターフェイスを設計すると、別のエラーが発生します。

Dec 24, 2012 12:54:11 AM com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection call
SEVERE: SAAJ0006: Bad URL (endPoint instance of String)
java.net.MalformedURLException: no protocol:

何か案は?

4

2 に答える 2

1

www.open-esb.netの@brasseldによると

実際、あなたは 2 つの間違いを犯しています。

  • 最初の単体テストでは、具体的な SOAP WSDL (CreditCard_WSDL.wsdl) を作成したため、BPEL から取得した適切な WSDL を使用する必要があります。
  • 次に、複合アプリケーションで plnk externalServiceCard_WSDL の新しいポートを作成するときに、右クリック > プロパティで SOAP アドレスの場所を設定する必要があります。デフォルトでは、これは localhost:${HttpDefaultPort}/compositeapp/casaportX?wsdl に設定されているため、エラー (404 または不正な URL エラー) が発生します。

彼の提案に基づいて、開発プロセスを段階的に文書化することにしました。結果は次のとおりです。

http://www.youtube.com/watch?v=-1W1xR3-iJQ

于 2012-12-30T13:02:42.723 に答える