You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Santo Amendola <Sa...@vptech.it> on 2004/09/20 16:13:57 UTC

Axis: cpp client and java server

Hi,
we try to develop a cpp client with visual studio 6 that contact a j=
ava web service. using axis 1.2 final.
But we have an error.
In the soa=
p response we have sone extra char and the client crash.

someone has s=
olved this problem? who?

thank in advance
--Santo

p.s. The soap re=
sponse is this:

HTTP/1.1 200 OK
Server: Sun-ONE-Web-Server/6.1
Date:=
Mon, 20 Sep 2004 14:47:25 GMT
Content-type: text/xml; charset=3Dutf-8=0D
=
Set-cookie: JSESSIONID=3DACC4F7B42B1C04A34EB84533E294AF50;Path=3D/axis=0D
=
Transfer-encoding: chunked

01e5
<?xml version=3D"1.0" encoding=3D"UTF=
-8"?>
<soapenv:Envelope xmlns:soapenv=3D"http://schemas.xmlsoap.org/soap=
/envelope/" xmlns:xsd=3D"http://www.w3.org/2001/XMLSchema" xmlns:xsi=3D"h=
ttp://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<ns1:quote=
Response soapenv:encodingStyle=3D"http://schemas.xmlsoap.org/soap/encodin=
g/" xmlns:ns1=3D"http://DefaultNamespace">
<ns1:quoteReturn xsi:type=3D=
"xsd:string">No quotes.</ns1:quoteReturn>
</ns1:quoteResponse>
</soa=
penv:Body>
</soapenv:Envelope>
0


Re: Axis: cpp client and java server

Posted by Mansart Jean-sebastien <je...@etu.univ-savoie.fr>.
Yes it's a problem with the transport encoding
edit transport.cpp and force it to http/1.0
you will have to rebuilt axis after this.
but you can look if this bug is not solved in the 1.3 version...

Santo Amendola wrote:

>Hi,
>we try to develop a cpp client with visual studio 6 that contact a j=
>ava web service. using axis 1.2 final.
>But we have an error.
>In the soa=
>p response we have sone extra char and the client crash.
>
>someone has s=
>olved this problem? who?
>
>thank in advance
>--Santo
>
>p.s. The soap re=
>sponse is this:
>
>HTTP/1.1 200 OK
>Server: Sun-ONE-Web-Server/6.1
>Date:=
>Mon, 20 Sep 2004 14:47:25 GMT
>Content-type: text/xml; charset=3Dutf-8=0D
>=
>Set-cookie: JSESSIONID=3DACC4F7B42B1C04A34EB84533E294AF50;Path=3D/axis=0D
>=
>Transfer-encoding: chunked
>
>01e5
><?xml version=3D"1.0" encoding=3D"UTF=
>-8"?>
><soapenv:Envelope xmlns:soapenv=3D"http://schemas.xmlsoap.org/soap=
>/envelope/" xmlns:xsd=3D"http://www.w3.org/2001/XMLSchema" xmlns:xsi=3D"h=
>ttp://www.w3.org/2001/XMLSchema-instance">
><soapenv:Body>
><ns1:quote=
>Response soapenv:encodingStyle=3D"http://schemas.xmlsoap.org/soap/encodin=
>g/" xmlns:ns1=3D"http://DefaultNamespace">
><ns1:quoteReturn xsi:type=3D=
>"xsd:string">No quotes.</ns1:quoteReturn>
></ns1:quoteResponse>
></soa=
>penv:Body>
></soapenv:Envelope>
>0
>
>
>
>  
>



Re: Axis: cpp client and java server

Posted by Fabio Cristiano dos Anjos <fa...@gmail.com>.
Hi Santo,

I am having a problem like that. The difference is that some times it
works and sometimes the client complains. I am using axis 1.2 Beta ,
and .Net WebService Studio. If you look at the thread "Returning array
of complex types you'll see a description of my problem.
Please, if you find a solution, let me know. I'll do the same!!
Thanks in advance!!!
Fabio



On Mon, 20 Sep 2004 16:13:57 +0200, Santo Amendola
<sa...@vptech.it> wrote:
> Hi,
> we try to develop a cpp client with visual studio 6 that contact a j=
> ava web service. using axis 1.2 final.
> But we have an error.
> In the soa=
> p response we have sone extra char and the client crash.
> 
> someone has s=
> olved this problem? who?
> 
> thank in advance
> --Santo
> 
> p.s. The soap re=
> sponse is this:
> 
> HTTP/1.1 200 OK
> Server: Sun-ONE-Web-Server/6.1
> Date:=
> Mon, 20 Sep 2004 14:47:25 GMT
> Content-type: text/xml; charset=3Dutf-8=0D
> =
> Set-cookie: JSESSIONID=3DACC4F7B42B1C04A34EB84533E294AF50;Path=3D/axis=0D
> =
> Transfer-encoding: chunked
> 
> 01e5
> <?xml version=3D"1.0" encoding=3D"UTF=
> -8"?>
> <soapenv:Envelope xmlns:soapenv=3D"http://schemas.xmlsoap.org/soap=
> /envelope/" xmlns:xsd=3D"http://www.w3.org/2001/XMLSchema" xmlns:xsi=3D"h=
> ttp://www.w3.org/2001/XMLSchema-instance">
> <soapenv:Body>
> <ns1:quote=
> Response soapenv:encodingStyle=3D"http://schemas.xmlsoap.org/soap/encodin=
> g/" xmlns:ns1=3D"http://DefaultNamespace">
> <ns1:quoteReturn xsi:type=3D=
> "xsd:string">No quotes.</ns1:quoteReturn>
> </ns1:quoteResponse>
> </soa=
> penv:Body>
> </soapenv:Envelope>
> 0
> 
> 



-- 
Atenciosamente,
Fábio Cristiano dos Anjos