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 "James Jose (JIRA)" <ax...@ws.apache.org> on 2005/10/22 08:52:19 UTC

[jira] Created: (AXISCPP-860) ComplexLists test is failing due to wrong request message

ComplexLists test is failing due to wrong request message
---------------------------------------------------------

         Key: AXISCPP-860
         URL: http://issues.apache.org/jira/browse/AXISCPP-860
     Project: Axis-C++
        Type: Bug
  Components: Client - Engine  
    Reporter: James Jose


Test fails because soap engine creates an element 'm_list_Ref' instead of 'm_list'

In the Request message generated for ComplexLists, one of the element name is m_list_Ref. Earlier this element name was m_list and that time test was passing. Now application server generates the following error message - Cannot deserialize element m_list_Ref. 

Request message - when test was passing
------------------------------------------------------------
<?xml version='1.0' encoding='utf-8' ?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Body>
<ns1:multilist xmlns:ns1="http://complexlist.test.apache.org">
<ns1:arg_0_0><ns3:item xmlns:ns3="http://complexlistservice.test.apache.org">never odd or even</ns3:item>
<ns4:item xmlns:ns4="http://complexlistservice.test.apache.org">any data string</ns4:item>
</ns1:arg_0_0>
<ns1:arg_1_0><ns6:item xmlns:ns6="http://complexlistservice.test.apache.org"><ns6:m_list><ns6:item>Apache</ns6:item>
<ns6:item>Axis C++</ns6:item>
</ns6:m_list><ns6:name>namepair1</ns6:name>
</ns6:item><ns8:item xmlns:ns8="http://complexlistservice.test.apache.org"><ns8:m_list><ns8:item>Test</ns8:item>
<ns8:item>Complex</ns8:item>
</ns8:m_list><ns8:name>namepair2</ns8:name>
</ns8:item></ns1:arg_1_0>
</ns1:multilist>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>


Request Message : Now
----------------------------------
<?xml version='1.0' encoding='utf-8' ?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Body>
<ns1:multilist xmlns:ns1="http://complexlist.test.apache.org">
<ns1:arg_0_0><ns3:item xmlns:ns3="http://complexlistservice.test.apache.org">never odd or even</ns3:item>
<ns4:item xmlns:ns4="http://complexlistservice.test.apache.org">any data string</ns4:item>
</ns1:arg_0_0>
<ns1:arg_1_0><ns6:item xmlns:ns6="http://complexlistservice.test.apache.org"><ns6:m_list_Ref><ns6:item>Apache</ns6:item>
<ns6:item>Axis C++</ns6:item>
</ns6:m_list_Ref><ns6:name>namepair1</ns6:name>
</ns6:item><ns8:item xmlns:ns8="http://complexlistservice.test.apache.org"><ns8:m_list_Ref><ns8:item>Test</ns8:item>
<ns8:item>Complex</ns8:item>
</ns8:m_list_Ref><ns8:name>namepair2</ns8:name>
</ns8:item></ns1:arg_1_0>
</ns1:multilist>
</SOAP-ENV:Body>
</SOAP-ENV: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


[jira] Closed: (AXISCPP-860) ComplexLists test is failing due to wrong request message

Posted by "John Hawkins (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXISCPP-860?page=all ]
     
John Hawkins closed AXISCPP-860:
--------------------------------

    Resolution: Fixed

> ComplexLists test is failing due to wrong request message
> ---------------------------------------------------------
>
>          Key: AXISCPP-860
>          URL: http://issues.apache.org/jira/browse/AXISCPP-860
>      Project: Axis-C++
>         Type: Bug
>   Components: Client - Engine
>     Reporter: James Jose
>     Assignee: nadir amra
>      Fix For: 1.6 Alpha

>
> Test fails because soap engine creates an element 'm_list_Ref' instead of 'm_list'
> In the Request message generated for ComplexLists, one of the element name is m_list_Ref. Earlier this element name was m_list and that time test was passing. Now application server generates the following error message - Cannot deserialize element m_list_Ref. 
> Request message - when test was passing
> ------------------------------------------------------------
> <?xml version='1.0' encoding='utf-8' ?>
> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <SOAP-ENV:Body>
> <ns1:multilist xmlns:ns1="http://complexlist.test.apache.org">
> <ns1:arg_0_0><ns3:item xmlns:ns3="http://complexlistservice.test.apache.org">never odd or even</ns3:item>
> <ns4:item xmlns:ns4="http://complexlistservice.test.apache.org">any data string</ns4:item>
> </ns1:arg_0_0>
> <ns1:arg_1_0><ns6:item xmlns:ns6="http://complexlistservice.test.apache.org"><ns6:m_list><ns6:item>Apache</ns6:item>
> <ns6:item>Axis C++</ns6:item>
> </ns6:m_list><ns6:name>namepair1</ns6:name>
> </ns6:item><ns8:item xmlns:ns8="http://complexlistservice.test.apache.org"><ns8:m_list><ns8:item>Test</ns8:item>
> <ns8:item>Complex</ns8:item>
> </ns8:m_list><ns8:name>namepair2</ns8:name>
> </ns8:item></ns1:arg_1_0>
> </ns1:multilist>
> </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>
> Request Message : Now
> ----------------------------------
> <?xml version='1.0' encoding='utf-8' ?>
> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <SOAP-ENV:Body>
> <ns1:multilist xmlns:ns1="http://complexlist.test.apache.org">
> <ns1:arg_0_0><ns3:item xmlns:ns3="http://complexlistservice.test.apache.org">never odd or even</ns3:item>
> <ns4:item xmlns:ns4="http://complexlistservice.test.apache.org">any data string</ns4:item>
> </ns1:arg_0_0>
> <ns1:arg_1_0><ns6:item xmlns:ns6="http://complexlistservice.test.apache.org"><ns6:m_list_Ref><ns6:item>Apache</ns6:item>
> <ns6:item>Axis C++</ns6:item>
> </ns6:m_list_Ref><ns6:name>namepair1</ns6:name>
> </ns6:item><ns8:item xmlns:ns8="http://complexlistservice.test.apache.org"><ns8:m_list_Ref><ns8:item>Test</ns8:item>
> <ns8:item>Complex</ns8:item>
> </ns8:m_list_Ref><ns8:name>namepair2</ns8:name>
> </ns8:item></ns1:arg_1_0>
> </ns1:multilist>
> </SOAP-ENV:Body>
> </SOAP-ENV: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


