<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Using python SUDS for web service testing</title>
	<atom:link href="http://www.code3.dk/using-python-suds-for-web-service-testing/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.code3.dk/using-python-suds-for-web-service-testing/</link>
	<description>Techchat</description>
	<lastBuildDate>Wed, 08 Apr 2009 12:41:46 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: AN</title>
		<link>http://www.code3.dk/using-python-suds-for-web-service-testing/comment-page-1/#comment-7</link>
		<dc:creator>AN</dc:creator>
		<pubDate>Wed, 08 Apr 2009 12:41:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.code3.dk/?p=212#comment-7</guid>
		<description>Hi Renuka,

It seems you get a parse error - so maybe your axis server does not return what you expect.

To test just the suds code you can try to connect to a service on the internet. Eg.

==============

from suds import WebFault
from suds.client import Client

client = Client(&#039;http://www.weather.gov/forecasts/xml/SOAP_server/ndfdXMLserver.php?wsdl&#039;)
print client

print client.service.LatLonListZipCode(&#039;90210&#039;)

===============

Good luck.
Anders</description>
		<content:encoded><![CDATA[<p>Hi Renuka,</p>
<p>It seems you get a parse error &#8211; so maybe your axis server does not return what you expect.</p>
<p>To test just the suds code you can try to connect to a service on the internet. Eg.</p>
<p>==============</p>
<p>from suds import WebFault<br />
from suds.client import Client</p>
<p>client = Client(&#8216;<a href="http://www.weather.gov/forecasts/xml/SOAP_server/ndfdXMLserver.php?wsdl" rel="nofollow">http://www.weather.gov/forecasts/xml/SOAP_server/ndfdXMLserver.php?wsdl</a>&#8216;)<br />
print client</p>
<p>print client.service.LatLonListZipCode(&#8217;90210&#8242;)</p>
<p>===============</p>
<p>Good luck.<br />
Anders</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Renuka</title>
		<link>http://www.code3.dk/using-python-suds-for-web-service-testing/comment-page-1/#comment-5</link>
		<dc:creator>Renuka</dc:creator>
		<pubDate>Mon, 06 Apr 2009 22:04:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.code3.dk/?p=212#comment-5</guid>
		<description>Hi, 
I tried using suds the way its mentioned in the docs and above example. But python is unable to receive response
It gives me the following error 
=====================================================
Suds ( https://fedorahosted.org/suds/ )  version: 0.3.5 (GA)  build: R494-20090403

Service ( Hello ) tns=&quot;http://www.example.org/Hello/&quot;
   Prefixes (0)
   Ports (1):
      (HelloSOAP)
         Methods (1):
            HelloWorld(xs:string HelloWorldRequest, )
         Types (0):

Traceback (most recent call last):
  File &quot;C:/PythonEx/sudex.py&quot;, line 11, in 
    resp.set_element_HelloWorldResponse = client.service.HelloWorld(&#039;IssacRenuka&#039;)
  File &quot;build\bdist.win32\egg\suds\client.py&quot;, line 240, in __call__
    return target.call(*args, **kwargs)
  File &quot;build\bdist.win32\egg\suds\client.py&quot;, line 379, in call
    return method(*args, **kwargs)
  File &quot;build\bdist.win32\egg\suds\client.py&quot;, line 240, in __call__
    return target.call(*args, **kwargs)
  File &quot;build\bdist.win32\egg\suds\client.py&quot;, line 422, in call
    return client.invoke(args, kwargs)
  File &quot;build\bdist.win32\egg\suds\client.py&quot;, line 480, in invoke
    result = self.send(msg)
  File &quot;build\bdist.win32\egg\suds\client.py&quot;, line 505, in send
    result = self.succeeded(binding, reply.message)
  File &quot;build\bdist.win32\egg\suds\client.py&quot;, line 537, in succeeded
    r, p = binding.get_reply(self.method, reply)
  File &quot;build\bdist.win32\egg\suds\bindings\binding.py&quot;, line 132, in get_reply
    replyroot = self.parser.parse(string=reply)
  File &quot;build\bdist.win32\egg\suds\sax\parser.py&quot;, line 128, in parse
    parseString(string, handler)
  File &quot;C:\Python26\lib\xml\sax\__init__.py&quot;, line 49, in parseString
    parser.parse(inpsrc)
  File &quot;C:\Python26\lib\xml\sax\expatreader.py&quot;, line 107, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File &quot;C:\Python26\lib\xml\sax\xmlreader.py&quot;, line 123, in parse
    self.feed(buffer)
  File &quot;C:\Python26\lib\xml\sax\expatreader.py&quot;, line 211, in feed
    self._err_handler.fatalError(exc)
  File &quot;C:\Python26\lib\xml\sax\handler.py&quot;, line 38, in fatalError
    raise exception
SAXParseException: :1:0: syntax error
=====================================================

Code is as follows
============================
from suds import WebFault
from suds.client import Client

client = Client(&#039;http://localhost:8080/axis2/services/Hello?wsdl&#039;)
print client
client.service.HelloWorld(&#039;ABC&#039;)</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I tried using suds the way its mentioned in the docs and above example. But python is unable to receive response<br />
It gives me the following error<br />
=====================================================<br />
Suds ( <a href="https://fedorahosted.org/suds/" rel="nofollow">https://fedorahosted.org/suds/</a> )  version: 0.3.5 (GA)  build: R494-20090403</p>
<p>Service ( Hello ) tns=&#8221;http://www.example.org/Hello/&#8221;<br />
   Prefixes (0)<br />
   Ports (1):<br />
      (HelloSOAP)<br />
         Methods (1):<br />
            HelloWorld(xs:string HelloWorldRequest, )<br />
         Types (0):</p>
<p>Traceback (most recent call last):<br />
  File &#8220;C:/PythonEx/sudex.py&#8221;, line 11, in<br />
    resp.set_element_HelloWorldResponse = client.service.HelloWorld(&#8216;IssacRenuka&#8217;)<br />
  File &#8220;build\bdist.win32\egg\suds\client.py&#8221;, line 240, in __call__<br />
    return target.call(*args, **kwargs)<br />
  File &#8220;build\bdist.win32\egg\suds\client.py&#8221;, line 379, in call<br />
    return method(*args, **kwargs)<br />
  File &#8220;build\bdist.win32\egg\suds\client.py&#8221;, line 240, in __call__<br />
    return target.call(*args, **kwargs)<br />
  File &#8220;build\bdist.win32\egg\suds\client.py&#8221;, line 422, in call<br />
    return client.invoke(args, kwargs)<br />
  File &#8220;build\bdist.win32\egg\suds\client.py&#8221;, line 480, in invoke<br />
    result = self.send(msg)<br />
  File &#8220;build\bdist.win32\egg\suds\client.py&#8221;, line 505, in send<br />
    result = self.succeeded(binding, reply.message)<br />
  File &#8220;build\bdist.win32\egg\suds\client.py&#8221;, line 537, in succeeded<br />
    r, p = binding.get_reply(self.method, reply)<br />
  File &#8220;build\bdist.win32\egg\suds\bindings\binding.py&#8221;, line 132, in get_reply<br />
    replyroot = self.parser.parse(string=reply)<br />
  File &#8220;build\bdist.win32\egg\suds\sax\parser.py&#8221;, line 128, in parse<br />
    parseString(string, handler)<br />
  File &#8220;C:\Python26\lib\xml\sax\__init__.py&#8221;, line 49, in parseString<br />
    parser.parse(inpsrc)<br />
  File &#8220;C:\Python26\lib\xml\sax\expatreader.py&#8221;, line 107, in parse<br />
    xmlreader.IncrementalParser.parse(self, source)<br />
  File &#8220;C:\Python26\lib\xml\sax\xmlreader.py&#8221;, line 123, in parse<br />
    self.feed(buffer)<br />
  File &#8220;C:\Python26\lib\xml\sax\expatreader.py&#8221;, line 211, in feed<br />
    self._err_handler.fatalError(exc)<br />
  File &#8220;C:\Python26\lib\xml\sax\handler.py&#8221;, line 38, in fatalError<br />
    raise exception<br />
SAXParseException: :1:0: syntax error<br />
=====================================================</p>
<p>Code is as follows<br />
============================<br />
from suds import WebFault<br />
from suds.client import Client</p>
<p>client = Client(&#8216;<a href="http://localhost:8080/axis2/services/Hello?wsdl" rel="nofollow">http://localhost:8080/axis2/services/Hello?wsdl</a>&#8216;)<br />
print client<br />
client.service.HelloWorld(&#8216;ABC&#8217;)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

