You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by ax...@ws.apache.org on 2004/10/20 04:04:51 UTC
[jira] Commented: (AXISCPP-208) SoapDeSerializer doesn't check for expected end tag, it skips next tag instead
The following comment has been added to this issue:
Author: Samisa Abeysinghe
Created: Tue, 19 Oct 2004 7:04 PM
Body:
If there is an error in the middle of the XML strem, with the pull model, I do not see the value of validating the end tag, bacase after all the expected format is not there and it is going to fail anyway. So why not indicate the error early than late?
---------------------------------------------------------------------
View this comment:
http://issues.apache.org/jira/browse/AXISCPP-208?page=comments#action_54369
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/AXISCPP-208
Here is an overview of the issue:
---------------------------------------------------------------------
Key: AXISCPP-208
Summary: SoapDeSerializer doesn't check for expected end tag, it skips next tag instead
Type: Bug
Status: Unassigned
Priority: Minor
Project: Axis-C++
Components:
Serialization/Deserialization
Versions:
1.3 Beta
Assignee:
Reporter: James Guido
Created: Mon, 18 Oct 2004 12:47 PM
Updated: Tue, 19 Oct 2004 7:04 PM
Environment: HP-UX with gnu compiler
Description:
Current code blindly skips next tag, when supposedly skipping end tag.
Case scenario:
If client and server have a mismatch such as an extra tag was added to client, but not yet to server. Server stops parsing due to unknown tag, and ignores all following tags. Server gets half of the data, instead of error'ng. This is a very undesirable behavior.
I'm posting a fix/change, where SoapDeSerializer checks for an end tag and the right tag name before skipping tag. If tag is not an ending tag or it does not have the right tag name, it errors.
I have only changed getCmplxObject and getCmplxArray for DOC_ENCODING.
Changes to the RPC_ENCODING code may also be desired.
Blindly skipping ending tags may be a desired performance improvement for simple tags (no nested tags).
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
Re: SoapDeSerializer::getBasicArray() doesn't work ?
Posted by Samisa Abeysinghe <sa...@yahoo.com>.
I generated the code for the WSDL you sent, and cannot find anything wrong in the generated code.
In Axis C++ samples, getBasicArray works and looking through the generated code, it should work as
well.
What is the exact error that the client shows? What is the output from the client?
Does it throw any exceptions?
Samisa...
--- Satoshi Iwayama <iw...@portalisland.com> wrote:
> Hi
> Thanks for your reply.
>
> please see my WSDL.
>
> regards.
> Satoshi
>
> ----- Original Message -----
> From: "Samisa Abeysinghe" <sa...@yahoo.com>
> To: "Apache AXIS C Developers List" <ax...@ws.apache.org>
> Sent: Wednesday, October 20, 2004 12:36 PM
> Subject: Re: SoapDeSerializer::getBasicArray() doesn't work ?
>
>
> > Is it possible for you to send the WSDL please?
> >
> > Samisa...
> >
> > --- Satoshi Iwayama <iw...@portalisland.com> wrote:
> >
> > > Hi
> > > I'm from Japan. I'm sorry for my English is poor.
> > >
> > > I have webservices (AXIS Java 1.1) over Tomcat 4.1 and WebSphere 5.1 Express.
> > > I use Axis C++ client.(Generated by WSDL2Ws)
> > > I'm using Axis C++ 1.3 alpha (Linux)
> > >
> > > If I get a message that included Array data ( <item> tag ), I can't get the return
> > > Object(ComplexType).
> > > I think SoapDeSerializer::getBasicArray() doesn't work.
> > >
> > > can Axis C++ parse these message ?
> > >
> > > Thanks for help.
> > > regards.
> > >
> > > Satoshi
> > >
> > > ------------------------------SOAP Message-----------------------------------
> > > <?xml version="1.0" encoding="UTF-8"?>
> > > <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> > > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> > > <soapenv:Body>
> > > <ns1:getNewsResponse
> soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> > > xmlns:ns1="http://crm.store.ledzone.com">
> > > <getNewsReturn xsi:type="ns2:ResultForGetNews"
> > > xmlns:ns2="http://provider.ws.crm.store.ledzone.com">
> > > <centerNewsList xsi:type="soapenc:Array" soapenc:arrayType="xsd:string[1]"
> > > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
> > > <item>center</item>
> > > </centerNewsList>
> > > <result xsi:type="xsd:string">COMPLETE</result>
> > > <storeNewsList xsi:type="soapenc:Array" soapenc:arrayType="xsd:string[1]"
> > > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
> > > <item>news01</item>
> > > </storeNewsList>
> > > </getNewsReturn>
> > > </ns1:getNewsResponse>
> > > </soapenv:Body>
> > > </soapenv:Envelope>
> > >
> > >
> >
> >
> >
> >
> > __________________________________
> > Do you Yahoo!?
> > Yahoo! Mail Address AutoComplete - You start. We finish.
> > http://promotions.yahoo.com/new_mail
> >
> ATTACHMENT part 2 application/octet-stream name=StoreStatusManager.wsdl
__________________________________
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail
Re: SoapDeSerializer::getBasicArray() doesn't work ?
Posted by Satoshi Iwayama <iw...@portalisland.com>.
Hi
Thanks for your reply.
please see my WSDL.
regards.
Satoshi
----- Original Message -----
From: "Samisa Abeysinghe" <sa...@yahoo.com>
To: "Apache AXIS C Developers List" <ax...@ws.apache.org>
Sent: Wednesday, October 20, 2004 12:36 PM
Subject: Re: SoapDeSerializer::getBasicArray() doesn't work ?
> Is it possible for you to send the WSDL please?
>
> Samisa...
>
> --- Satoshi Iwayama <iw...@portalisland.com> wrote:
>
> > Hi
> > I'm from Japan. I'm sorry for my English is poor.
> >
> > I have webservices (AXIS Java 1.1) over Tomcat 4.1 and WebSphere 5.1 Express.
> > I use Axis C++ client.(Generated by WSDL2Ws)
> > I'm using Axis C++ 1.3 alpha (Linux)
> >
> > If I get a message that included Array data ( <item> tag ), I can't get the return
> > Object(ComplexType).
> > I think SoapDeSerializer::getBasicArray() doesn't work.
> >
> > can Axis C++ parse these message ?
> >
> > Thanks for help.
> > regards.
> >
> > Satoshi
> >
> > ------------------------------SOAP Message-----------------------------------
> > <?xml version="1.0" encoding="UTF-8"?>
> > <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> > <soapenv:Body>
> > <ns1:getNewsResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> > xmlns:ns1="http://crm.store.ledzone.com">
> > <getNewsReturn xsi:type="ns2:ResultForGetNews"
> > xmlns:ns2="http://provider.ws.crm.store.ledzone.com">
> > <centerNewsList xsi:type="soapenc:Array" soapenc:arrayType="xsd:string[1]"
> > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
> > <item>center</item>
> > </centerNewsList>
> > <result xsi:type="xsd:string">COMPLETE</result>
> > <storeNewsList xsi:type="soapenc:Array" soapenc:arrayType="xsd:string[1]"
> > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
> > <item>news01</item>
> > </storeNewsList>
> > </getNewsReturn>
> > </ns1:getNewsResponse>
> > </soapenv:Body>
> > </soapenv:Envelope>
> >
> >
>
>
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail Address AutoComplete - You start. We finish.
> http://promotions.yahoo.com/new_mail
>
Re: SoapDeSerializer::getBasicArray() doesn't work ?
Posted by Samisa Abeysinghe <sa...@yahoo.com>.
Is it possible for you to send the WSDL please?
Samisa...
--- Satoshi Iwayama <iw...@portalisland.com> wrote:
> Hi
> I'm from Japan. I'm sorry for my English is poor.
>
> I have webservices (AXIS Java 1.1) over Tomcat 4.1 and WebSphere 5.1 Express.
> I use Axis C++ client.(Generated by WSDL2Ws)
> I'm using Axis C++ 1.3 alpha (Linux)
>
> If I get a message that included Array data ( <item> tag ), I can't get the return
> Object(ComplexType).
> I think SoapDeSerializer::getBasicArray() doesn't work.
>
> can Axis C++ parse these message ?
>
> Thanks for help.
> regards.
>
> Satoshi
>
> ------------------------------SOAP Message-----------------------------------
> <?xml version="1.0" encoding="UTF-8"?>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <soapenv:Body>
> <ns1:getNewsResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> xmlns:ns1="http://crm.store.ledzone.com">
> <getNewsReturn xsi:type="ns2:ResultForGetNews"
> xmlns:ns2="http://provider.ws.crm.store.ledzone.com">
> <centerNewsList xsi:type="soapenc:Array" soapenc:arrayType="xsd:string[1]"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
> <item>center</item>
> </centerNewsList>
> <result xsi:type="xsd:string">COMPLETE</result>
> <storeNewsList xsi:type="soapenc:Array" soapenc:arrayType="xsd:string[1]"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
> <item>news01</item>
> </storeNewsList>
> </getNewsReturn>
> </ns1:getNewsResponse>
> </soapenv:Body>
> </soapenv:Envelope>
>
>
__________________________________
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail
SoapDeSerializer::getBasicArray() doesn't work ?
Posted by Satoshi Iwayama <iw...@portalisland.com>.
Hi
I'm from Japan. I'm sorry for my English is poor.
I have webservices (AXIS Java 1.1) over Tomcat 4.1 and WebSphere 5.1 Express.
I use Axis C++ client.(Generated by WSDL2Ws)
I'm using Axis C++ 1.3 alpha (Linux)
If I get a message that included Array data ( <item> tag ), I can't get the return Object(ComplexType).
I think SoapDeSerializer::getBasicArray() doesn't work.
can Axis C++ parse these message ?
Thanks for help.
regards.
Satoshi
------------------------------SOAP Message-----------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<ns1:getNewsResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns1="http://crm.store.ledzone.com">
<getNewsReturn xsi:type="ns2:ResultForGetNews" xmlns:ns2="http://provider.ws.crm.store.ledzone.com">
<centerNewsList xsi:type="soapenc:Array" soapenc:arrayType="xsd:string[1]"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
<item>center</item>
</centerNewsList>
<result xsi:type="xsd:string">COMPLETE</result>
<storeNewsList xsi:type="soapenc:Array" soapenc:arrayType="xsd:string[1]"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
<item>news01</item>
</storeNewsList>
</getNewsReturn>
</ns1:getNewsResponse>
</soapenv:Body>
</soapenv:Envelope>