axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Fremantle <...@hursley.ibm.com>
Subject Re: I think Axis c++ is poor cause no one has idea about this problem
Date Tue, 27 Apr 2004 10:43:42 GMT
Cheng

This could be the HTTP 1.1 chunking problem. I believe we fixed this
with Xerces but maybe not expat.
The problem is the initial 222 before the <xml>

Paul

cheng liang wrote:

> hi Susantha,
>
> Thanks for your reply.
>
> I solved this problem by using latest release of Axis C++ (1.1).
>
> But I met another problem.
>
> That is I what to realize a webservice.
>
> Server is using windows xp + Tomcat + Axis.
>
> client is using Apache 1.3.28 + Axis c++ .
>
> I use the WSDL2Ws tools generating client stub code.
>
> I call a method in main() method but could not get the result.
>
> I found the problem lie in int SoapParserExpat::ParseNext()
> {
> ...
> if (XML_STATUS_ERROR == XML_Parse(m_Parser, m_pCurrentBuffer, nChars,
> false))
> ...
> }
>
> That is the return value of XML_Parse(...) is XML_STATUS_ERROR.
>
> I use expat1.95.7.
>
> The payload got from server is :
> ---------------------------------------------------------------------------------
>
>
> 222
> <?xml version="1.0" encoding="UTF-8"?>
> <soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmln
> s:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSc
> hema-instance">
> <soapenv:Body>
> <ns1:checkIfHasUserResponse
> soapenv:encodingStyle="http://schemas.xmlsoap.org/
> soap/encoding/"
> xmlns:ns1="http://10.7.0.97:8080/SysPlatform/services/UserClass"
>
>>
> <ns1:checkIfHasUserReturn
> xsi:type="xsd:boolean">false</ns1:checkIfHasUserRet
> urn>
> </ns1:checkIfHasUserResponse>
> </soapenv:Body>
> </soapenv:Envelope>
> 0
> ---------------------------------------------------------------------------------
>
>
>
> Why expat could not parse this xml file correctly?
>
> And how to solve this problem?
>
> Thanks.
> Cheng Liang
>
>> From: "Susantha Kumara" <susantha@opensource.lk>
>> Reply-To: "Apache AXIS C Developers List" <axis-c-dev@ws.apache.org>
>> To: "'Apache AXIS C Developers List'" <axis-c-dev@ws.apache.org>
>> Subject: RE: I think Axis c++ is poor cause no one has idea about this 
>
> problem
>
>> Date: Fri, 23 Apr 2004 10:30:29 +0600
>>
>> Hi cheng,
>>
>> I think I replied to this mail earlier too.
>> Anyway could you please use the latest release of Axis C++ (1.1) and see
>> whether it is working for you ?
>>
>> Please use the latest code generator too (WSDL2Ws tool)
>>
>> Thanks,
>>
>> Susantha.
>>
>> -----Original Message-----
>> From: cheng liang [mailto:chengliang2004@hotmail.com]
>> Sent: Friday, April 23, 2004 7:42 AM
>> To: axis-c-dev@ws.apache.org
>> Subject: I think Axis c++ is poor cause no one has idea about this
>> problem
>>
>> >>>From: "cheng liang" <chengliang2004@hotmail.com>
>> >>>Reply-To: "Apache AXIS C Developers List"
>> >>><axis-c-dev@ws.apache.org>
>> >>>To: axis-c-dev@ws.apache.org
>> >>>Subject: problem when realize echoStringArray(...) method in
>> >>InteropBase.wsdl
>> >>>Date: Thu, 22 Apr 2004 01:54:10 +0000
>> >>>
>> >>>Is there someone have interests in this problem?
>> >>>I have been puzzled for quite a time, I will be
>> >>>appreciated if someone can help me.
>> >>>
>> >>>
>> >>>>From: "cheng liang" <chengliang2004@hotmail.com>
>> >>>>Reply-To: "Apache AXIS C Developers List"
>> >>>><axis-c-dev@ws.apache.org>
>> >>>>To: axis-c-dev@ws.apache.org
>> >>>>Subject: problem when realize echoStringArray(...) method in
>> >>>InteropBase.wsdl
>> >>>>Date: Wed, 21 Apr 2004 02:08:08 +0000
>> >>>>
>> >>>>hi,all,
>> >>>>
>> >>>>I am a newer to Axis in C++.
>> >>>>
>> >>>>I want to realize the InteropBase webservice.
>> >>>>
>> >>>>I generate the server and client code automatically using wsdl2Ws
>> >>>>tool according to
>> >>>>the documents on website.
>> >>>>
>> >>>>In client main() method I write:
>> >>>>void main()
>> >>>>{
>> >>>> InteropTestPortType myBase;
>> >>>> ArrayOfstring arrstrValue0;
>> >>>> arrstrValue0.m_Array = new string;
>> >>>> *arrstrValue0.m_Array = "Hello";
>> >>>> arrstrValue0.m_Size = 1;
>> >>>> ArrayOfstring arrstrValue1 =
>> >>>>myBase.echoStringArray(arrstrValue0);
>> >>>>}
>> >>>>
>> >>>>In server the code is:
>> >>>>ArrayOfstring InteropTestPortType::echoStringArray(ArrayOfstring
>> >>>>Value0)
>> >>>>{
>> >>>> return Value0;
>> >>>>}
>> >>>>
>> >>>>When I run client program, it seems just data has been sent out
>> >>>>to the server, but server
>> >>>>has no reply, and the client is always waiting.
>> >>>>
>> >>>>My axis has been deployed correctly on apache 1.3.28. And when I
>> >>>>realize echoInterger(...) method there is no problem.
>> >>>>
>> >>>>I found many times but can not solve this problem.
>> >>>>
>> >>>>Could anyone help me?
>> >>>>
>> >>>>best,
>> >>>>Cheng Liang
>> >>>>
>>
>> _________________________________________________________________
>> 享用世界上最大的电子邮件系统― MSN Hotmail。 http://www.hotmail.com
>>
>>
>>
>>
>
> _________________________________________________________________
> 免费下载 MSN Explorer: http://explorer.msn.com/lccn/
>


Mime
View raw message