1

Netbean 6.8 で ws-import を使用して、この Java クラスの生成を試みました。パッケージ ebay.api.paypalapi でエラーが見つかったため、jax-ws を再生成したかった (エラーは、Paypal SOAP Api の wsdl ファイルによるものだと思います)。

Netbean 6.8 では生成されたソース (jax-ws) を削除できないため、www.paypal.com/wsdl/PayPalSvc.wsdl に基づいて wsdl を使用して別の ws ファイルを再作成しましたが、まだ機能していません。

この問題を修正するために何をすべきか誰かが私にアドバイスしてくれることを願っています. ありがとう。

エラーコードは次のとおりです。

    20-Oct-2012 21:39:18 : Retrieving Location: http://www.paypal.com/wsdl/PayPalSvc.wsdl 

    Retrieved :    https://www.paypalobjects.com/wsdl/PayPalSvc.wsdl 
    Saved at: C:\Documents and Settings\Karen\Desktop\ShoppingCart\src\conf       
    \xml-resources\web-service-references\PayPalSvc\wsdl\www.paypalobjects.com\wsdl\PayPalSvc.wsdl
     Retrieving Location: CoreComponentTypes.xsd 
    Found in document: https://www.paypalobjects.com/wsdl/PayPalSvc.wsdl

    Error: An I/O error occured. Remote host closed connection during handshake
    Retrieving Location: eBLBaseComponents.xsd 
    Found in document: https://www.paypalobjects.com/wsdl/PayPalSvc.wsdl
    Retrieved :    https://www.paypalobjects.com/wsdl/eBLBaseComponents.xsd 
    Saved at: C:\Documents and Settings\Karen\Desktop\ShoppingCart\src\conf     \xml-resources\web-service-        references\PayPalSvc\wsdl\www.paypalobjects.com\wsdl\eBLBaseComponents.xsd
    Retrieving Location: EnhancedDataTypes.xsd 
    Found in document: https://www.paypalobjects.com/wsdl/PayPalSvc.wsdl
    Retrieved :    https://www.paypalobjects.com/wsdl/EnhancedDataTypes.xsd 
    Saved at: C:\Documents and Settings\Karen\Desktop\ShoppingCart\src\conf\xml-resources\web-service-        references\PayPalSvc\wsdl\www.paypalobjects.com\wsdl\EnhancedDataTypes.xsd
    Retrieving Location: CoreComponentTypes.xsd 
    Found in document: https://www.paypalobjects.com/wsdl/eBLBaseComponents.xsd
    Retrieved :    https://www.paypalobjects.com/wsdl/CoreComponentTypes.xsd 
    Saved at: C:\Documents and Settings\Karen\Desktop\ShoppingCart\src\conf \xml-resources\web-service-        references\PayPalSvc\wsdl\www.paypalobjects.com\wsdl\CoreComponentTypes.xsd
    Retrieving Location: EnhancedDataTypes.xsd 
    Found in document: https://www.paypalobjects.com/wsdl/eBLBaseComponents.xsd
    File name already exists with the same content length. Ignoring the file.:
    Retrieving Location: EnhancedDataTypes.xsd 
    Found in document: https://www.paypalobjects.com/wsdl/eBLBaseComponents.xsd
    Retrieving Location: eBLBaseComponents.xsd 
    Found in document: https://www.paypalobjects.com/wsdl/CoreComponentTypes.xsd
    File name already exists with the same content length. Ignoring the file.:
    Retrieving Location: eBLBaseComponents.xsd 
    Found in document: https://www.paypalobjects.com/wsdl/CoreComponentTypes.xsd`
4

2 に答える 2

1

wsimport は自分で手動で使用できます。

wsdl ファイルと、wsdl ファイルにリンクされているすべての xsd ファイルをダウンロードしてみてください。wsdl ファイルを .xml として保存し、xsd ファイルを .xsd ファイルとして保存します。wsdl ファイルを変更して、ローカルの xsd ファイルを指すようにします。

次に、以下を使用して wsimport を実行してみてください: -

wsimport -keep -verbose -s . -d . -wsdllocation

次に、デバッグを試みます。

于 2012-10-24T19:19:19.830 に答える