Jump to Page:   1
WSDL error... again
Options    Options  
lepipele
Ace Developer
Posts: 226
Registered: 08-25-2009


lepipele

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:smileytongue: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:smileytongue:ayPalAPI">
    <wsdl:types>
        <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:ebay:api:smileytongue: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 


 

2
Kudos!
10-17-2009 10:40 AM  
Re: WSDL error... again
Options    Options  
agclark
Newbie
Posts: 6
Registered: 09-28-2007


agclark

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

Kudos!
10-20-2009 10:19 AM  
Re: WSDL error... again
Options    Options  
Cameron
Newbie
Posts: 2
Registered: 10-20-2009


Cameron

Message 3 of 8

Viewed 903 times


I am recieving the same error when connect to the web service too.

Cam

Kudos!
10-20-2009 06:03 PM  
Re: WSDL error... again
Options    Options  
lepipele
Ace Developer
Posts: 226
Registered: 08-25-2009


lepipele

Message 4 of 8

Viewed 875 times


Error is confirmed, and PayPal is working on it... hopefully it won't be long until they fix it...
 

Kudos!
10-21-2009 07:29 AM  
Re: WSDL error... again
Options    Options  
Cameron
Newbie
Posts: 2
Registered: 10-20-2009


Cameron

Message 5 of 8

Viewed 827 times


Hi Cameron,

This for reporting the issue, we are looking to fix the problem, for now as a work around try downloading the WSDL and schema files listed on this page https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/library_download_sdks and modify eBLBaseComponents.xsd on line 8813 from:

<element name="SellerId" type="xs:string" minOccurs="0" maxoccurs="1">

To

<element name="SellerId" type="xs:string" minOccurs="0" maxOccurs="1">

Sincerely,
Ahmad
Merchant Technical Services
PayPal, an eBay Company
Kudos!
10-21-2009 05:42 PM  
Re: WSDL error... again
Options    Options  
okoleg
Newbie
Posts: 1
Registered: 10-22-2009


okoleg

Message 6 of 8

Viewed 778 times


Hi,

 

We have the same issue!

Is it any estimated/deadline for fixing this bug?

 

Thank's

Kudos!
10-22-2009 08:51 AM  
Re: WSDL error... again   [ Edited ]
Options    Options  
lepipele
Ace Developer
Posts: 226
Registered: 08-25-2009


lepipele

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

 

Kudos!
10-22-2009 10:46 PM  
Re: WSDL error... again   [ Edited ]
Options    Options  
PP_MTS_Ahmad Moderator
Moderator
Posts: 2377
Registered: 06-07-2006



Message 8 of 8

Viewed 591 times


Thanks Lepi for updating everyone here on the forum and notifying us of the issue.

 

The issue can also be resolved by downloading your own copy of the WDSL/schema and fixing the maxoccurs error.  Here are the steps.

 

1) Download the following 4 files to the same directory (Ex. C:\WSDL)

 

https://www.paypal.com/wsdl/PayPalSvc.wsdl

https://www.paypal.com/wsdl/eBLBaseComponents.xsd

https://www.paypal.com/wsdl/CoreComponentTypes.xsd  

https://www.paypal.com/wsdl/EnhancedDataTypes.xsd

 

2) Fix the "maxoccurs" error as stated by Lepi above.

 

3) Then in Visual Studio when you create your Web Reference you can simply point to:  C:\WSDL\PayPalSvc.wsdl

Message Edited by PP_MTS_Ahmad on 10-26-2009 08:48 AM

 

Ahmad
Merchant Tech Services, PayPal

Kudos!
10-26-2009 06:44 AM  
Jump to Page:   1
Copyright © PayPal. All Rights Reserved. By using this site, you agree to be bound by PayPal's Legal Disclaimer, User Agreement, and Privacy Policy. This site is subject to change without notice. All other products and company names are trademarks of their respective corporations.