Charith Indika Fernando wrote: > 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 namespace is empty because the serialization part of the SOAP standard requires that for local properties. You are probably trying to connect a misconfigured .NET server. You will find more details when searching the archives for .NET interoperability problems. In kSOAP 2 (ksoap.org), you can set a "dotnet" flag, changing the namespace default to the container element. Best regards, Stefan > > 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 > > |