Forum Moderators: open

Message Too Old, No Replies

XML feed problem with nusoap

can't see what i'm doing wrong

         

hughie

3:25 pm on Nov 22, 2005 (gmt 0)

10+ Year Member



Hi THere

I am new to using SOAP and am having problems

i need to get:

POST /webservice/service.asmx HTTP/1.1
Host: example.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://example.com/webservices/RunSearchParams"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<RunSearchParams xmlns="http://example.com/webservices/">
<sSearchServices>string</sSearchServices>
<nReturnAttributes>int</nReturnAttributes>
<sUser>string</sUser>
<sPassword>string</sPassword>
<Host>int</Host>
</RunSearchParams>
</soap:Body>
</soap:Envelope>

but i get:

POST /webservice/service.asmx HTTP/1.0
Host: example.com
User-Agent: NuSOAP/0.7.2 (1.94)
Content-Type: text/xml; charset=ISO-8859-1
SOAPAction: "http://example.com/webservices/RunSearchParams"
Content-Length: 1379

<?xml version="1.0" encoding="ISO-8859-1"?>
<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<RunSearchParams>

<sSearchServices xsi:type="xsd:string">1</sSearchServices>
<nReturnAttributes xsi:type="xsd:int">1</nReturnAttributes>
<sUser xsi:type="xsd:string">user</sUser>
<sPassword xsi:type="xsd:string">pass</sPassword>
<Host xsi:type="xsd:int">1</Host>

</RunSearchParams>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

and an error:

<faultcode>soap:Server</faultcode>
<faultstring>Server was unable to process request. --&gt; Object reference not set to an instance of an object.</faultstring>

ANy ideas? i can supply the link to the XML feeds if required

Thanks,
hughie

[edited by: jatar_k at 8:20 am (utc) on Nov. 28, 2005]
[edit reason] generalized url [/edit]