[jira] Reopened: (AXISCPP-860) ComplexLists test is failing due to wrong request message

Posted by "James Jose (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXISCPP-860?page=all ]
     
James Jose reopened AXISCPP-860:
--------------------------------


(Visible to axiscpp-developers)


> ComplexLists test is failing due to wrong request message
> ---------------------------------------------------------
>
>          Key: AXISCPP-860
>          URL: http://issues.apache.org/jira/browse/AXISCPP-860
>      Project: Axis-C++
>         Type: Bug
>   Components: Client - Engine
>     Reporter: James Jose
>     Assignee: nadir amra
>      Fix For: 1.6 Alpha

>
> Test fails because soap engine creates an element 'm_list_Ref' instead of 'm_list'
> In the Request message generated for ComplexLists, one of the element name is m_list_Ref. Earlier this element name was m_list and that time test was passing. Now application server generates the following error message - Cannot deserialize element m_list_Ref. 
> Request message - when test was passing
> ------------------------------------------------------------
> <?xml version='1.0' encoding='utf-8' ?>
> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <SOAP-ENV:Body>
> <ns1:multilist xmlns:ns1="http://complexlist.test.apache.org">
> <ns1:arg_0_0><ns3:item xmlns:ns3="http://complexlistservice.test.apache.org">never odd or even</ns3:item>
> <ns4:item xmlns:ns4="http://complexlistservice.test.apache.org">any data string</ns4:item>
> </ns1:arg_0_0>
> <ns1:arg_1_0><ns6:item xmlns:ns6="http://complexlistservice.test.apache.org"><ns6:m_list><ns6:item>Apache</ns6:item>
> <ns6:item>Axis C++</ns6:item>
> </ns6:m_list><ns6:name>namepair1</ns6:name>
> </ns6:item><ns8:item xmlns:ns8="http://complexlistservice.test.apache.org"><ns8:m_list><ns8:item>Test</ns8:item>
> <ns8:item>Complex</ns8:item>
> </ns8:m_list><ns8:name>namepair2</ns8:name>
> </ns8:item></ns1:arg_1_0>
> </ns1:multilist>
> </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>
> Request Message : Now
> ----------------------------------
> <?xml version='1.0' encoding='utf-8' ?>
> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <SOAP-ENV:Body>
> <ns1:multilist xmlns:ns1="http://complexlist.test.apache.org">
> <ns1:arg_0_0><ns3:item xmlns:ns3="http://complexlistservice.test.apache.org">never odd or even</ns3:item>
> <ns4:item xmlns:ns4="http://complexlistservice.test.apache.org">any data string</ns4:item>
> </ns1:arg_0_0>
> <ns1:arg_1_0><ns6:item xmlns:ns6="http://complexlistservice.test.apache.org"><ns6:m_list_Ref><ns6:item>Apache</ns6:item>
> <ns6:item>Axis C++</ns6:item>
> </ns6:m_list_Ref><ns6:name>namepair1</ns6:name>
> </ns6:item><ns8:item xmlns:ns8="http://complexlistservice.test.apache.org"><ns8:m_list_Ref><ns8:item>Test</ns8:item>
> <ns8:item>Complex</ns8:item>
> </ns8:m_list_Ref><ns8:name>namepair2</ns8:name>
> </ns8:item></ns1:arg_1_0>
> </ns1:multilist>
> </SOAP-ENV:Body>
> </SOAP-ENV: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


[jira] Commented: (AXISCPP-860) ComplexLists test is failing due to wrong request message

Posted by "Dushshantha Chandradasa (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXISCPP-860?page=comments#action_12356693 ] 

Dushshantha Chandradasa commented on AXISCPP-860:
-------------------------------------------------

I'm trying to give a fix to question No.2. 

My first question should be 
    1. Why do we skip ns2 and declare ns3 after declaring ns1? 



> ComplexLists test is failing due to wrong request message
> ---------------------------------------------------------
>
>          Key: AXISCPP-860
>          URL: http://issues.apache.org/jira/browse/AXISCPP-860
>      Project: Axis-C++
>         Type: Bug
>   Components: Client - Engine
>     Reporter: James Jose
>     Assignee: nadir amra
>      Fix For: 1.6 Alpha

>
> Test fails because soap engine creates an element 'm_list_Ref' instead of 'm_list'
> In the Request message generated for ComplexLists, one of the element name is m_list_Ref. Earlier this element name was m_list and that time test was passing. Now application server generates the following error message - Cannot deserialize element m_list_Ref. 
> Request message - when test was passing
> ------------------------------------------------------------
> <?xml version='1.0' encoding='utf-8' ?>
> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <SOAP-ENV:Body>
> <ns1:multilist xmlns:ns1="http://complexlist.test.apache.org">
> <ns1:arg_0_0><ns3:item xmlns:ns3="http://complexlistservice.test.apache.org">never odd or even</ns3:item>
> <ns4:item xmlns:ns4="http://complexlistservice.test.apache.org">any data string</ns4:item>
> </ns1:arg_0_0>
> <ns1:arg_1_0><ns6:item xmlns:ns6="http://complexlistservice.test.apache.org"><ns6:m_list><ns6:item>Apache</ns6:item>
> <ns6:item>Axis C++</ns6:item>
> </ns6:m_list><ns6:name>namepair1</ns6:name>
> </ns6:item><ns8:item xmlns:ns8="http://complexlistservice.test.apache.org"><ns8:m_list><ns8:item>Test</ns8:item>
> <ns8:item>Complex</ns8:item>
> </ns8:m_list><ns8:name>namepair2</ns8:name>
> </ns8:item></ns1:arg_1_0>
> </ns1:multilist>
> </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>
> Request Message : Now
> ----------------------------------
> <?xml version='1.0' encoding='utf-8' ?>
> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <SOAP-ENV:Body>
> <ns1:multilist xmlns:ns1="http://complexlist.test.apache.org">
> <ns1:arg_0_0><ns3:item xmlns:ns3="http://complexlistservice.test.apache.org">never odd or even</ns3:item>
> <ns4:item xmlns:ns4="http://complexlistservice.test.apache.org">any data string</ns4:item>
> </ns1:arg_0_0>
> <ns1:arg_1_0><ns6:item xmlns:ns6="http://complexlistservice.test.apache.org"><ns6:m_list_Ref><ns6:item>Apache</ns6:item>
> <ns6:item>Axis C++</ns6:item>
> </ns6:m_list_Ref><ns6:name>namepair1</ns6:name>
> </ns6:item><ns8:item xmlns:ns8="http://complexlistservice.test.apache.org"><ns8:m_list_Ref><ns8:item>Test</ns8:item>
> <ns8:item>Complex</ns8:item>
> </ns8:m_list_Ref><ns8:name>namepair2</ns8:name>
> </ns8:item></ns1:arg_1_0>
> </ns1:multilist>
> </SOAP-ENV:Body>
> </SOAP-ENV: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


