Hey all. I know this isn't a .NET support group, but I was hoping someone could help me with I'm probably I'm having trying to get suds to work with a .NET SOAP service. I'm using version in tags/release-0.2 since the trunk version can't even parse my WSDL.
When sending the POST via suds, here is what my SOAP XML looks like:
<SOAP-ENV:Envelope xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="http://www.perseus.com/Pdc.WS" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/%22%3E SOAP-ENV:Body tns:Login <userName>myUsername</userName> <password>myPassword</password> </tns:Login> </SOAP-ENV:Body> </SOAP-ENV:Envelope>
which gives me a useless .NET error which is the equivelant of a generic 500 server error:
System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.NullReferenceException: Object reference not set to an instance of an object.
I was able to get the error to go away by simple dropping the tns namespace from the Login node and adding xmlns attribute instead:
<SOAP-ENV:Envelope xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="http://www.perseus.com/Pdc.WS" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/%22%3E SOAP-ENV:Body <Login xmlns="http://www.perseus.com/Pdc.WS"> <userName>myUsername</userName> <password>myPassword</password> </Login> </SOAP-ENV:Body> </SOAP-ENV:Envelope>
As I'm fairly namespace-challenged, any ideas why this may be happening? Thanks in advance for any assistance.
I'd be happy to send the WSDL via e-mail to whoever may want to take a look.
-Rob (Fairbanks)