You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Diego (JIRA)" <ji...@apache.org> on 2006/11/04 20:14:16 UTC

[jira] Created: (AXIS2-1605) Unable to deserialize properly

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


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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Updated: (AXIS2-1605) Unable to deserialize properly

Posted by "Diego (JIRA)" <ji...@apache.org>.
     [ 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-1605) Unable to deserialize properly

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-1605?page=comments#action_12447173 ] 
            
Davanum Srinivas commented on AXIS2-1605:
-----------------------------------------

Please upload the schema and wsdl.

thanks,
dims

> 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
>
> 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Resolved: (AXIS2-1605) Unable to deserialize properly

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-1605?page=all ]

Amila Chinthaka Suriarachchi resolved AXIS2-1605.
-------------------------------------------------

    Fix Version/s: nightly
       Resolution: Fixed

this bug has fixed in the latest axiom release.

> 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
>         Assigned To: Davanum Srinivas
>             Fix For: nightly
>
>         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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-1605) Unable to deserialize properly

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-1605?page=comments#action_12448690 ] 
            
Amila Chinthaka Suriarachchi commented on AXIS2-1605:
-----------------------------------------------------

this is an axiom problem in serialization. Now it is fixed. Please check with a nightly build.

> 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
>         Assigned To: Davanum Srinivas
>         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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Assigned: (AXIS2-1605) Unable to deserialize properly

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-1605?page=all ]

Davanum Srinivas reassigned AXIS2-1605:
---------------------------------------

    Assignee: Davanum Srinivas

> 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
>         Assigned To: Davanum Srinivas
>         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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Updated: (AXIS2-1605) Unable to deserialize properly

Posted by "Diego (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-1605?page=all ]

Diego updated AXIS2-1605:
-------------------------

    Attachment: TestClient.java

client for test

> 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, 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Updated: (AXIS2-1605) Unable to deserialize properly

Posted by "Diego (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-1605?page=all ]

Diego updated AXIS2-1605:
-------------------------

    Attachment: AstrodasPortalSkeleton.java

Server logic

> 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, 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org