[jira] Commented: (AXISCPP-860) ComplexLists test is failing due to wrong request message

Posted by "John Hawkins (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXISCPP-860?page=comments#action_12357203 ] 

John Hawkins commented on AXISCPP-860:
--------------------------------------

Sorry for confusion. Yes "qualified" means that we do qualify each element with ns. I was just thinking that while you're in this code you need to be aware that we shouldn't always do this.

> ComplexLists test is failing due to wrong request message
> ---------------------------------------------------------
>
>          Key: AXISCPP-860
>          URL: http://issues.apache.org/jira/browse/AXISCPP-860
>      Project: Axis-C++
>         Type: Bug
>   Components: Client - Engine
>     Reporter: James Jose
>     Assignee: nadir amra
>      Fix For: 1.6 Alpha

>
> Test fails because soap engine creates an element 'm_list_Ref' instead of 'm_list'
> In the Request message generated for ComplexLists, one of the element name is m_list_Ref. Earlier this element name was m_list and that time test was passing. Now application server generates the following error message - Cannot deserialize element m_list_Ref. 
> Request message - when test was passing
> ------------------------------------------------------------
> <?xml version='1.0' encoding='utf-8' ?>
> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <SOAP-ENV:Body>
> <ns1:multilist xmlns:ns1="http://complexlist.test.apache.org">
> <ns1:arg_0_0><ns3:item xmlns:ns3="http://complexlistservice.test.apache.org">never odd or even</ns3:item>
> <ns4:item xmlns:ns4="http://complexlistservice.test.apache.org">any data string</ns4:item>
> </ns1:arg_0_0>
> <ns1:arg_1_0><ns6:item xmlns:ns6="http://complexlistservice.test.apache.org"><ns6:m_list><ns6:item>Apache</ns6:item>
> <ns6:item>Axis C++</ns6:item>
> </ns6:m_list><ns6:name>namepair1</ns6:name>
> </ns6:item><ns8:item xmlns:ns8="http://complexlistservice.test.apache.org"><ns8:m_list><ns8:item>Test</ns8:item>
> <ns8:item>Complex</ns8:item>
> </ns8:m_list><ns8:name>namepair2</ns8:name>
> </ns8:item></ns1:arg_1_0>
> </ns1:multilist>
> </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>
> Request Message : Now
> ----------------------------------
> <?xml version='1.0' encoding='utf-8' ?>
> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <SOAP-ENV:Body>
> <ns1:multilist xmlns:ns1="http://complexlist.test.apache.org">
> <ns1:arg_0_0><ns3:item xmlns:ns3="http://complexlistservice.test.apache.org">never odd or even</ns3:item>
> <ns4:item xmlns:ns4="http://complexlistservice.test.apache.org">any data string</ns4:item>
> </ns1:arg_0_0>
> <ns1:arg_1_0><ns6:item xmlns:ns6="http://complexlistservice.test.apache.org"><ns6:m_list_Ref><ns6:item>Apache</ns6:item>
> <ns6:item>Axis C++</ns6:item>
> </ns6:m_list_Ref><ns6:name>namepair1</ns6:name>
> </ns6:item><ns8:item xmlns:ns8="http://complexlistservice.test.apache.org"><ns8:m_list_Ref><ns8:item>Test</ns8:item>
> <ns8:item>Complex</ns8:item>
> </ns8:m_list_Ref><ns8:name>namepair2</ns8:name>
> </ns8:item></ns1:arg_1_0>
> </ns1:multilist>
> </SOAP-ENV:Body>
> </SOAP-ENV: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


[jira] Commented: (AXISCPP-860) ComplexLists test is failing due to wrong request message

Posted by "nadir amra (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXISCPP-860?page=comments#action_12332902 ] 

nadir amra commented on AXISCPP-860:
------------------------------------

I fixed the problem but before I close the issue I need someone to verify that what I did was correct since I am not that familiar with the code.

Basically in wsdl\wsdl2ws\cpp\literal/BeanParamWriter.java, in the method writeSerializeGlobalMethod(), near the bottom of the routine:

               //if complex type
                String elm = attribs[i].getParamName();
                if (elm.lastIndexOf("_Ref") > -1)
                {
                    elm = elm.substring(0, elm.lastIndexOf("_Ref"));
                }

                if (elm.charAt(0) == '_')
                {
                    elm = elm.substring(1, elm.length());
                }
                
                if (attribs[i].isReference())
                {
                    elm = attribs[i].getTypeName();
                }
 
                writer.write("\tpSZ->serialize(\"<\", pSZ->getNamespacePrefix(\""
                                + type.getName().getNamespaceURI()
                                + "\"), \":\", \"" + elm + "\", 0);\n");
                writer.write("\tAxis_Serialize_" + attribs[i].getTypeName()
                        + "(param->" + attribs[i].getParamName() + ", pSZ);\n");
                writer.write("\tpSZ->serialize(\"</\", pSZ->getNamespacePrefix(\""
                                + type.getName().getNamespaceURI()
                                + "\"), \":\", \"" + elm + "\", \">\", 0);\n");


