RE: SOAP Message ?

"Charith Indika Fernando" <[email protected]> Thu, 12 Feb 2004 11:44:17 +0600
Newsgroups gmane.comp.java.enhydra.ksoap
Message-ID <28B8E04BCFBEB74B9B19F765DE6598E9024612D8@enetslmaili.enetsl.virtusa.com>
This is a multi-part message in MIME format.

------_=_NextPart_001_01C3F12B.40EC9731
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

> Hi all,
>=20
> 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...
>=20
>=20
> the code that i've used is as follows...
>=20
>                 transport =3D new HttpTransport( serviceUrl, =
soapAction);
>                 transport.debug =3D true;
>                =20
>                 classMap =3D new ClassMap(true);
>                 transport.setClassMap( classMap );
>                =20
>                 request =3D new SoapObject( serviceNamespace, =
methodName );
>                 request.addProperty( "name", "Charith Indika =
Fernando");
>    	          transport.call(request);
>=20
> i get the response message from "transport.responseDump"
>=20
> <SOAP-ENV:Envelope =
xmlns:xsi=3D"http://www.w3.org/1999/XMLSchema-instance" =
xmlns:xsd=3D"http://www.w3.org/1999/XMLSchema" =
xmlns:SOAP-ENC=3D"http://schemas.xmlsoap.org/soap/encoding/" =
xmlns:SOAP-ENV=3D"http://schemas.xmlsoap.org/soap/envelope/">
>  <SOAP-ENV:Body =
SOAP-ENV:encodingStyle=3D"http://schemas.xmlsoap.org/soap/encoding/">
>   <GetByName xmlns=3D"http://tempuri.org/" id=3D"o0" =
SOAP-ENC:root=3D"1">
>    <name xmlns=3D"" xsi:type=3D"xsd:string">Charith Indika =
Fernando</name>
>   </GetByName>
>  </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>
>=20
> Thank you,
> Regards,
> Charith I Fernando=20
>=20

------_=_NextPart_001_01C3F12B.40EC9731
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
6.0.6487.1">
<TITLE>RE: SOAP Message ? </TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<UL>
<P><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Courier">Hi all,</FONT>
</P>

<P><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Courier">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...</FONT></P>
<BR>

<P><FONT SIZE=3D2 FACE=3D"Courier">the code that i've used is as =
follows...</FONT>
</P>

<P><FONT SIZE=3D2 =
FACE=3D"Courier">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; transport =3D<B> new</B> =
HttpTransport( serviceUrl, soapAction);</FONT>

<BR><FONT SIZE=3D2 =
FACE=3D"Courier">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; transport.debug =3D</FONT><B> <FONT =
SIZE=3D2 FACE=3D"Courier">true</FONT></B><FONT SIZE=3D2 =
FACE=3D"Courier">;</FONT>

<BR><FONT SIZE=3D2 =
FACE=3D"Courier">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT>

<BR><FONT SIZE=3D2 =
FACE=3D"Courier">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; classMap =3D</FONT><B> <FONT SIZE=3D2 =
FACE=3D"Courier">new</FONT></B><FONT SIZE=3D2 FACE=3D"Courier"> =
ClassMap(</FONT><B><FONT SIZE=3D2 FACE=3D"Courier">true</FONT></B><FONT =
SIZE=3D2 FACE=3D"Courier">);</FONT>

<BR><FONT SIZE=3D2 =
FACE=3D"Courier">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; transport.setClassMap( classMap =
);</FONT>

<BR><FONT SIZE=3D2 =
FACE=3D"Courier">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT>

<BR><FONT SIZE=3D2 =
FACE=3D"Courier">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; request =3D</FONT><B> <FONT SIZE=3D2 =
FACE=3D"Courier">new</FONT></B><FONT SIZE=3D2 FACE=3D"Courier"> =
SoapObject( serviceNamespace, methodName );</FONT>

<BR><FONT SIZE=3D2 =
FACE=3D"Courier">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; request.addProperty( =
&quot;name&quot;, &quot;Charith Indika Fernando&quot;);</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Courier">&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT> <FONT =
SIZE=3D2 FACE=3D"Courier">transport.call(request);</FONT>
</P>

<P><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Courier">i get the response =
message from &quot;</FONT><FONT COLOR=3D"#3F7F5F" SIZE=3D2 =
FACE=3D"Courier">transport.responseDump</FONT><FONT COLOR=3D"#3F7F5F" =
SIZE=3D2 FACE=3D"Courier">&quot;</FONT>
</P>

<P><FONT COLOR=3D"#0000FF" SIZE=3D2 =
FACE=3D"Courier">&lt;SOAP-ENV:Envelope xmlns:xsi=3D&quot;<A =
HREF=3D"http://www.w3.org/1999/XMLSchema-instance">http://www.w3.org/1999=
/XMLSchema-instance</A>&quot; xmlns:xsd=3D&quot;<A =
HREF=3D"http://www.w3.org/1999/XMLSchema">http://www.w3.org/1999/XMLSchem=
a</A>&quot; xmlns:SOAP-ENC=3D&quot;<A =
HREF=3D"http://schemas.xmlsoap.org/soap/encoding/">http://schemas.xmlsoap=
.org/soap/encoding/</A>&quot; xmlns:SOAP-ENV=3D&quot;<A =
HREF=3D"http://schemas.xmlsoap.org/soap/envelope/">http://schemas.xmlsoap=
.org/soap/envelope/</A>&quot;&gt;</FONT></P>

<P><FONT COLOR=3D"#0000FF" SIZE=3D2 =
FACE=3D"Courier">&nbsp;&lt;SOAP-ENV:Body =
SOAP-ENV:encodingStyle=3D&quot;<A =
HREF=3D"http://schemas.xmlsoap.org/soap/encoding/">http://schemas.xmlsoap=
.org/soap/encoding/</A>&quot;&gt;</FONT>

<BR><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Courier">&nbsp; =
&lt;GetByName xmlns=3D&quot;<A =
HREF=3D"http://tempuri.org/">http://tempuri.org/</A>&quot; =
id=3D&quot;o0&quot; SOAP-ENC:root=3D&quot;1&quot;&gt;</FONT>

<BR><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Courier">&nbsp;&nbsp; =
&lt;</FONT><FONT COLOR=3D"#FF0000" SIZE=3D2 FACE=3D"Courier">name =
xmlns=3D&quot;&quot;</FONT> <FONT COLOR=3D"#0000FF" SIZE=3D2 =
FACE=3D"Courier">xsi:type=3D&quot;xsd:string&quot;&gt;Charith Indika =
Fernando&lt;/name&gt;</FONT>

<BR><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Courier">&nbsp; =
&lt;/GetByName&gt;</FONT>

<BR><FONT COLOR=3D"#0000FF" SIZE=3D2 =
FACE=3D"Courier">&nbsp;&lt;/SOAP-ENV:Body&gt;</FONT>

<BR><FONT COLOR=3D"#0000FF" SIZE=3D2 =
FACE=3D"Courier">&lt;/SOAP-ENV:Envelope&gt;</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Thank you,</FONT>

<BR><B><FONT SIZE=3D2 FACE=3D"Book Antiqua">Regards,</FONT></B>

<BR><B><FONT SIZE=3D2 FACE=3D"Book Antiqua">Charith I =
Fernando</FONT></B><FONT SIZE=3D2 FACE=3D"Book Antiqua"><BR>
</FONT>
</P>
</UL>
</BODY>
</HTML>
------_=_NextPart_001_01C3F12B.40EC9731--