bufubaoni / pysimplesoap

Automatically exported from code.google.com/p/pysimplesoap
0 stars 0 forks source link

Invalid WSDL params parsing WSDL with imported schema #152

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create Client with WSDL
    api_client = SoapClient(wsdl=https://api.jasperwireless.com/ws/service/echo,
        wsdl_basedir='api.jasperwireless.com/ws/schema', 
        ns='sch',
        )  
2. Execute Echo operation
    response = get_api_client().Echo(
                                     {'value':'my echo')

What is the expected output?
PySimpleSOAP sends Request with the following content:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:sch="http://apitest.jasperwireless.com/ws/schema">
   <soapenv:Header/>
   <soapenv:Body>
      <sch:EchoRequest>
         <sch:licenseKey>?</sch:licenseKey>
         <sch:value>?</sch:value>
         ...
      </sch:EchoRequest>
   </soapenv:Body>
</soapenv:Envelope>

What do you see instead?
WSDL doesn't validate request. PySimpleSOAP expects a request of this type:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:sch="http://api.jasperwireless.com/ws/schema">
   <soapenv:Header/>
   <soapenv:Body>
      <sch:EchoRequest>
         <sch:body>
            ..
         </sch:body>
      </sch:EchoRequest>
   </soapenv:Body>
</soapenv:Envelope>

What version of the product are you using? On what operating system?
Current one from vcs

Original issue reported on code.google.com by duartebruno@gmail.com on 23 Jul 2014 at 8:29

GoogleCodeExporter commented 8 years ago
Thanks for reporting.
Where is the WSDL? The URL seems incomplete, so I cannot test it nor make a fix.
Also, could you test v1.10?

Original comment by reingart@gmail.com on 23 Jul 2014 at 9:05

GoogleCodeExporter commented 8 years ago
Apologies... Full URI of the WSDL is 
https://api.jasperwireless.com/ws/schema/Echo.wsdl I tried with 1.10 a WSDL 
from the same provider but got a KeyError

Original comment by duartebruno@gmail.com on 23 Jul 2014 at 11:44