I added the checks for _Ref and _, although I am not sure why the check for '_' is needed, but that is what is done elsewhere in the code.  

I will wait a week before I close the issue out.

> ComplexLists test is failing due to wrong request message
> ---------------------------------------------------------
>
>          Key: AXISCPP-860
>          URL: http://issues.apache.org/jira/browse/AXISCPP-860
>      Project: Axis-C++
>         Type: Bug
>   Components: Client - Engine
>     Reporter: James Jose
>     Assignee: nadir amra

>
> Test fails because soap engine creates an element 'm_list_Ref' instead of 'm_list'
> In the Request message generated for ComplexLists, one of the element name is m_list_Ref. Earlier this element name was m_list and that time test was passing. Now application server generates the following error message - Cannot deserialize element m_list_Ref. 
> Request message - when test was passing
> ------------------------------------------------------------
> <?xml version='1.0' encoding='utf-8' ?>
> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <SOAP-ENV:Body>
> <ns1:multilist xmlns:ns1="http://complexlist.test.apache.org">
> <ns1:arg_0_0><ns3:item xmlns:ns3="http://complexlistservice.test.apache.org">never odd or even</ns3:item>
> <ns4:item xmlns:ns4="http://complexlistservice.test.apache.org">any data string</ns4:item>
> </ns1:arg_0_0>
> <ns1:arg_1_0><ns6:item xmlns:ns6="http://complexlistservice.test.apache.org"><ns6:m_list><ns6:item>Apache</ns6:item>
> <ns6:item>Axis C++</ns6:item>
> </ns6:m_list><ns6:name>namepair1</ns6:name>
> </ns6:item><ns8:item xmlns:ns8="http://complexlistservice.test.apache.org"><ns8:m_list><ns8:item>Test</ns8:item>
> <ns8:item>Complex</ns8:item>
> </ns8:m_list><ns8:name>namepair2</ns8:name>
> </ns8:item></ns1:arg_1_0>
> </ns1:multilist>
> </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>
> Request Message : Now
> ----------------------------------
> <?xml version='1.0' encoding='utf-8' ?>
> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <SOAP-ENV:Body>
> <ns1:multilist xmlns:ns1="http://complexlist.test.apache.org">
> <ns1:arg_0_0><ns3:item xmlns:ns3="http://complexlistservice.test.apache.org">never odd or even</ns3:item>
> <ns4:item xmlns:ns4="http://complexlistservice.test.apache.org">any data string</ns4:item>
> </ns1:arg_0_0>
> <ns1:arg_1_0><ns6:item xmlns:ns6="http://complexlistservice.test.apache.org"><ns6:m_list_Ref><ns6:item>Apache</ns6:item>
> <ns6:item>Axis C++</ns6:item>
> </ns6:m_list_Ref><ns6:name>namepair1</ns6:name>
> </ns6:item><ns8:item xmlns:ns8="http://complexlistservice.test.apache.org"><ns8:m_list_Ref><ns8:item>Test</ns8:item>
> <ns8:item>Complex</ns8:item>
> </ns8:m_list_Ref><ns8:name>namepair2</ns8:name>
> </ns8:item></ns1:arg_1_0>
> </ns1:multilist>
> </SOAP-ENV:Body>
> </SOAP-ENV: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


[jira] Commented: (AXISCPP-860) ComplexLists test is failing due to wrong request message

Posted by "John Hawkins (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXISCPP-860?page=comments#action_12356966 ] 

John Hawkins commented on AXISCPP-860:
--------------------------------------

As part of this problem I've just been looking at the attribute elementFormDefault. When this is declared as "qualified" we should not be specifying the namespace in subsequent child elements e.g.

<ns1:multilist>
<ns1:arg_0_0>  // wrong - we should not be using the ns1 here as everything in side <multilist> is by default inns1.
<ns1:item>never odd or even</ns1:item> // wrong - we should not be using the ns1 here as everything in side <multilist> is by default inns1.
</ns1:arg_0_0> // wrong - we should not be using the ns1 here as everything in side <multilist> is by default inns1.
</ns1:multilist> 

is wrong it should be ->

<ns1:multilist>
<arg_0_0>  
<item>
<arg_0_0>
</ns1:multilist> 


I found several good examples but this one I found particularly helpful ->

http://www.xfront.com/HideVersusExpose.html

Obviously, if the elementFormDefault is "qualified" then we should use the ns explicitly. The default is "unqualified".

As you're working heavily with ns at the moment - can you look into this issue too please?


> ComplexLists test is failing due to wrong request message
> ---------------------------------------------------------
>
>          Key: AXISCPP-860
>          URL: http://issues.apache.org/jira/browse/AXISCPP-860
>      Project: Axis-C++
>         Type: Bug
>   Components: Client - Engine
>     Reporter: James Jose
>     Assignee: nadir amra
>      Fix For: 1.6 Alpha

