簡體   English   中英

如果服務參考無法正常工作,我該怎么辦?

[英]Is there anything I can do if a Service Reference is not working?

我正在嘗試在https://www.paypal.com/wsdl/PayPalSvc.wsdl上獲得對Paypal API的引用,但是將其添加為服務引用或網絡引用

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:

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友好的。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM