[ http://issues.apache.org/jira/browse/AXIS2-1605?page=all ]
Diego updated AXIS2-1605: ------------------------- Attachment: test-server.wsdl wsdl that causes the problem > Unable to deserialize properly > ------------------------------ > > Key: AXIS2-1605 > URL: http://issues.apache.org/jira/browse/AXIS2-1605 > Project: Apache Axis 2.0 (Axis2) > Issue Type: Bug > Affects Versions: 1.1 > Environment: linux > java v1.4.2 > axis2 v1.1 RC2 > Reporter: Diego > Attachments: AstrodasPortalSkeleton.java, test-server.wsdl, > TestClient.java > > > I'm using a table whose xsd is specified at > http://www.ivoa.net/xml/VOTable/v1.1 to return the result of a query. I > generated the java classes using wsdl2java. With the new version (v1.1 RC2) > the table fields are not recognized in the deserialization phase. I think > that's because the FIELD element has an xmlns equal to "", whereas in the > previous version the FIELD element did not had an xmlns attribute at all. > The problem is in the serialization where the xmlns is added to the FIELD > attribute. What can I do to work around this? The following are the soap > messages with v1.0 and v1.1, note that the only difference is in the FIELD > elements: > axis v1.0 (works fine) > ================ > <?xml version='1.0' encoding='UTF-8'?> > <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> > <soapenv:Header /> > <soapenv:Body> > <executeDSQLQueryResponse xmlns="http://astrodas.org/ws/model"> > <VOTABLE xmlns="http://www.ivoa.net/xml/VOTable/v1.1"> > <RESOURCE> > <TABLE> > <FIELD name="field1" /> > <FIELD name="field2" /> > <DATA> > <TABLEDATA> > <TR> > <TD>value11</TD> > <TD>value12</TD> > </TR> > <TR> > <TD>value21</TD> > <TD>value22</TD> > </TR> > </TABLEDATA> > > </DATA> > </TABLE> > </RESOURCE> > </VOTABLE> > </executeDSQLQueryResponse> > </soapenv:Body> > </soapenv:Envelope> > axis v1.1 (cannot deserialize the FIELD elements) > ====================================== > <?xml version='1.0' encoding='UTF-8'?> > <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> > <soapenv:Header /> > <soapenv:Body> > <executeDSQLQueryResponse xmlns="http://astrodas.org/ws/model"> > <VOTABLE xmlns="http://www.ivoa.net/xml/VOTable/v1.1"> > <RESOURCE> > <TABLE> > <FIELD xmlns="" name="field1" /> > <FIELD xmlns="" name="field2" /> > <DATA> > <TABLEDATA> > <TR> > <TD>value11</TD> > <TD>value12</TD> > </TR> > <TR> > <TD>value21</TD> > <TD>value22</TD> > </TR> > </TABLEDATA> > > </DATA> > </TABLE> > </RESOURCE> > </VOTABLE> > </executeDSQLQueryResponse> > </soapenv:Body> > </soapenv:Envelope> -- 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 - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]