>
> Test fails because soap engine creates an element 'm_list_Ref' instead of 'm_list'
> In the Request message generated for ComplexLists, one of the element name is m_list_Ref. Earlier this element name was m_list and that time test was passing. Now application server generates the following error message - Cannot deserialize element m_list_Ref. 
> Request message - when test was passing
> ------------------------------------------------------------
> <?xml version='1.0' encoding='utf-8' ?>
> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <SOAP-ENV:Body>
> <ns1:multilist xmlns:ns1="http://complexlist.test.apache.org">
> <ns1:arg_0_0><ns3:item xmlns:ns3="http://complexlistservice.test.apache.org">never odd or even</ns3:item>
> <ns4:item xmlns:ns4="http://complexlistservice.test.apache.org">any data string</ns4:item>
> </ns1:arg_0_0>
> <ns1:arg_1_0><ns6:item xmlns:ns6="http://complexlistservice.test.apache.org"><ns6:m_list><ns6:item>Apache</ns6:item>
> <ns6:item>Axis C++</ns6:item>
> </ns6:m_list><ns6:name>namepair1</ns6:name>
> </ns6:item><ns8:item xmlns:ns8="http://complexlistservice.test.apache.org"><ns8:m_list><ns8:item>Test</ns8:item>
> <ns8:item>Complex</ns8:item>
> </ns8:m_list><ns8:name>namepair2</ns8:name>
> </ns8:item></ns1:arg_1_0>
> </ns1:multilist>
> </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>
> Request Message : Now
> ----------------------------------
> <?xml version='1.0' encoding='utf-8' ?>
> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <SOAP-ENV:Body>
> <ns1:multilist xmlns:ns1="http://complexlist.test.apache.org">
> <ns1:arg_0_0><ns3:item xmlns:ns3="http://complexlistservice.test.apache.org">never odd or even</ns3:item>
> <ns4:item xmlns:ns4="http://complexlistservice.test.apache.org">any data string</ns4:item>
> </ns1:arg_0_0>
> <ns1:arg_1_0><ns6:item xmlns:ns6="http://complexlistservice.test.apache.org"><ns6:m_list_Ref><ns6:item>Apache</ns6:item>
> <ns6:item>Axis C++</ns6:item>
> </ns6:m_list_Ref><ns6:name>namepair1</ns6:name>
> </ns6:item><ns8:item xmlns:ns8="http://complexlistservice.test.apache.org"><ns8:m_list_Ref><ns8:item>Test</ns8:item>
> <ns8:item>Complex</ns8:item>
> </ns8:m_list_Ref><ns8:name>namepair2</ns8:name>
> </ns8:item></ns1:arg_1_0>
> </ns1:multilist>
> </SOAP-ENV:Body>
> </SOAP-ENV: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


[jira] Commented: (AXISCPP-860) ComplexLists test is failing due to wrong request message

Posted by "Dushshantha Chandradasa (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXISCPP-860?page=comments#action_12356688 ] 

Dushshantha Chandradasa commented on AXISCPP-860:
-------------------------------------------------

I removed the modifications that i have introdused, so the test is working fine now. The response message is as follows.

POST /axis/ComplexLists HTTP/1.1
Host: localhost:8080
Content-Type: text/xml; charset=UTF-8
SOAPAction: ""
Content-Length: 968

<?xml version='1.0' encoding='utf-8' ?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Body>
<ns1:multilist xmlns:ns1="http://complexlist.test.apache.org">
<ns1:arg_0_0><ns3:item xmlns:ns3="http://complexlistservice.test.apache.org">never odd or even</ns3:item>
<ns4:item xmlns:ns4="http://complexlistservice.test.apache.org">any data string</ns4:item>
</ns1:arg_0_0>
<ns1:arg_1_0><ns6:item xmlns:ns6="http://complexlistservice.test.apache.org"><ns6:m_list><ns6:item>Apache</ns6:item>
<ns6:item>Axis C++</ns6:item>
</ns6:m_list><ns6:name>namepair1</ns6:name>
</ns6:item><ns8:item xmlns:ns8="http://complexlistservice.test.apache.org"><ns8:m_list><ns8:item>Test</ns8:item>
<ns8:item>Complex</ns8:item>
</ns8:m_list><ns8:name>namepair2</ns8:name>
</ns8:item></ns1:arg_1_0>
</ns1:multilist>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

So we can close this issue. 

But few questions:

  1. Why do we ns2 and declare ns3 after declaring ns1?
  2. Is it a good idea to declare same namespace over and over again with different prefixes?? 


> ComplexLists test is failing due to wrong request message
> ---------------------------------------------------------
>
>          Key: AXISCPP-860
>          URL: http://issues.apache.org/jira/browse/AXISCPP-860
>      Project: Axis-C++
>         Type: Bug
>   Components: Client - Engine
>     Reporter: James Jose
>     Assignee: nadir amra
>      Fix For: 1.6 Alpha

>
> Test fails because soap engine creates an element 'm_list_Ref' instead of 'm_list'
> In the Request message generated for ComplexLists, one of the element name is m_list_Ref. Earlier this element name was m_list and that time test was passing. Now application server generates the following error message - Cannot deserialize element m_list_Ref. 
> Request message - when test was passing
> ------------------------------------------------------------
> <?xml version='1.0' encoding='utf-8' ?>
> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <SOAP-ENV:Body>
> <ns1:multilist xmlns:ns1="http://complexlist.test.apache.org">
> <ns1:arg_0_0><ns3:item xmlns:ns3="http://complexlistservice.test.apache.org">never odd or even</ns3:item>
> <ns4:item xmlns:ns4="http://complexlistservice.test.apache.org">any data string</ns4:item>
> </ns1:arg_0_0>
> <ns1:arg_1_0><ns6:item xmlns:ns6="http://complexlistservice.test.apache.org"><ns6:m_list><ns6:item>Apache</ns6:item>
> <ns6:item>Axis C++</ns6:item>
> </ns6:m_list><ns6:name>namepair1</ns6:name>
> </ns6:item><ns8:item xmlns:ns8="http://complexlistservice.test.apache.org"><ns8:m_list><ns8:item>Test</ns8:item>
> <ns8:item>Complex</ns8:item>
> </ns8:m_list><ns8:name>namepair2</ns8:name>
> </ns8:item></ns1:arg_1_0>
> </ns1:multilist>
> </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>
> Request Message : Now
> ----------------------------------
> <?xml version='1.0' encoding='utf-8' ?>
> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <SOAP-ENV:Body>
> <ns1:multilist xmlns:ns1="http://complexlist.test.apache.org">
> <ns1:arg_0_0><ns3:item xmlns:ns3="http://complexlistservice.test.apache.org">never odd or even</ns3:item>
> <ns4:item xmlns:ns4="http://complexlistservice.test.apache.org">any data string</ns4:item>
> </ns1:arg_0_0>
> <ns1:arg_1_0><ns6:item xmlns:ns6="http://complexlistservice.test.apache.org"><ns6:m_list_Ref><ns6:item>Apache</ns6:item>
> <ns6:item>Axis C++</ns6:item>
> </ns6:m_list_Ref><ns6:name>namepair1</ns6:name>
> </ns6:item><ns8:item xmlns:ns8="http://complexlistservice.test.apache.org"><ns8:m_list_Ref><ns8:item>Test</ns8:item>
> <ns8:item>Complex</ns8:item>
> </ns8:m_list_Ref><ns8:name>namepair2</ns8:name>
> </ns8:item></ns1:arg_1_0>
> </ns1:multilist>
> </SOAP-ENV:Body>
> </SOAP-ENV: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


