Client Web Service

Reply

Join Date: Mar 2008
Posts: 1
Reputation: ah12345 is an unknown quantity at this point 
Solved Threads: 0
ah12345 ah12345 is offline Offline
Newbie Poster

Client Web Service

 
0
  #1
Mar 21st, 2008
I'm trying to write a client for this web service (see wsdl below), but anything I've tried so far doestn't work. With SOAPpy, I'm getting the following error:
Traceback (most recent call last):
File "<interactive input>", line 1, in ?
File "C:\Python24\Lib\site-packages\SOAPpy\Client.py", line 470, in __call__
return self.__r_call(*args, **kw)
File "C:\Python24\Lib\site-packages\SOAPpy\Client.py", line 492, in __r_call
self.__hd, self.__ma)
File "C:\Python24\Lib\site-packages\SOAPpy\Client.py", line 406, in __call
raise p
faultType: <Fault env:Client: Endpoint {AnotherName}myPort does not contain operation meta data for: doGreeting>

This is the wsdl. I've generate it in Java using WS. If anyone could please give me an example for the client in Python.

- <definitions name="myNameService" targetNamespace="AnotherName" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="AnotherName" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- <types>
- <xs:schema targetNamespace="AnotherName" version="1.0" xmlns:tns="AnotherName" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="doGreeting" type="tns:doGreeting" /> 
  <xs:element name="doGreetingResponse" type="tns:doGreetingResponse" /> 
  <xs:complexType name="doGreeting" /> 
- <xs:complexType name="doGreetingResponse">
- <xs:sequence>
  <xs:element minOccurs="0" name="myReturn" type="xs:string" /> 
  </xs:sequence>
  </xs:complexType>
  </xs:schema>
  </types>
- <message name="myName_doGreeting">
  <part element="tns:doGreeting" name="doGreeting" /> 
  </message>
- <message name="myName_doGreetingResponse">
  <part element="tns:doGreetingResponse" name="doGreetingResponse" /> 
  </message>
- <portType name="myName">
- <operation name="doGreeting" parameterOrder="doGreeting">
  <input message="tns:myName_doGreeting" /> 
  <output message="tns:myName_doGreetingResponse" /> 
  </operation>
  </portType>
- <binding name="myNameBinding" type="tns:myName">
  <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" /> 
- <operation name="doGreeting">
  <soap:operation soapAction="" /> 
- <input>
  <soap:body use="literal" /> 
  </input>
- <output>
  <soap:body use="literal" /> 
  </output>
  </operation>
  </binding>
- <service name="myNameService">
- <port binding="tns:myNameBinding" name="myPort">
  <soap:address location="http://usto230205:8080/ConverterWS/ConverterWebService" /> 
  </port>
  </service>
  </definitions>
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC