[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Ksoap: SOAP Message ?


Title: SOAP Message ?

Hi all,

When i try to access a web service by using the kSOAP API's i get an empty xml name space... why is this... if you could tell me why is this i would be greatful... please refer the place highlighted in red...


the code that i've used is as follows...

                transport = new HttpTransport( serviceUrl, soapAction);
                transport.debug = true;
               
                classMap = new ClassMap(true);
                transport.setClassMap( classMap );
               
                request = new SoapObject( serviceNamespace, methodName );
                request.addProperty( "name", "Charith Indika Fernando");
                  transport.call(request);

i get the response message from "transport.responseDump"

<SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:xsd="http://www.w3.org/1999/XMLSchema" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">

 <SOAP-ENV:Body SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
  <GetByName xmlns="http://tempuri.org/" id="o0" SOAP-ENC:root="1">
   <name xmlns="" xsi:type="xsd:string">Charith Indika Fernando</name>
  </GetByName>
 </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Thank you,
Regards,
Charith I Fernando