[jira] Assigned: (AXISCPP-860) ComplexLists test is failing due to wrong request message

Posted by "nadir amra (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXISCPP-860?page=all ]

nadir amra reassigned AXISCPP-860:
----------------------------------

    Assign To: nadir amra

> ComplexLists test is failing due to wrong request message
> ---------------------------------------------------------
>
>          Key: AXISCPP-860
>          URL: http://issues.apache.org/jira/browse/AXISCPP-860
>      Project: Axis-C++
>         Type: Bug
>   Components: Client - Engine
>     Reporter: James Jose
>     Assignee: nadir amra

>
> Test fails because soap engine creates an element 'm_list_Ref' instead of 'm_list'
> In the Request message generated for ComplexLists, one of the element name is m_list_Ref. Earlier this element name was m_list and that time test was passing. Now application server generates the following error message - Cannot deserialize element m_list_Ref. 
> Request message - when test was passing
> ------------------------------------------------------------
> <?xml version='1.0' encoding='utf-8' ?>
> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <SOAP-ENV:Body>
> <ns1:multilist xmlns:ns1="http://complexlist.test.apache.org">
> <ns1:arg_0_0><ns3:item xmlns:ns3="http://complexlistservice.test.apache.org">never odd or even</ns3:item>
> <ns4:item xmlns:ns4="http://complexlistservice.test.apache.org">any data string</ns4:item>
> </ns1:arg_0_0>
> <ns1:arg_1_0><ns6:item xmlns:ns6="http://complexlistservice.test.apache.org"><ns6:m_list><ns6:item>Apache</ns6:item>
> <ns6:item>Axis C++</ns6:item>
> </ns6:m_list><ns6:name>namepair1</ns6:name>
> </ns6:item><ns8:item xmlns:ns8="http://complexlistservice.test.apache.org"><ns8:m_list><ns8:item>Test</ns8:item>
> <ns8:item>Complex</ns8:item>
> </ns8:m_list><ns8:name>namepair2</ns8:name>
> </ns8:item></ns1:arg_1_0>
> </ns1:multilist>
> </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>
> Request Message : Now
> ----------------------------------
> <?xml version='1.0' encoding='utf-8' ?>
> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <SOAP-ENV:Body>
> <ns1:multilist xmlns:ns1="http://complexlist.test.apache.org">
> <ns1:arg_0_0><ns3:item xmlns:ns3="http://complexlistservice.test.apache.org">never odd or even</ns3:item>
> <ns4:item xmlns:ns4="http://complexlistservice.test.apache.org">any data string</ns4:item>
> </ns1:arg_0_0>
> <ns1:arg_1_0><ns6:item xmlns:ns6="http://complexlistservice.test.apache.org"><ns6:m_list_Ref><ns6:item>Apache</ns6:item>
> <ns6:item>Axis C++</ns6:item>
> </ns6:m_list_Ref><ns6:name>namepair1</ns6:name>
> </ns6:item><ns8:item xmlns:ns8="http://complexlistservice.test.apache.org"><ns8:m_list_Ref><ns8:item>Test</ns8:item>
> <ns8:item>Complex</ns8:item>
> </ns8:m_list_Ref><ns8:name>namepair2</ns8:name>
> </ns8:item></ns1:arg_1_0>
> </ns1:multilist>
> </SOAP-ENV:Body>
> </SOAP-ENV: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


[jira] Commented: (AXISCPP-860) ComplexLists test is failing due to wrong request message

Posted by "John Hawkins (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXISCPP-860?page=comments#action_12356689 ] 

John Hawkins commented on AXISCPP-860:
--------------------------------------

We should not be redeclaring the ns time and time again. This is really poor. Can you change it to be more intelligent?

> ComplexLists test is failing due to wrong request message
> ---------------------------------------------------------
>
>          Key: AXISCPP-860
>          URL: http://issues.apache.org/jira/browse/AXISCPP-860
>      Project: Axis-C++
>         Type: Bug
>   Components: Client - Engine
>     Reporter: James Jose
>     Assignee: nadir amra
>      Fix For: 1.6 Alpha

>
> Test fails because soap engine creates an element 'm_list_Ref' instead of 'm_list'
> In the Request message generated for ComplexLists, one of the element name is m_list_Ref. Earlier this element name was m_list and that time test was passing. Now application server generates the following error message - Cannot deserialize element m_list_Ref. 
> Request message - when test was passing
> ------------------------------------------------------------
> <?xml version='1.0' encoding='utf-8' ?>
> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <SOAP-ENV:Body>
> <ns1:multilist xmlns:ns1="http://complexlist.test.apache.org">
> <ns1:arg_0_0><ns3:item xmlns:ns3="http://complexlistservice.test.apache.org">never odd or even</ns3:item>
> <ns4:item xmlns:ns4="http://complexlistservice.test.apache.org">any data string</ns4:item>
> </ns1:arg_0_0>
> <ns1:arg_1_0><ns6:item xmlns:ns6="http://complexlistservice.test.apache.org"><ns6:m_list><ns6:item>Apache</ns6:item>
> <ns6:item>Axis C++</ns6:item>
> </ns6:m_list><ns6:name>namepair1</ns6:name>
> </ns6:item><ns8:item xmlns:ns8="http://complexlistservice.test.apache.org"><ns8:m_list><ns8:item>Test</ns8:item>
> <ns8:item>Complex</ns8:item>
> </ns8:m_list><ns8:name>namepair2</ns8:name>
> </ns8:item></ns1:arg_1_0>
> </ns1:multilist>
> </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>
> Request Message : Now
> ----------------------------------
> <?xml version='1.0' encoding='utf-8' ?>
> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <SOAP-ENV:Body>
> <ns1:multilist xmlns:ns1="http://complexlist.test.apache.org">
> <ns1:arg_0_0><ns3:item xmlns:ns3="http://complexlistservice.test.apache.org">never odd or even</ns3:item>
> <ns4:item xmlns:ns4="http://complexlistservice.test.apache.org">any data string</ns4:item>
> </ns1:arg_0_0>
> <ns1:arg_1_0><ns6:item xmlns:ns6="http://complexlistservice.test.apache.org"><ns6:m_list_Ref><ns6:item>Apache</ns6:item>
> <ns6:item>Axis C++</ns6:item>
> </ns6:m_list_Ref><ns6:name>namepair1</ns6:name>
> </ns6:item><ns8:item xmlns:ns8="http://complexlistservice.test.apache.org"><ns8:m_list_Ref><ns8:item>Test</ns8:item>
> <ns8:item>Complex</ns8:item>
> </ns8:m_list_Ref><ns8:name>namepair2</ns8:name>
> </ns8:item></ns1:arg_1_0>
> </ns1:multilist>
> </SOAP-ENV:Body>
> </SOAP-ENV: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


