|
|
|
PayPal Developer Community >
Forums >
Technical Discussion >
PayPal SOAP API >
WSDL error... again
|
|
|
|
|
|
WSDL error... again
|
|
lepipele
Ace Developer
Posts: 226
Registered: 08-25-2009


Message 1 of 8

Viewed 1,057 times
|

|
|
When adding reference to PayPal Webservice (https://www.paypal.com/wsdl/PayPalSvc.wsdl) in Visual Studio 2008 I now get following error: The document was understood, but it could not be processed. - The WSDL document contains links that could not be resolved. - The 'maxoccurs' attribute is not supported in this context. Metadata contains a reference that cannot be resolved: 'https://www.paypal.com/wsdl/PayPalSvc.wsdl'. The content type application/wsdl+xml of the response message does not match the content type of the binding (application/soap+xml; 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="60.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 ayPalAPI" 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 ayPalAPI"> <wsdl:types> <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:ebay:api ayPalAPI" 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. Everything was working fine few days ago... so I'm sure it's a bug in new build. It also happens for https://www.sandbox.paypal.com/wsdl/PayPalSvc.wsdl
|
|
|
|
10-17-2009 10:40 AM
|
|
|
|
|
|
Re: WSDL error... again
|
|
agclark
Newbie
Posts: 6
Registered: 09-28-2007


Message 2 of 8

Viewed 944 times
|

|
|
We're having the same trouble here using the PayPal WSDL with Visual Studio 2008. We're receiving the error below when we attempt to add it as a web reference. (Note: We didn't receive this error message when we were using version 55.0 of the WSDL, so this is something new that has popped up.) The error is as follows: The document was understood, but it could not be processed. - The WSDL document contains links that could not be resolved. - The 'maxoccurs' attribute is not supported in this context. There was an error downloading 'http://www.paypal.com/wsdl/PayPalSvc.wsdl/$metadata'. The request failed with
|
|
|
|
10-20-2009 10:19 AM
|
|
|
|
|
|
Re: WSDL error... again
|
|
Cameron
Newbie
Posts: 2
Registered: 10-20-2009


Message 3 of 8

Viewed 903 times
|

|
|
I am recieving the same error when connect to the web service too. Cam
|
|
|
|
10-20-2009 06:03 PM
|
|
|
|
|
|
|
|
|
|
Re: WSDL error... again
|
|
okoleg
Newbie
Posts: 1
Registered: 10-22-2009


Message 6 of 8

Viewed 778 times
|

|
|
Hi, We have the same issue! Is it any estimated/deadline for fixing this bug? Thank's
|
|
|
|
10-22-2009 08:51 AM
|
|
|
|
|
|
Re: WSDL error... again
[ Edited ]
|
|
lepipele
Ace Developer
Posts: 226
Registered: 08-25-2009


Message 7 of 8

Viewed 745 times
|

|
|
I've implemented temporary fix... here are the details (copy-paste from here):
------- OK - the problem is - some wise guy has set following in eBLBaseComponents.xsd @ line 8813:
<element name="SellerId" type="xs:string" minOccurs="0" maxoccurs="1">
And, of course, it should be maxOccurs (with capital o):
<element name="SellerId" type="xs:string" minOccurs="0" maxOccurs="1">
Temporary fix - I've uploaded correct WSDL & XSDs to this address: http://87.106.94.233/!paypal/PayPalSvc.wsdl After you point Visual Studio 2008 to this address it should parse WSDL correctly and give you classes to invoke PayPal; as far as I can tell this should work (tested with call to GetAvailableBalance).
As soon as PayPal fixes their WSDL I'll let you know (and remove my WSDL). Message Edited by lepipele on 10-23-2009 07:52 AM
|
|
|
|
10-22-2009 10:46 PM
|
|
|
|
|
|
|
|
|