kartagis / pysimplesoap

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

Issue in sending a webservice request with soap12 #81

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. I am trying to run the below simple client with *soap1.2*  as below which 
makes a webservice request to a tomcat server. It dies with the error noted in 
following section.

>>
from pysimplesoap.client import SoapClient

client = 
SoapClient(wsdl='http://testserver:7007/testapp/services/testService?wsdl',
    soap_ns='soap12',
    trace=False,
    soap_server='oracle');
result = client.hasRole(userId='test123', role='testview')
print result

2. What is the expected output? What do you see instead?
I am getting below error:

>>
Traceback (most recent call last):
  File "test_pysimplesoap.py", line 13, in <module>
    result = client.hasRole(userId='test123', role='testview')
  File "/pysimplesoap/pysimplesoap-1.05a/pysimplesoap/client.py", line 140, in <lambda>
    return lambda *args, **kwargs: self.wsdl_call(attr,*args,**kwargs)
  File "/pysimplesoap/pysimplesoap-1.05a/pysimplesoap/client.py", line 290, in wsdl_call
    response = self.call(method, *params)
  File "/pysimplesoap/pysimplesoap-1.05a/pysimplesoap/client.py", line 188, in call
    if self.exceptions and response("Fault", ns=soap_namespaces.values(), error=False):
  File "/pysimplesoap-1.05a/pysimplesoap/simplexml.py", line 282, in __call__
    elements = self._element.getElementsByTagNameNS(ns_uri, tag)
  File "/pysimplesoap/pysimplesoap-1.05a/pysimplesoap/simplexml.py", line 373, in <lambda>
    _element = property(lambda self: self.__elements[0])
TypeError: 'NoneType' object is unsubscriptable

>>

3. What version of the product are you using? On what operating system?

I am using pysimplesoap-1.05a version on a linux machine. 

Please provide any additional information below.

Original issue reported on code.google.com by talk2m...@gmail.com on 1 Oct 2012 at 10:44

GoogleCodeExporter commented 8 years ago
Please, can you test the latest version from the repository?

__version__ = "1.07a"

http://code.google.com/p/pysimplesoap/source/checkout

Original comment by reingart@gmail.com on 9 Oct 2012 at 8:16

GoogleCodeExporter commented 8 years ago
The error should be fixed in the latest developement version 1.12, so I'm 
closing this issue due inactivity.

Please download and test the latest source code from the repository until the 
release:

https://pysimplesoap.googlecode.com/archive/default.zip

If you can provide a WSDL we could make a test case

Original comment by reingart@gmail.com on 22 Jan 2014 at 3:41