[jira] Closed: (AXISCPP-860) ComplexLists test is failing due to wrong request message

Posted by "nadir amra (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXISCPP-860?page=all ]
     
nadir amra closed AXISCPP-860:
------------------------------

    Fix Version: 1.6 Alpha
     Resolution: Fixed

> ComplexLists test is failing due to wrong request message
> ---------------------------------------------------------
>
>          Key: AXISCPP-860
>          URL: http://issues.apache.org/jira/browse/AXISCPP-860
>      Project: Axis-C++
>         Type: Bug
>   Components: Client - Engine
>     Reporter: James Jose
>     Assignee: nadir amra
>      Fix For: 1.6 Alpha

>
> Test fails because soap engine creates an element 'm_list_Ref' instead of 'm_list'
> In the Request message generated for ComplexLists, one of the element name is m_list_Ref. Earlier this element name was m_list and that time test was passing. Now application server generates the following error message - Cannot deserialize element m_list_Ref. 
> Request message - when test was passing
> ------------------------------------------------------------
> <?xml version='1.0' encoding='utf-8' ?>
> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <SOAP-ENV:Body>
> <ns1:multilist xmlns:ns1="http://complexlist.test.apache.org">
> <ns1:arg_0_0><ns3:item xmlns:ns3="http://complexlistservice.test.apache.org">never odd or even</ns3:item>
> <ns4:item xmlns:ns4="http://complexlistservice.test.apache.org">any data string</ns4:item>
> </ns1:arg_0_0>
> <ns1:arg_1_0><ns6:item xmlns:ns6="http://complexlistservice.test.apache.org"><ns6:m_list><ns6:item>Apache</ns6:item>
> <ns6:item>Axis C++</ns6:item>
> </ns6:m_list><ns6:name>namepair1</ns6:name>
> </ns6:item><ns8:item xmlns:ns8="http://complexlistservice.test.apache.org"><ns8:m_list><ns8:item>Test</ns8:item>
> <ns8:item>Complex</ns8:item>
> </ns8:m_list><ns8:name>namepair2</ns8:name>
> </ns8:item></ns1:arg_1_0>
> </ns1:multilist>
> </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>
> Request Message : Now
> ----------------------------------
> <?xml version='1.0' encoding='utf-8' ?>
> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <SOAP-ENV:Body>
> <ns1:multilist xmlns:ns1="http://complexlist.test.apache.org">
> <ns1:arg_0_0><ns3:item xmlns:ns3="http://complexlistservice.test.apache.org">never odd or even</ns3:item>
> <ns4:item xmlns:ns4="http://complexlistservice.test.apache.org">any data string</ns4:item>
> </ns1:arg_0_0>
> <ns1:arg_1_0><ns6:item xmlns:ns6="http://complexlistservice.test.apache.org"><ns6:m_list_Ref><ns6:item>Apache</ns6:item>
> <ns6:item>Axis C++</ns6:item>
> </ns6:m_list_Ref><ns6:name>namepair1</ns6:name>
> </ns6:item><ns8:item xmlns:ns8="http://complexlistservice.test.apache.org"><ns8:m_list_Ref><ns8:item>Test</ns8:item>
> <ns8:item>Complex</ns8:item>
> </ns8:m_list_Ref><ns8:name>namepair2</ns8:name>
> </ns8:item></ns1:arg_1_0>
> </ns1:multilist>
> </SOAP-ENV:Body>
> </SOAP-ENV: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


[jira] Commented: (AXISCPP-860) ComplexLists test is failing due to wrong request message

Posted by "Dushshantha Chandradasa (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXISCPP-860?page=comments#action_12356589 ] 

Dushshantha Chandradasa commented on AXISCPP-860:
-------------------------------------------------

This happens becourse the the following code of serialization in the generated complex type class.

bool blnIsNewPrefix = false;
	const AxisChar* sPrefix = pSZ->getNamespacePrefix(Axis_URI_attrlist, blnIsNewPrefix);
	if(blnIsNewPrefix)
		pSZ->serialize( " xmlns:", sPrefix , "=\"" , " http://complexlistservice.test.apache.org\"",0);
	pSZ->serialize( ">", 0);

the namespace is declared if it is new amespace. 

According to above logic, http://complexlistservice.test.apache.org is a previously declared namespace and its prefix is ns2. So the serializer does not declare it again. 

I introduces above condition to the serializer to avoid declaring the same namespace over and over again. It seems that this logic is not working. 

Any ideas on how we get rid of this bug??

> ComplexLists test is failing due to wrong request message
> ---------------------------------------------------------
>
>          Key: AXISCPP-860
>          URL: http://issues.apache.org/jira/browse/AXISCPP-860
>      Project: Axis-C++
>         Type: Bug
>   Components: Client - Engine
>     Reporter: James Jose
>     Assignee: nadir amra
>      Fix For: 1.6 Alpha

