| | |
Client Web Service
![]() |
•
•
Join Date: Mar 2008
Posts: 1
Reputation:
Solved Threads: 0
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.
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>
![]() |
Similar Threads
- Accessing a Web Service (RSS, Web Services and SOAP)
- Error in Web Service (C#)
- how to get the connected user name in web service (C#)
- Strange WSE error when trying to connect to web service (RSS, Web Services and SOAP)
- Web Services (ASP.NET)
- Asynchronous Web Services in .NET Using WSE 2.0 (ASP.NET)
- outlook via the web (Windows Software)
- Installing a web service and a form application together (ASP.NET)
- How to maintain session for Web Services Object? (VB.NET)
Other Threads in the Python Forum
- Previous Thread: Making a programs in addition to the main one
- Next Thread: Python web browser automation
| Thread Tools | Search this Thread |
alarm anydbm app beginner cipher cmd coordinates curves cx-freeze data decimals development dictionary directory dynamic error examples feet file float format function generator getvalue gui halp handling homework http images import input ip itunes java keycontrol leftmouse line linux list lists loop maintain maze millimeter module mouse number numbers output parsing path port prime programming projects push py2exe pygame pyglet pymailer pyqt python queue random recursion recursive schedule screensaverloopinactive script scrolledtext slicenotation split sqlite ssh string strings sudokusolver terminal text threading time tlapse tuple tutorial type ubuntu unicode url urllib urllib2 variable variables ventrilo vigenere web webservice wikipedia wxpython xlwt





