2011-06-25 9 views
1

私はhttps://www.paypal.com/wsdl/PayPalSvc.wsdlでPayPalのAPIへの参照を取得しようとしているが、サービス参照として追加するか、Web参照がサービスリファレンスが機能していない場合は何ができますか?

charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported  method is implemented properly. The first 1024 bytes of the response were: '<?xml  version="1.0" encoding="UTF-8"?> 
<wsdl:definitions 
ns:version="76.0" 
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
xmlns:xs="http://www.w3.org/2001/XMLSchema" 
xmlns="http://schemas.xmlsoap.org/wsdl/" 
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" 
xmlns:ns="urn:ebay:api:PayPalAPI" 
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
xmlns:ebl="urn:ebay:apis:eBLBaseComponents" 
xmlns:cc="urn:ebay:apis:CoreComponentTypes" 
xmlns:ed="urn:ebay:apis:EnhancedDataTypes" 
targetNamespace="urn:ebay:api:PayPalAPI"> 
<wsdl:types> 
    <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:ebay:api:PayPalAPI" elementFormDefault="qualified" attributeFormDefault="unqualified"> 
     <import namespace="urn:ebay:apis:CoreComponentTypes" schemaLocation="CoreComponentTypes.xsd"/> 
     <import namespace="urn:ebay:apis:eBLBaseComponents" schemaLocation="eBLBaseComponents.xsd"/> 
     <import namespace="urn:ebay:apis:EnhancedDataTypes" schemaLocation="En'. 
If the service is defined in the current solution, try building the solution and adding the service reference again. 

を立ち上げるように私はそれがより多くの可能性がありますように、私はPayPalのより何か間違ったことをやっていると感じていますAPIが壊れています。 私が従っているチュートリアルでは、この場合に何をすべきかについては何も言及していません。手動でWSDLを走っ

答えて

0

Error: There was an error processing 'https://www.paypalobjects.com/wsdl/PayPalS 
vc.wsdl'. 
    - The document was understood, but it could not be processed. 
    - The WSDL document contains links that could not be resolved. 
    - The 'maxOccur' attribute is not supported in this context. 

WSDLは非常に.NETフレンドリーではない、それはそうです。

+0

どうすればよいですか?サイトにあった唯一の他のオプションは、xsdなどのものでしたが、同じエラーが発生しました。 –

+0

@Brian私はここですべてを試してみるでしょう:http://stackoverflow.com/questions/386155/comparison-of-xsd-codegenerators-c –

+0

ありがとう、私はそれを今日後でチェックします。 –

関連する問題