>
> Test fails because soap engine creates an element 'm_list_Ref' instead of 'm_list'
> In the Request message generated for ComplexLists, one of the element name is m_list_Ref. Earlier this element name was m_list and that time test was passing. Now application server generates the following error message - Cannot deserialize element m_list_Ref. 
> Request message - when test was passing
> ------------------------------------------------------------
> <?xml version='1.0' encoding='utf-8' ?>
> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <SOAP-ENV:Body>
> <ns1:multilist xmlns:ns1="http://complexlist.test.apache.org">
> <ns1:arg_0_0><ns3:item xmlns:ns3="http://complexlistservice.test.apache.org">never odd or even</ns3:item>
> <ns4:item xmlns:ns4="http://complexlistservice.test.apache.org">any data string</ns4:item>
> </ns1:arg_0_0>
> <ns1:arg_1_0><ns6:item xmlns:ns6="http://complexlistservice.test.apache.org"><ns6:m_list><ns6:item>Apache</ns6:item>
> <ns6:item>Axis C++</ns6:item>
> </ns6:m_list><ns6:name>namepair1</ns6:name>
> </ns6:item><ns8:item xmlns:ns8="http://complexlistservice.test.apache.org"><ns8:m_list><ns8:item>Test</ns8:item>
> <ns8:item>Complex</ns8:item>
> </ns8:m_list><ns8:name>namepair2</ns8:name>
> </ns8:item></ns1:arg_1_0>
> </ns1:multilist>
> </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>
> Request Message : Now
> ----------------------------------
> <?xml version='1.0' encoding='utf-8' ?>
> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <SOAP-ENV:Body>
> <ns1:multilist xmlns:ns1="http://complexlist.test.apache.org">
> <ns1:arg_0_0><ns3:item xmlns:ns3="http://complexlistservice.test.apache.org">never odd or even</ns3:item>
> <ns4:item xmlns:ns4="http://complexlistservice.test.apache.org">any data string</ns4:item>
> </ns1:arg_0_0>
> <ns1:arg_1_0><ns6:item xmlns:ns6="http://complexlistservice.test.apache.org"><ns6:m_list_Ref><ns6:item>Apache</ns6:item>
> <ns6:item>Axis C++</ns6:item>
> </ns6:m_list_Ref><ns6:name>namepair1</ns6:name>
> </ns6:item><ns8:item xmlns:ns8="http://complexlistservice.test.apache.org"><ns8:m_list_Ref><ns8:item>Test</ns8:item>
> <ns8:item>Complex</ns8:item>
> </ns8:m_list_Ref><ns8:name>namepair2</ns8:name>
> </ns8:item></ns1:arg_1_0>
> </ns1:multilist>
> </SOAP-ENV:Body>
> </SOAP-ENV: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


[jira] Commented: (AXISCPP-860) ComplexLists test is failing due to wrong request message

Posted by "Dushshantha Chandradasa (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXISCPP-860?page=comments#action_12357201 ] 

Dushshantha Chandradasa commented on AXISCPP-860:
-------------------------------------------------

I'm a bit confused here. the wasdl says that the schema is elementFormDefault qualified. 

<schema elementFormDefault="qualified" targetNamespace="http://complexlistservice.test.apache.org" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:impl="http://complexlistImpl.test.apache.org" xmlns:intf="http://complexlistIntf.test.apache.org" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <complexType name="m_list">
    <sequence>
     <element maxOccurs="unbounded" name="item" nillable="true" type="xsd:string"/>
    </sequence>
   </complexType>
   ...

That means we have to expose the ns (??)

> ComplexLists test is failing due to wrong request message
> ---------------------------------------------------------
>
>          Key: AXISCPP-860
>          URL: http://issues.apache.org/jira/browse/AXISCPP-860
>      Project: Axis-C++
>         Type: Bug
>   Components: Client - Engine
>     Reporter: James Jose
>     Assignee: nadir amra
>      Fix For: 1.6 Alpha

>
> Test fails because soap engine creates an element 'm_list_Ref' instead of 'm_list'
> In the Request message generated for ComplexLists, one of the element name is m_list_Ref. Earlier this element name was m_list and that time test was passing. Now application server generates the following error message - Cannot deserialize element m_list_Ref. 
> Request message - when test was passing
> ------------------------------------------------------------
> <?xml version='1.0' encoding='utf-8' ?>
> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <SOAP-ENV:Body>
> <ns1:multilist xmlns:ns1="http://complexlist.test.apache.org">
> <ns1:arg_0_0><ns3:item xmlns:ns3="http://complexlistservice.test.apache.org">never odd or even</ns3:item>
> <ns4:item xmlns:ns4="http://complexlistservice.test.apache.org">any data string</ns4:item>
> </ns1:arg_0_0>
> <ns1:arg_1_0><ns6:item xmlns:ns6="http://complexlistservice.test.apache.org"><ns6:m_list><ns6:item>Apache</ns6:item>
> <ns6:item>Axis C++</ns6:item>
> </ns6:m_list><ns6:name>namepair1</ns6:name>
> </ns6:item><ns8:item xmlns:ns8="http://complexlistservice.test.apache.org"><ns8:m_list><ns8:item>Test</ns8:item>
> <ns8:item>Complex</ns8:item>
> </ns8:m_list><ns8:name>namepair2</ns8:name>
> </ns8:item></ns1:arg_1_0>
> </ns1:multilist>
> </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>
> Request Message : Now
> ----------------------------------
> <?xml version='1.0' encoding='utf-8' ?>
> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <SOAP-ENV:Body>
> <ns1:multilist xmlns:ns1="http://complexlist.test.apache.org">
> <ns1:arg_0_0><ns3:item xmlns:ns3="http://complexlistservice.test.apache.org">never odd or even</ns3:item>
> <ns4:item xmlns:ns4="http://complexlistservice.test.apache.org">any data string</ns4:item>
> </ns1:arg_0_0>
> <ns1:arg_1_0><ns6:item xmlns:ns6="http://complexlistservice.test.apache.org"><ns6:m_list_Ref><ns6:item>Apache</ns6:item>
> <ns6:item>Axis C++</ns6:item>
> </ns6:m_list_Ref><ns6:name>namepair1</ns6:name>
> </ns6:item><ns8:item xmlns:ns8="http://complexlistservice.test.apache.org"><ns8:m_list_Ref><ns8:item>Test</ns8:item>
> <ns8:item>Complex</ns8:item>
> </ns8:m_list_Ref><ns8:name>namepair2</ns8:name>
> </ns8:item></ns1:arg_1_0>
> </ns1:multilist>
> </SOAP-ENV:Body>
> </SOAP-ENV: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