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 "Srinivas Umareddy (JIRA)" <ax...@ws.apache.org> on 2010/07/22 23:36:53 UTC

[jira] Created: (AXISCPP-1072) AxisSoapException: Soap message content is not valid. Unexpected or extraneous element (ProductInformation) encountered.

AxisSoapException: Soap message content is not valid. Unexpected or extraneous element (ProductInformation) encountered.
------------------------------------------------------------------------------------------------------------------------

                 Key: AXISCPP-1072
                 URL: https://issues.apache.org/jira/browse/AXISCPP-1072
             Project: Axis-C++
          Issue Type: Bug
          Components: Client - Deserialization
    Affects Versions: current (nightly)
         Environment: Axis Client : latest code from SVN 
XMLParser: xerces-c-2.7.0
WSDL2WS: Build with latest code using Axis Java 1.4
Compiler: VC++ 2005(Vc8)
            Reporter: Srinivas Umareddy
             Fix For: current (nightly)


I have rebuild Axis c++ client code with latest code. 


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org


[jira] Commented: (AXISCPP-1072) AxisSoapException: Soap message content is not valid. Unexpected or extraneous element (ProductInformation) encountered.

Posted by "Srinivas Umareddy (JIRA)" <ax...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/AXISCPP-1072?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12892591#action_12892591 ] 

Srinivas Umareddy commented on AXISCPP-1072:
--------------------------------------------

have debugged axis_client code with my client stub code and my webservice return 
getCmplxObject() call. Looks like latest code is not handling the array of structures.

For wsdl file, WSDL2WS generated the below entry code.

// ======================================================================

// Invoke web service, send/receive operation. Handle output parameters, if any.

// ======================================================================

if (AXIS_SUCCESS == m_pCall->sendAndReceive())

{

if(AXIS_SUCCESS == m_pCall->validateMessage("ProductInfoResponse", "http://www.cat.com/NPIDataServices/2007/02/05", false))

{

pReturn = (ProductInfoArray*)m_pCall->getCmplxObject((void*) Axis_DeSerialize_ProductInfoArray, (void*) Axis_Create_ProductInfoArray, (void*) Axis_Delete_ProductInfoArray,"ProductInfoArray", 0);

}

checkForExtraneousElements();

}
getCmplxObject() call returning from below loop beacuse  pName ( value =ProductInfoArray ) and m_pNode->m_pchNameOrValue( value ="ProductInfoResponse") not matching. why this mismatch ?
if (RPC_ENCODED != m_nStyle) // TODO - why do we selectively do this check and not for all?

if (0 != strcmp (pName, m_pNode->m_pchNameOrValue))

{

/*

* TODO: Need to verify what WS-I 1.0 says

* about the mandatory of all the elements in the response in case of

* null value or none filled value. Some Web services servers work

* like this. This apply for all the rest of the deserializer.

*/

logExitWithPointer(NULL)

return NULL; 

}
why my wsdl is going this loop?. I have tested this with 1.6b banaires and it worked fine but it was failing larger xml data. Looks like lot of change happed to svn code compare to 1.6b. 

We are using so far axis cpp 1.6b binaries which are compiled on VC++ 6 and they worked great except larger xml. Please let me know your suggesation on this. Do you guys want us to use old binaries?.  Or moving Axis 2 will fix  larger xml problem?

Caterpilar is using the axis c++ for many project for integrating teamcenter with legacy system.

I spent two weeks on compilation with new parser and svn code but didn't work. I tried couple of time compile the axis code vc+ 2003 but failed now i have build all the binaries on VC++ 2005 both release and debug version but not having much exposer to webservies to fix this issue. Please help us on this critical issue.



> AxisSoapException: Soap message content is not valid. Unexpected or extraneous element (ProductInformation) encountered.
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXISCPP-1072
>                 URL: https://issues.apache.org/jira/browse/AXISCPP-1072
>             Project: Axis-C++
>          Issue Type: Bug
>          Components: Client - Deserialization
>    Affects Versions: current (nightly)
>         Environment: Axis Client : latest code from SVN 
> XMLParser: xerces-c-2.7.0
> WSDL2WS: Build with latest code using Axis Java 1.4
> Compiler: VC++ 2005(Vc8)
>            Reporter: Srinivas Umareddy
>             Fix For: current (nightly)
>
>         Attachments: axisclient.log, NPIDataServices.wsdl
>
>
> I have rebuild Axis c++ client code with latest code using xerces-c-2.7.0. I have generate the my cilent code with latest wsdl2ws tool. I see checkForExtraneousElements() introduced with latest wsdl2ws. 
> I am getting below error message when i execute the new code. Looks like some thing broken or i am missing some thing. 
> Here is my soap responce.
> <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>
>   <ProductInfoResponse xmlns="http://www.cat.com/NPIDataServices/2007/02/05">
>    <ProductInfoResponse xmlns="">
>     <SerialNumber>B1L</SerialNumber>
>     <ProductGroup>ARTICULATED TRUCKS</ProductGroup>
>     <GenericModel>725</GenericModel>
>     <PrimaryModel>725</PrimaryModel>
>     <SerialNumberBuilt>2250</SerialNumberBuilt>
>     <LastBuild>2010-04-30 00:00:00.0</LastBuild>
>     <Facility>PETERLEE (U2)</Facility>
>     <EngineeringModel>RM715</EngineeringModel>
>     <EngineeringVersion>-</EngineeringVersion>
>     <GeneralArrangement >2268615</GeneralArrangement >
>     <AssociatedModel>RM574</AssociatedModel>
>     <ProductType>AD</ProductType>
>     <CaptiveEngineModel>C11</CaptiveEngineModel>
>     <EngineFacilityCode>40</EngineFacilityCode>
>     <EngineFamily>ZE</EngineFamily>
>     <OldNewAssociatedModel>O</OldNewAssociatedModel>
>    </ProductInfoResponse>
>   </ProductInfoResponse>
>  </soapenv:Body>
> </soapenv:Envelope>
> Looks above soap not having any extraneous element. Why my client code is not working. 
> please help on this issue. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org


[jira] Reopened: (AXISCPP-1072) AxisSoapException: Soap message content is not valid. Unexpected or extraneous element (ProductInformation) encountered.

Posted by "nadir amra (JIRA)" <ax...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/AXISCPP-1072?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

nadir amra reopened AXISCPP-1072:
---------------------------------


hmmm, maybe i was hasty.  need to look into this a little more. 

> AxisSoapException: Soap message content is not valid. Unexpected or extraneous element (ProductInformation) encountered.
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXISCPP-1072
>                 URL: https://issues.apache.org/jira/browse/AXISCPP-1072
>             Project: Axis-C++
>          Issue Type: Bug
>          Components: Client - Deserialization
>    Affects Versions: current (nightly)
>         Environment: Axis Client : latest code from SVN 
> XMLParser: xerces-c-2.7.0
> WSDL2WS: Build with latest code using Axis Java 1.4
> Compiler: VC++ 2005(Vc8)
>            Reporter: Srinivas Umareddy
>             Fix For: current (nightly)
>
>         Attachments: axisclient.log, NPIDataServices.wsdl
>
>
> I have rebuild Axis c++ client code with latest code using xerces-c-2.7.0. I have generate the my cilent code with latest wsdl2ws tool. I see checkForExtraneousElements() introduced with latest wsdl2ws. 
> I am getting below error message when i execute the new code. Looks like some thing broken or i am missing some thing. 
> Here is my soap responce.
> <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>
>   <ProductInfoResponse xmlns="http://www.cat.com/NPIDataServices/2007/02/05">
>    <ProductInfoResponse xmlns="">
>     <SerialNumber>B1L</SerialNumber>
>     <ProductGroup>ARTICULATED TRUCKS</ProductGroup>
>     <GenericModel>725</GenericModel>
>     <PrimaryModel>725</PrimaryModel>
>     <SerialNumberBuilt>2250</SerialNumberBuilt>
>     <LastBuild>2010-04-30 00:00:00.0</LastBuild>
>     <Facility>PETERLEE (U2)</Facility>
>     <EngineeringModel>RM715</EngineeringModel>
>     <EngineeringVersion>-</EngineeringVersion>
>     <GeneralArrangement >2268615</GeneralArrangement >
>     <AssociatedModel>RM574</AssociatedModel>
>     <ProductType>AD</ProductType>
>     <CaptiveEngineModel>C11</CaptiveEngineModel>
>     <EngineFacilityCode>40</EngineFacilityCode>
>     <EngineFamily>ZE</EngineFamily>
>     <OldNewAssociatedModel>O</OldNewAssociatedModel>
>    </ProductInfoResponse>
>   </ProductInfoResponse>
>  </soapenv:Body>
> </soapenv:Envelope>
> Looks above soap not having any extraneous element. Why my client code is not working. 
> please help on this issue. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org


[jira] Updated: (AXISCPP-1072) AxisSoapException: Soap message content is not valid. Unexpected or extraneous element (ProductInformation) encountered.

Posted by "Srinivas Umareddy (JIRA)" <ax...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/AXISCPP-1072?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Srinivas Umareddy updated AXISCPP-1072:
---------------------------------------

    Attachment:     (was: axisclient.log)

> AxisSoapException: Soap message content is not valid. Unexpected or extraneous element (ProductInformation) encountered.
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXISCPP-1072
>                 URL: https://issues.apache.org/jira/browse/AXISCPP-1072
>             Project: Axis-C++
>          Issue Type: Bug
>          Components: Client - Deserialization
>    Affects Versions: current (nightly)
>         Environment: Axis Client : latest code from SVN 
> XMLParser: xerces-c-2.7.0
> WSDL2WS: Build with latest code using Axis Java 1.4
> Compiler: VC++ 2005(Vc8)
>            Reporter: Srinivas Umareddy
>             Fix For: current (nightly)
>
>
> I have rebuild Axis c++ client code with latest code using xerces-c-2.7.0. I have generate the my cilent code with latest wsdl2ws tool. I see checkForExtraneousElements() introduced with latest wsdl2ws. 
> I am getting below error message when i execute the new code. Looks like some thing broken or i am missing some thing. 
> Here is my soap responce.
> <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>
>   <ProductInfoResponse xmlns="http://www.cat.com/NPIDataServices/2007/02/05">
>    <ProductInfoResponse xmlns="">
>     <SerialNumber>B1L</SerialNumber>
>     <ProductGroup>ARTICULATED TRUCKS</ProductGroup>
>     <GenericModel>725</GenericModel>
>     <PrimaryModel>725</PrimaryModel>
>     <SerialNumberBuilt>2250</SerialNumberBuilt>
>     <LastBuild>2010-04-30 00:00:00.0</LastBuild>
>     <Facility>PETERLEE (U2)</Facility>
>     <EngineeringModel>RM715</EngineeringModel>
>     <EngineeringVersion>-</EngineeringVersion>
>     <GeneralArrangement >2268615</GeneralArrangement >
>     <AssociatedModel>RM574</AssociatedModel>
>     <ProductType>AD</ProductType>
>     <CaptiveEngineModel>C11</CaptiveEngineModel>
>     <EngineFacilityCode>40</EngineFacilityCode>
>     <EngineFamily>ZE</EngineFamily>
>     <OldNewAssociatedModel>O</OldNewAssociatedModel>
>    </ProductInfoResponse>
>   </ProductInfoResponse>
>  </soapenv:Body>
> </soapenv:Envelope>
> Looks above soap not having any extraneous element. Why my client code is not working. 
> please help on this issue. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org


[jira] Commented: (AXISCPP-1072) AxisSoapException: Soap message content is not valid. Unexpected or extraneous element (ProductInformation) encountered.

Posted by "nadir amra (JIRA)" <ax...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/AXISCPP-1072?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12898510#action_12898510 ] 

nadir amra commented on AXISCPP-1072:
-------------------------------------

Still looking into this...not sure how to resolve.  Yes, the problem is in the C++ stub generator.

Obviously, if the type and element names are the same the problem I think goes away.  Or if you define the response element as an anonymous complex type then the problem goes away.  

This will take some time on my part to come up with a solution, mainly because I do not want to introduce a regression problem. 

The method that I am looking into is src/wsdl/wsdl2ws/cpp/literal/ClientStubWriter.java and src/wsdl/wsdl2ws/info/WSDLInfo.java

> AxisSoapException: Soap message content is not valid. Unexpected or extraneous element (ProductInformation) encountered.
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXISCPP-1072
>                 URL: https://issues.apache.org/jira/browse/AXISCPP-1072
>             Project: Axis-C++
>          Issue Type: Bug
>          Components: Client - Deserialization
>    Affects Versions: current (nightly)
>         Environment: Axis Client : latest code from SVN 
> XMLParser: xerces-c-2.7.0
> WSDL2WS: Build with latest code using Axis Java 1.4
> Compiler: VC++ 2005(Vc8)
>            Reporter: Srinivas Umareddy
>             Fix For: current (nightly)
>
>         Attachments: axisclient.log, NPIDataServices.wsdl
>
>
> I have rebuild Axis c++ client code with latest code using xerces-c-2.7.0. I have generate the my cilent code with latest wsdl2ws tool. I see checkForExtraneousElements() introduced with latest wsdl2ws. 
> I am getting below error message when i execute the new code. Looks like some thing broken or i am missing some thing. 
> Here is my soap responce.
> <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>
>   <ProductInfoResponse xmlns="http://www.cat.com/NPIDataServices/2007/02/05">
>    <ProductInfoResponse xmlns="">
>     <SerialNumber>B1L</SerialNumber>
>     <ProductGroup>ARTICULATED TRUCKS</ProductGroup>
>     <GenericModel>725</GenericModel>
>     <PrimaryModel>725</PrimaryModel>
>     <SerialNumberBuilt>2250</SerialNumberBuilt>
>     <LastBuild>2010-04-30 00:00:00.0</LastBuild>
>     <Facility>PETERLEE (U2)</Facility>
>     <EngineeringModel>RM715</EngineeringModel>
>     <EngineeringVersion>-</EngineeringVersion>
>     <GeneralArrangement >2268615</GeneralArrangement >
>     <AssociatedModel>RM574</AssociatedModel>
>     <ProductType>AD</ProductType>
>     <CaptiveEngineModel>C11</CaptiveEngineModel>
>     <EngineFacilityCode>40</EngineFacilityCode>
>     <EngineFamily>ZE</EngineFamily>
>     <OldNewAssociatedModel>O</OldNewAssociatedModel>
>    </ProductInfoResponse>
>   </ProductInfoResponse>
>  </soapenv:Body>
> </soapenv:Envelope>
> Looks above soap not having any extraneous element. Why my client code is not working. 
> please help on this issue. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org


[jira] Issue Comment Edited: (AXISCPP-1072) AxisSoapException: Soap message content is not valid. Unexpected or extraneous element (ProductInformation) encountered.

Posted by "Srinivas Umareddy (JIRA)" <ax...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/AXISCPP-1072?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12892823#action_12892823 ] 

Srinivas Umareddy edited comment on AXISCPP-1072 at 7/27/10 11:32 AM:
----------------------------------------------------------------------

Looks like there is some bug in below if condition. All my webservice client are coming out from below if condition beacuse client is passing return array name ( in my case ProductInfoArray) for pName in the getCmplxObject() method and top element name for m_pNode->m_pchNameOrValue ( in my case ProductInfoResponse).

if (RPC_ENCODED != m_nStyle) // TODO - why do we selectively do this check and not for all? 

if (0 != strcmp (pName, m_pNode->m_pchNameOrValue)) 

{ 

/* 

* TODO: Need to verify what WS-I 1.0 says 

* about the mandatory of all the elements in the response in case of 

* null value or none filled value. Some Web services servers work 

* like this. This apply for all the rest of the deserializer. 

*/ 

logExitWithPointer(NULL) 

return NULL; 

} 

All my webservice started working when i comment the return statement in above loop or if I pass the ProductInfoResponse name for pName in the getCmplxObject() method from client code.

Let me know which is wrong ? client stub or above code . I didn't understand why we are doing above check it always come out. 


      was (Author: umareddy):
    Looks like there is some bug in below if condition. All my webservice client are coming out for below if condition beacuse client are passing return array name ( in my case ProductInfoArray) for pName in the getCmplxObject() method and m_pNode->m_pchNameOrValue valuse top element name ( in my case ProductInfoResponse).

if (RPC_ENCODED != m_nStyle) // TODO - why do we selectively do this check and not for all? 

if (0 != strcmp (pName, m_pNode->m_pchNameOrValue)) 

{ 

/* 

* TODO: Need to verify what WS-I 1.0 says 

* about the mandatory of all the elements in the response in case of 

* null value or none filled value. Some Web services servers work 

* like this. This apply for all the rest of the deserializer. 

*/ 

logExitWithPointer(NULL) 

return NULL; 

} 

My webservice started working when i comment the return form above loop or if  pass the ProductInfoResponse name for pName in the getCmplxObject() method from client code.

Let me know which is wrong ? client stub or above code . I didn't understand why we are doing above check it always come out. 

  
> AxisSoapException: Soap message content is not valid. Unexpected or extraneous element (ProductInformation) encountered.
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXISCPP-1072
>                 URL: https://issues.apache.org/jira/browse/AXISCPP-1072
>             Project: Axis-C++
>          Issue Type: Bug
>          Components: Client - Deserialization
>    Affects Versions: current (nightly)
>         Environment: Axis Client : latest code from SVN 
> XMLParser: xerces-c-2.7.0
> WSDL2WS: Build with latest code using Axis Java 1.4
> Compiler: VC++ 2005(Vc8)
>            Reporter: Srinivas Umareddy
>             Fix For: current (nightly)
>
>         Attachments: axisclient.log, NPIDataServices.wsdl
>
>
> I have rebuild Axis c++ client code with latest code using xerces-c-2.7.0. I have generate the my cilent code with latest wsdl2ws tool. I see checkForExtraneousElements() introduced with latest wsdl2ws. 
> I am getting below error message when i execute the new code. Looks like some thing broken or i am missing some thing. 
> Here is my soap responce.
> <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>
>   <ProductInfoResponse xmlns="http://www.cat.com/NPIDataServices/2007/02/05">
>    <ProductInfoResponse xmlns="">
>     <SerialNumber>B1L</SerialNumber>
>     <ProductGroup>ARTICULATED TRUCKS</ProductGroup>
>     <GenericModel>725</GenericModel>
>     <PrimaryModel>725</PrimaryModel>
>     <SerialNumberBuilt>2250</SerialNumberBuilt>
>     <LastBuild>2010-04-30 00:00:00.0</LastBuild>
>     <Facility>PETERLEE (U2)</Facility>
>     <EngineeringModel>RM715</EngineeringModel>
>     <EngineeringVersion>-</EngineeringVersion>
>     <GeneralArrangement >2268615</GeneralArrangement >
>     <AssociatedModel>RM574</AssociatedModel>
>     <ProductType>AD</ProductType>
>     <CaptiveEngineModel>C11</CaptiveEngineModel>
>     <EngineFacilityCode>40</EngineFacilityCode>
>     <EngineFamily>ZE</EngineFamily>
>     <OldNewAssociatedModel>O</OldNewAssociatedModel>
>    </ProductInfoResponse>
>   </ProductInfoResponse>
>  </soapenv:Body>
> </soapenv:Envelope>
> Looks above soap not having any extraneous element. Why my client code is not working. 
> please help on this issue. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org


[jira] Commented: (AXISCPP-1072) AxisSoapException: Soap message content is not valid. Unexpected or extraneous element (ProductInformation) encountered.

Posted by "Srinivas Umareddy (JIRA)" <ax...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/AXISCPP-1072?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12898360#action_12898360 ] 

Srinivas Umareddy commented on AXISCPP-1072:
--------------------------------------------

Nadir,

we plan to go for production with latest the axis client code. So please confirm on above issue. How to fix and go forward.?

> AxisSoapException: Soap message content is not valid. Unexpected or extraneous element (ProductInformation) encountered.
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXISCPP-1072
>                 URL: https://issues.apache.org/jira/browse/AXISCPP-1072
>             Project: Axis-C++
>          Issue Type: Bug
>          Components: Client - Deserialization
>    Affects Versions: current (nightly)
>         Environment: Axis Client : latest code from SVN 
> XMLParser: xerces-c-2.7.0
> WSDL2WS: Build with latest code using Axis Java 1.4
> Compiler: VC++ 2005(Vc8)
>            Reporter: Srinivas Umareddy
>             Fix For: current (nightly)
>
>         Attachments: axisclient.log, NPIDataServices.wsdl
>
>
> I have rebuild Axis c++ client code with latest code using xerces-c-2.7.0. I have generate the my cilent code with latest wsdl2ws tool. I see checkForExtraneousElements() introduced with latest wsdl2ws. 
> I am getting below error message when i execute the new code. Looks like some thing broken or i am missing some thing. 
> Here is my soap responce.
> <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>
>   <ProductInfoResponse xmlns="http://www.cat.com/NPIDataServices/2007/02/05">
>    <ProductInfoResponse xmlns="">
>     <SerialNumber>B1L</SerialNumber>
>     <ProductGroup>ARTICULATED TRUCKS</ProductGroup>
>     <GenericModel>725</GenericModel>
>     <PrimaryModel>725</PrimaryModel>
>     <SerialNumberBuilt>2250</SerialNumberBuilt>
>     <LastBuild>2010-04-30 00:00:00.0</LastBuild>
>     <Facility>PETERLEE (U2)</Facility>
>     <EngineeringModel>RM715</EngineeringModel>
>     <EngineeringVersion>-</EngineeringVersion>
>     <GeneralArrangement >2268615</GeneralArrangement >
>     <AssociatedModel>RM574</AssociatedModel>
>     <ProductType>AD</ProductType>
>     <CaptiveEngineModel>C11</CaptiveEngineModel>
>     <EngineFacilityCode>40</EngineFacilityCode>
>     <EngineFamily>ZE</EngineFamily>
>     <OldNewAssociatedModel>O</OldNewAssociatedModel>
>    </ProductInfoResponse>
>   </ProductInfoResponse>
>  </soapenv:Body>
> </soapenv:Envelope>
> Looks above soap not having any extraneous element. Why my client code is not working. 
> please help on this issue. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org


[jira] Updated: (AXISCPP-1072) AxisSoapException: Soap message content is not valid. Unexpected or extraneous element (ProductInformation) encountered.

Posted by "Srinivas Umareddy (JIRA)" <ax...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/AXISCPP-1072?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Srinivas Umareddy updated AXISCPP-1072:
---------------------------------------

    Attachment: axisclient.log

attaching the log file

> AxisSoapException: Soap message content is not valid. Unexpected or extraneous element (ProductInformation) encountered.
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXISCPP-1072
>                 URL: https://issues.apache.org/jira/browse/AXISCPP-1072
>             Project: Axis-C++
>          Issue Type: Bug
>          Components: Client - Deserialization
>    Affects Versions: current (nightly)
>         Environment: Axis Client : latest code from SVN 
> XMLParser: xerces-c-2.7.0
> WSDL2WS: Build with latest code using Axis Java 1.4
> Compiler: VC++ 2005(Vc8)
>            Reporter: Srinivas Umareddy
>             Fix For: current (nightly)
>
>         Attachments: axisclient.log
>
>
> I have rebuild Axis c++ client code with latest code using xerces-c-2.7.0. I have generate the my cilent code with latest wsdl2ws tool. I see checkForExtraneousElements() introduced with latest wsdl2ws. 
> I am getting below error message when i execute the new code. Looks like some thing broken or i am missing some thing. 
> Here is my soap responce.
> <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>
>   <ProductInfoResponse xmlns="http://www.cat.com/NPIDataServices/2007/02/05">
>    <ProductInfoResponse xmlns="">
>     <SerialNumber>B1L</SerialNumber>
>     <ProductGroup>ARTICULATED TRUCKS</ProductGroup>
>     <GenericModel>725</GenericModel>
>     <PrimaryModel>725</PrimaryModel>
>     <SerialNumberBuilt>2250</SerialNumberBuilt>
>     <LastBuild>2010-04-30 00:00:00.0</LastBuild>
>     <Facility>PETERLEE (U2)</Facility>
>     <EngineeringModel>RM715</EngineeringModel>
>     <EngineeringVersion>-</EngineeringVersion>
>     <GeneralArrangement >2268615</GeneralArrangement >
>     <AssociatedModel>RM574</AssociatedModel>
>     <ProductType>AD</ProductType>
>     <CaptiveEngineModel>C11</CaptiveEngineModel>
>     <EngineFacilityCode>40</EngineFacilityCode>
>     <EngineFamily>ZE</EngineFamily>
>     <OldNewAssociatedModel>O</OldNewAssociatedModel>
>    </ProductInfoResponse>
>   </ProductInfoResponse>
>  </soapenv:Body>
> </soapenv:Envelope>
> Looks above soap not having any extraneous element. Why my client code is not working. 
> please help on this issue. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org


[jira] Closed: (AXISCPP-1072) AxisSoapException: Soap message content is not valid. Unexpected or extraneous element (ProductInformation) encountered.

Posted by "nadir amra (JIRA)" <ax...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/AXISCPP-1072?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

nadir amra closed AXISCPP-1072.
-------------------------------

    Resolution: Not A Problem

As far as I can tell, the problem is the response. 

The response is defined as:

 <xsd:element name="ProductInfoResponse" type="tns:ProductInfoArray"></xsd:element>
    
 <xsd:complexType name="ProductInfoArray">
    <xsd:sequence>
       <xsd:element name="ProductInformation" type="tns:ProductInformation" minOccurs="0" maxOccurs="unbounded"> 
       </xsd:element>
    </xsd:sequence>
</xsd:complexType>

The response being returned is (partial response shown):

<ProductInfoResponse xmlns="http://www.cat.com/NPIDataServices/2007/02/05">
   <ProductInformation xmlns="">
    <SerialNumber>B1L</SerialNumber>
    <ProductGroup>ARTICULATED TRUCKS</ProductGroup>
    <GenericModel>725</GenericModel>

And I also get 

AxisSoapException: Soap message content is not valid.                
Unexpected or extraneous element (ProductInformation) encountered.   

Which is correct since ProductInfoArray element is not being returned. 



> AxisSoapException: Soap message content is not valid. Unexpected or extraneous element (ProductInformation) encountered.
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXISCPP-1072
>                 URL: https://issues.apache.org/jira/browse/AXISCPP-1072
>             Project: Axis-C++
>          Issue Type: Bug
>          Components: Client - Deserialization
>    Affects Versions: current (nightly)
>         Environment: Axis Client : latest code from SVN 
> XMLParser: xerces-c-2.7.0
> WSDL2WS: Build with latest code using Axis Java 1.4
> Compiler: VC++ 2005(Vc8)
>            Reporter: Srinivas Umareddy
>             Fix For: current (nightly)
>
>         Attachments: axisclient.log, NPIDataServices.wsdl
>
>
> I have rebuild Axis c++ client code with latest code using xerces-c-2.7.0. I have generate the my cilent code with latest wsdl2ws tool. I see checkForExtraneousElements() introduced with latest wsdl2ws. 
> I am getting below error message when i execute the new code. Looks like some thing broken or i am missing some thing. 
> Here is my soap responce.
> <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>
>   <ProductInfoResponse xmlns="http://www.cat.com/NPIDataServices/2007/02/05">
>    <ProductInfoResponse xmlns="">
>     <SerialNumber>B1L</SerialNumber>
>     <ProductGroup>ARTICULATED TRUCKS</ProductGroup>
>     <GenericModel>725</GenericModel>
>     <PrimaryModel>725</PrimaryModel>
>     <SerialNumberBuilt>2250</SerialNumberBuilt>
>     <LastBuild>2010-04-30 00:00:00.0</LastBuild>
>     <Facility>PETERLEE (U2)</Facility>
>     <EngineeringModel>RM715</EngineeringModel>
>     <EngineeringVersion>-</EngineeringVersion>
>     <GeneralArrangement >2268615</GeneralArrangement >
>     <AssociatedModel>RM574</AssociatedModel>
>     <ProductType>AD</ProductType>
>     <CaptiveEngineModel>C11</CaptiveEngineModel>
>     <EngineFacilityCode>40</EngineFacilityCode>
>     <EngineFamily>ZE</EngineFamily>
>     <OldNewAssociatedModel>O</OldNewAssociatedModel>
>    </ProductInfoResponse>
>   </ProductInfoResponse>
>  </soapenv:Body>
> </soapenv:Envelope>
> Looks above soap not having any extraneous element. Why my client code is not working. 
> please help on this issue. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org


[jira] Commented: (AXISCPP-1072) AxisSoapException: Soap message content is not valid. Unexpected or extraneous element (ProductInformation) encountered.

Posted by "Srinivas Umareddy (JIRA)" <ax...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/AXISCPP-1072?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12892823#action_12892823 ] 

Srinivas Umareddy commented on AXISCPP-1072:
--------------------------------------------

Looks like there is some bug in below if condition. All my webservice client are coming out for below if condition beacuse client are passing return array name ( in my case ProductInfoArray) for pName in the getCmplxObject() method and m_pNode->m_pchNameOrValue valuse top element name ( in my case ProductInfoResponse).

if (RPC_ENCODED != m_nStyle) // TODO - why do we selectively do this check and not for all? 

if (0 != strcmp (pName, m_pNode->m_pchNameOrValue)) 

{ 

/* 

* TODO: Need to verify what WS-I 1.0 says 

* about the mandatory of all the elements in the response in case of 

* null value or none filled value. Some Web services servers work 

* like this. This apply for all the rest of the deserializer. 

*/ 

logExitWithPointer(NULL) 

return NULL; 

} 

My webservice started working when i comment the return form above loop or if  pass the ProductInfoResponse name for pName in the getCmplxObject() method from client code.

Let me know which is wrong ? client stub or above code . I didn't understand why we are doing above check it always come out. 


> AxisSoapException: Soap message content is not valid. Unexpected or extraneous element (ProductInformation) encountered.
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXISCPP-1072
>                 URL: https://issues.apache.org/jira/browse/AXISCPP-1072
>             Project: Axis-C++
>          Issue Type: Bug
>          Components: Client - Deserialization
>    Affects Versions: current (nightly)
>         Environment: Axis Client : latest code from SVN 
> XMLParser: xerces-c-2.7.0
> WSDL2WS: Build with latest code using Axis Java 1.4
> Compiler: VC++ 2005(Vc8)
>            Reporter: Srinivas Umareddy
>             Fix For: current (nightly)
>
>         Attachments: axisclient.log, NPIDataServices.wsdl
>
>
> I have rebuild Axis c++ client code with latest code using xerces-c-2.7.0. I have generate the my cilent code with latest wsdl2ws tool. I see checkForExtraneousElements() introduced with latest wsdl2ws. 
> I am getting below error message when i execute the new code. Looks like some thing broken or i am missing some thing. 
> Here is my soap responce.
> <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>
>   <ProductInfoResponse xmlns="http://www.cat.com/NPIDataServices/2007/02/05">
>    <ProductInfoResponse xmlns="">
>     <SerialNumber>B1L</SerialNumber>
>     <ProductGroup>ARTICULATED TRUCKS</ProductGroup>
>     <GenericModel>725</GenericModel>
>     <PrimaryModel>725</PrimaryModel>
>     <SerialNumberBuilt>2250</SerialNumberBuilt>
>     <LastBuild>2010-04-30 00:00:00.0</LastBuild>
>     <Facility>PETERLEE (U2)</Facility>
>     <EngineeringModel>RM715</EngineeringModel>
>     <EngineeringVersion>-</EngineeringVersion>
>     <GeneralArrangement >2268615</GeneralArrangement >
>     <AssociatedModel>RM574</AssociatedModel>
>     <ProductType>AD</ProductType>
>     <CaptiveEngineModel>C11</CaptiveEngineModel>
>     <EngineFacilityCode>40</EngineFacilityCode>
>     <EngineFamily>ZE</EngineFamily>
>     <OldNewAssociatedModel>O</OldNewAssociatedModel>
>    </ProductInfoResponse>
>   </ProductInfoResponse>
>  </soapenv:Body>
> </soapenv:Envelope>
> Looks above soap not having any extraneous element. Why my client code is not working. 
> please help on this issue. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org


[jira] Updated: (AXISCPP-1072) AxisSoapException: Soap message content is not valid. Unexpected or extraneous element (ProductInformation) encountered.

Posted by "Srinivas Umareddy (JIRA)" <ax...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/AXISCPP-1072?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Srinivas Umareddy updated AXISCPP-1072:
---------------------------------------

    Attachment: NPIDataServices.wsdl

Nadir,

Thank you for your reply.

I am attaching wsdl file. 

I have generated the stub using the latest wsdl2ws which i rebuild with latest code using the axis 1.4 axisjava and wsdl4j-1.6.1.jar. The latest  wsdl2ws code didn't compile with axis 1.4 axisjava lib and it looking for import javax.wsdl.WSDLElement; class. I downloaded the wsdl4j-1.6.1.jar and it has WSDLElement. When replace axis 1.4 jar then code compiled ok but not sure my issue beacuse of that. 

I didn't find the latest wsdl2ws.jar . Please let me this correct. 

In that attached wsdl file has many webservices call and some of then are working. 

I have problem with ProductInfo servies which has complexArray.



> AxisSoapException: Soap message content is not valid. Unexpected or extraneous element (ProductInformation) encountered.
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXISCPP-1072
>                 URL: https://issues.apache.org/jira/browse/AXISCPP-1072
>             Project: Axis-C++
>          Issue Type: Bug
>          Components: Client - Deserialization
>    Affects Versions: current (nightly)
>         Environment: Axis Client : latest code from SVN 
> XMLParser: xerces-c-2.7.0
> WSDL2WS: Build with latest code using Axis Java 1.4
> Compiler: VC++ 2005(Vc8)
>            Reporter: Srinivas Umareddy
>             Fix For: current (nightly)
>
>         Attachments: axisclient.log, NPIDataServices.wsdl
>
>
> I have rebuild Axis c++ client code with latest code using xerces-c-2.7.0. I have generate the my cilent code with latest wsdl2ws tool. I see checkForExtraneousElements() introduced with latest wsdl2ws. 
> I am getting below error message when i execute the new code. Looks like some thing broken or i am missing some thing. 
> Here is my soap responce.
> <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>
>   <ProductInfoResponse xmlns="http://www.cat.com/NPIDataServices/2007/02/05">
>    <ProductInfoResponse xmlns="">
>     <SerialNumber>B1L</SerialNumber>
>     <ProductGroup>ARTICULATED TRUCKS</ProductGroup>
>     <GenericModel>725</GenericModel>
>     <PrimaryModel>725</PrimaryModel>
>     <SerialNumberBuilt>2250</SerialNumberBuilt>
>     <LastBuild>2010-04-30 00:00:00.0</LastBuild>
>     <Facility>PETERLEE (U2)</Facility>
>     <EngineeringModel>RM715</EngineeringModel>
>     <EngineeringVersion>-</EngineeringVersion>
>     <GeneralArrangement >2268615</GeneralArrangement >
>     <AssociatedModel>RM574</AssociatedModel>
>     <ProductType>AD</ProductType>
>     <CaptiveEngineModel>C11</CaptiveEngineModel>
>     <EngineFacilityCode>40</EngineFacilityCode>
>     <EngineFamily>ZE</EngineFamily>
>     <OldNewAssociatedModel>O</OldNewAssociatedModel>
>    </ProductInfoResponse>
>   </ProductInfoResponse>
>  </soapenv:Body>
> </soapenv:Envelope>
> Looks above soap not having any extraneous element. Why my client code is not working. 
> please help on this issue. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org


[jira] Updated: (AXISCPP-1072) AxisSoapException: Soap message content is not valid. Unexpected or extraneous element (ProductInformation) encountered.

Posted by "Srinivas Umareddy (JIRA)" <ax...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/AXISCPP-1072?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Srinivas Umareddy updated AXISCPP-1072:
---------------------------------------

    Attachment:     (was: axisclient.log)

> AxisSoapException: Soap message content is not valid. Unexpected or extraneous element (ProductInformation) encountered.
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXISCPP-1072
>                 URL: https://issues.apache.org/jira/browse/AXISCPP-1072
>             Project: Axis-C++
>          Issue Type: Bug
>          Components: Client - Deserialization
>    Affects Versions: current (nightly)
>         Environment: Axis Client : latest code from SVN 
> XMLParser: xerces-c-2.7.0
> WSDL2WS: Build with latest code using Axis Java 1.4
> Compiler: VC++ 2005(Vc8)
>            Reporter: Srinivas Umareddy
>             Fix For: current (nightly)
>
>
> I have rebuild Axis c++ client code with latest code using xerces-c-2.7.0. I have generate the my cilent code with latest wsdl2ws tool. I see checkForExtraneousElements() introduced with latest wsdl2ws. 
> I am getting below error message when i execute the new code. Looks like some thing broken or i am missing some thing. 
> Here is my soap responce.
> <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>
>   <ProductInfoResponse xmlns="http://www.cat.com/NPIDataServices/2007/02/05">
>    <ProductInfoResponse xmlns="">
>     <SerialNumber>B1L</SerialNumber>
>     <ProductGroup>ARTICULATED TRUCKS</ProductGroup>
>     <GenericModel>725</GenericModel>
>     <PrimaryModel>725</PrimaryModel>
>     <SerialNumberBuilt>2250</SerialNumberBuilt>
>     <LastBuild>2010-04-30 00:00:00.0</LastBuild>
>     <Facility>PETERLEE (U2)</Facility>
>     <EngineeringModel>RM715</EngineeringModel>
>     <EngineeringVersion>-</EngineeringVersion>
>     <GeneralArrangement >2268615</GeneralArrangement >
>     <AssociatedModel>RM574</AssociatedModel>
>     <ProductType>AD</ProductType>
>     <CaptiveEngineModel>C11</CaptiveEngineModel>
>     <EngineFacilityCode>40</EngineFacilityCode>
>     <EngineFamily>ZE</EngineFamily>
>     <OldNewAssociatedModel>O</OldNewAssociatedModel>
>    </ProductInfoResponse>
>   </ProductInfoResponse>
>  </soapenv:Body>
> </soapenv:Envelope>
> Looks above soap not having any extraneous element. Why my client code is not working. 
> please help on this issue. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org


[jira] Updated: (AXISCPP-1072) AxisSoapException: Soap message content is not valid. Unexpected or extraneous element (ProductInformation) encountered.

Posted by "Srinivas Umareddy (JIRA)" <ax...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/AXISCPP-1072?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Srinivas Umareddy updated AXISCPP-1072:
---------------------------------------

    Attachment:     (was: NPIDataServices.wsdl)

> AxisSoapException: Soap message content is not valid. Unexpected or extraneous element (ProductInformation) encountered.
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXISCPP-1072
>                 URL: https://issues.apache.org/jira/browse/AXISCPP-1072
>             Project: Axis-C++
>          Issue Type: Bug
>          Components: Client - Deserialization
>    Affects Versions: current (nightly)
>         Environment: Axis Client : latest code from SVN 
> XMLParser: xerces-c-2.7.0
> WSDL2WS: Build with latest code using Axis Java 1.4
> Compiler: VC++ 2005(Vc8)
>            Reporter: Srinivas Umareddy
>             Fix For: current (nightly)
>
>         Attachments: axisclient.log
>
>
> I have rebuild Axis c++ client code with latest code using xerces-c-2.7.0. I have generate the my cilent code with latest wsdl2ws tool. I see checkForExtraneousElements() introduced with latest wsdl2ws. 
> I am getting below error message when i execute the new code. Looks like some thing broken or i am missing some thing. 
> Here is my soap responce.
> <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>
>   <ProductInfoResponse xmlns="http://www.cat.com/NPIDataServices/2007/02/05">
>    <ProductInfoResponse xmlns="">
>     <SerialNumber>B1L</SerialNumber>
>     <ProductGroup>ARTICULATED TRUCKS</ProductGroup>
>     <GenericModel>725</GenericModel>
>     <PrimaryModel>725</PrimaryModel>
>     <SerialNumberBuilt>2250</SerialNumberBuilt>
>     <LastBuild>2010-04-30 00:00:00.0</LastBuild>
>     <Facility>PETERLEE (U2)</Facility>
>     <EngineeringModel>RM715</EngineeringModel>
>     <EngineeringVersion>-</EngineeringVersion>
>     <GeneralArrangement >2268615</GeneralArrangement >
>     <AssociatedModel>RM574</AssociatedModel>
>     <ProductType>AD</ProductType>
>     <CaptiveEngineModel>C11</CaptiveEngineModel>
>     <EngineFacilityCode>40</EngineFacilityCode>
>     <EngineFamily>ZE</EngineFamily>
>     <OldNewAssociatedModel>O</OldNewAssociatedModel>
>    </ProductInfoResponse>
>   </ProductInfoResponse>
>  </soapenv:Body>
> </soapenv:Envelope>
> Looks above soap not having any extraneous element. Why my client code is not working. 
> please help on this issue. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org


[jira] Closed: (AXISCPP-1072) AxisSoapException: Soap message content is not valid. Unexpected or extraneous element (ProductInformation) encountered.

Posted by "nadir amra (JIRA)" <ax...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/AXISCPP-1072?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

nadir amra closed AXISCPP-1072.
-------------------------------

    Resolution: Not A Problem

As far as I can tell, the problem is the response. 

The response is defined as:

 <xsd:element name="ProductInfoResponse" type="tns:ProductInfoArray"></xsd:element>
    
 <xsd:complexType name="ProductInfoArray">
    <xsd:sequence>
       <xsd:element name="ProductInformation" type="tns:ProductInformation" minOccurs="0" maxOccurs="unbounded"> 
       </xsd:element>
    </xsd:sequence>
</xsd:complexType>

The response being returned is (partial response shown):

<ProductInfoResponse xmlns="http://www.cat.com/NPIDataServices/2007/02/05">
   <ProductInformation xmlns="">
    <SerialNumber>B1L</SerialNumber>
    <ProductGroup>ARTICULATED TRUCKS</ProductGroup>
    <GenericModel>725</GenericModel>

And I also get 

AxisSoapException: Soap message content is not valid.                
Unexpected or extraneous element (ProductInformation) encountered.   

Which is correct since ProductInfoArray element is not being returned. 



> AxisSoapException: Soap message content is not valid. Unexpected or extraneous element (ProductInformation) encountered.
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXISCPP-1072
>                 URL: https://issues.apache.org/jira/browse/AXISCPP-1072
>             Project: Axis-C++
>          Issue Type: Bug
>          Components: Client - Deserialization
>    Affects Versions: current (nightly)
>         Environment: Axis Client : latest code from SVN 
> XMLParser: xerces-c-2.7.0
> WSDL2WS: Build with latest code using Axis Java 1.4
> Compiler: VC++ 2005(Vc8)
>            Reporter: Srinivas Umareddy
>             Fix For: current (nightly)
>
>         Attachments: axisclient.log, NPIDataServices.wsdl
>
>
> I have rebuild Axis c++ client code with latest code using xerces-c-2.7.0. I have generate the my cilent code with latest wsdl2ws tool. I see checkForExtraneousElements() introduced with latest wsdl2ws. 
> I am getting below error message when i execute the new code. Looks like some thing broken or i am missing some thing. 
> Here is my soap responce.
> <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>
>   <ProductInfoResponse xmlns="http://www.cat.com/NPIDataServices/2007/02/05">
>    <ProductInfoResponse xmlns="">
>     <SerialNumber>B1L</SerialNumber>
>     <ProductGroup>ARTICULATED TRUCKS</ProductGroup>
>     <GenericModel>725</GenericModel>
>     <PrimaryModel>725</PrimaryModel>
>     <SerialNumberBuilt>2250</SerialNumberBuilt>
>     <LastBuild>2010-04-30 00:00:00.0</LastBuild>
>     <Facility>PETERLEE (U2)</Facility>
>     <EngineeringModel>RM715</EngineeringModel>
>     <EngineeringVersion>-</EngineeringVersion>
>     <GeneralArrangement >2268615</GeneralArrangement >
>     <AssociatedModel>RM574</AssociatedModel>
>     <ProductType>AD</ProductType>
>     <CaptiveEngineModel>C11</CaptiveEngineModel>
>     <EngineFacilityCode>40</EngineFacilityCode>
>     <EngineFamily>ZE</EngineFamily>
>     <OldNewAssociatedModel>O</OldNewAssociatedModel>
>    </ProductInfoResponse>
>   </ProductInfoResponse>
>  </soapenv:Body>
> </soapenv:Envelope>
> Looks above soap not having any extraneous element. Why my client code is not working. 
> please help on this issue. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org


[jira] Updated: (AXISCPP-1072) AxisSoapException: Soap message content is not valid. Unexpected or extraneous element (ProductInformation) encountered.

Posted by "Srinivas Umareddy (JIRA)" <ax...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/AXISCPP-1072?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Srinivas Umareddy updated AXISCPP-1072:
---------------------------------------

    Description: 
I have rebuild Axis c++ client code with latest code using xerces-c-2.7.0. I have generate the my cilent code with latest wsdl2ws tool. I see checkForExtraneousElements() introduced with latest wsdl2ws. 

I am getting below error message when i execute the new code. Looks like some thing broken or i am missing some thing. 

Here is my soap responce.

<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>
  <ProductInfoResponse xmlns="http://www.cat.com/NPIDataServices/2007/02/05">
   <ProductInfoResponse xmlns="">
    <SerialNumber>B1L</SerialNumber>
    <ProductGroup>ARTICULATED TRUCKS</ProductGroup>
    <GenericModel>725</GenericModel>
    <PrimaryModel>725</PrimaryModel>
    <SerialNumberBuilt>2250</SerialNumberBuilt>
    <LastBuild>2010-04-30 00:00:00.0</LastBuild>
    <Facility>PETERLEE (U2)</Facility>
    <EngineeringModel>RM715</EngineeringModel>
    <EngineeringVersion>-</EngineeringVersion>
    <GeneralArrangement >2268615</GeneralArrangement >
    <AssociatedModel>RM574</AssociatedModel>
    <ProductType>AD</ProductType>
    <CaptiveEngineModel>C11</CaptiveEngineModel>
    <EngineFacilityCode>40</EngineFacilityCode>
    <EngineFamily>ZE</EngineFamily>
    <OldNewAssociatedModel>O</OldNewAssociatedModel>
   </ProductInfoResponse>
  </ProductInfoResponse>
 </soapenv:Body>
</soapenv:Envelope>

Looks above soap not having any extraneous element. Why my client code is not working. 

please help on this issue. 



  was:
I have rebuild Axis c++ client code with latest code. 



> AxisSoapException: Soap message content is not valid. Unexpected or extraneous element (ProductInformation) encountered.
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXISCPP-1072
>                 URL: https://issues.apache.org/jira/browse/AXISCPP-1072
>             Project: Axis-C++
>          Issue Type: Bug
>          Components: Client - Deserialization
>    Affects Versions: current (nightly)
>         Environment: Axis Client : latest code from SVN 
> XMLParser: xerces-c-2.7.0
> WSDL2WS: Build with latest code using Axis Java 1.4
> Compiler: VC++ 2005(Vc8)
>            Reporter: Srinivas Umareddy
>             Fix For: current (nightly)
>
>
> I have rebuild Axis c++ client code with latest code using xerces-c-2.7.0. I have generate the my cilent code with latest wsdl2ws tool. I see checkForExtraneousElements() introduced with latest wsdl2ws. 
> I am getting below error message when i execute the new code. Looks like some thing broken or i am missing some thing. 
> Here is my soap responce.
> <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>
>   <ProductInfoResponse xmlns="http://www.cat.com/NPIDataServices/2007/02/05">
>    <ProductInfoResponse xmlns="">
>     <SerialNumber>B1L</SerialNumber>
>     <ProductGroup>ARTICULATED TRUCKS</ProductGroup>
>     <GenericModel>725</GenericModel>
>     <PrimaryModel>725</PrimaryModel>
>     <SerialNumberBuilt>2250</SerialNumberBuilt>
>     <LastBuild>2010-04-30 00:00:00.0</LastBuild>
>     <Facility>PETERLEE (U2)</Facility>
>     <EngineeringModel>RM715</EngineeringModel>
>     <EngineeringVersion>-</EngineeringVersion>
>     <GeneralArrangement >2268615</GeneralArrangement >
>     <AssociatedModel>RM574</AssociatedModel>
>     <ProductType>AD</ProductType>
>     <CaptiveEngineModel>C11</CaptiveEngineModel>
>     <EngineFacilityCode>40</EngineFacilityCode>
>     <EngineFamily>ZE</EngineFamily>
>     <OldNewAssociatedModel>O</OldNewAssociatedModel>
>    </ProductInfoResponse>
>   </ProductInfoResponse>
>  </soapenv:Body>
> </soapenv:Envelope>
> Looks above soap not having any extraneous element. Why my client code is not working. 
> please help on this issue. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org


[jira] Reopened: (AXISCPP-1072) AxisSoapException: Soap message content is not valid. Unexpected or extraneous element (ProductInformation) encountered.

Posted by "nadir amra (JIRA)" <ax...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/AXISCPP-1072?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

nadir amra reopened AXISCPP-1072:
---------------------------------


hmmm, maybe i was hasty.  need to look into this a little more. 

> AxisSoapException: Soap message content is not valid. Unexpected or extraneous element (ProductInformation) encountered.
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXISCPP-1072
>                 URL: https://issues.apache.org/jira/browse/AXISCPP-1072
>             Project: Axis-C++
>          Issue Type: Bug
>          Components: Client - Deserialization
>    Affects Versions: current (nightly)
>         Environment: Axis Client : latest code from SVN 
> XMLParser: xerces-c-2.7.0
> WSDL2WS: Build with latest code using Axis Java 1.4
> Compiler: VC++ 2005(Vc8)
>            Reporter: Srinivas Umareddy
>             Fix For: current (nightly)
>
>         Attachments: axisclient.log, NPIDataServices.wsdl
>
>
> I have rebuild Axis c++ client code with latest code using xerces-c-2.7.0. I have generate the my cilent code with latest wsdl2ws tool. I see checkForExtraneousElements() introduced with latest wsdl2ws. 
> I am getting below error message when i execute the new code. Looks like some thing broken or i am missing some thing. 
> Here is my soap responce.
> <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>
>   <ProductInfoResponse xmlns="http://www.cat.com/NPIDataServices/2007/02/05">
>    <ProductInfoResponse xmlns="">
>     <SerialNumber>B1L</SerialNumber>
>     <ProductGroup>ARTICULATED TRUCKS</ProductGroup>
>     <GenericModel>725</GenericModel>
>     <PrimaryModel>725</PrimaryModel>
>     <SerialNumberBuilt>2250</SerialNumberBuilt>
>     <LastBuild>2010-04-30 00:00:00.0</LastBuild>
>     <Facility>PETERLEE (U2)</Facility>
>     <EngineeringModel>RM715</EngineeringModel>
>     <EngineeringVersion>-</EngineeringVersion>
>     <GeneralArrangement >2268615</GeneralArrangement >
>     <AssociatedModel>RM574</AssociatedModel>
>     <ProductType>AD</ProductType>
>     <CaptiveEngineModel>C11</CaptiveEngineModel>
>     <EngineFacilityCode>40</EngineFacilityCode>
>     <EngineFamily>ZE</EngineFamily>
>     <OldNewAssociatedModel>O</OldNewAssociatedModel>
>    </ProductInfoResponse>
>   </ProductInfoResponse>
>  </soapenv:Body>
> </soapenv:Envelope>
> Looks above soap not having any extraneous element. Why my client code is not working. 
> please help on this issue. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org


[jira] Issue Comment Edited: (AXISCPP-1072) AxisSoapException: Soap message content is not valid. Unexpected or extraneous element (ProductInformation) encountered.

Posted by "Srinivas Umareddy (JIRA)" <ax...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/AXISCPP-1072?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12892823#action_12892823 ] 

Srinivas Umareddy edited comment on AXISCPP-1072 at 7/27/10 11:32 AM:
----------------------------------------------------------------------

Looks like there is some bug in below if condition. All my webservice client are coming out from below if condition beacuse client is passing return array name ( in my case ProductInfoArray) for pName in the getCmplxObject() method and top element name for m_pNode->m_pchNameOrValue ( in my case ProductInfoResponse).

if (RPC_ENCODED != m_nStyle) // TODO - why do we selectively do this check and not for all? 

if (0 != strcmp (pName, m_pNode->m_pchNameOrValue)) 

{ 

/* 

* TODO: Need to verify what WS-I 1.0 says 

* about the mandatory of all the elements in the response in case of 

* null value or none filled value. Some Web services servers work 

* like this. This apply for all the rest of the deserializer. 

*/ 

logExitWithPointer(NULL) 

return NULL; 

} 

All my webservice started working when i comment the return statement in above loop or if I pass the ProductInfoResponse name for pName in the getCmplxObject() method from client code.

Let me know which is wrong ? client stub or above code . I didn't understand why we are doing above check it always come out. 


      was (Author: umareddy):
    Looks like there is some bug in below if condition. All my webservice client are coming out for below if condition beacuse client are passing return array name ( in my case ProductInfoArray) for pName in the getCmplxObject() method and m_pNode->m_pchNameOrValue valuse top element name ( in my case ProductInfoResponse).

if (RPC_ENCODED != m_nStyle) // TODO - why do we selectively do this check and not for all? 

if (0 != strcmp (pName, m_pNode->m_pchNameOrValue)) 

{ 

/* 

* TODO: Need to verify what WS-I 1.0 says 

* about the mandatory of all the elements in the response in case of 

* null value or none filled value. Some Web services servers work 

* like this. This apply for all the rest of the deserializer. 

*/ 

logExitWithPointer(NULL) 

return NULL; 

} 

My webservice started working when i comment the return form above loop or if  pass the ProductInfoResponse name for pName in the getCmplxObject() method from client code.

Let me know which is wrong ? client stub or above code . I didn't understand why we are doing above check it always come out. 

  
> AxisSoapException: Soap message content is not valid. Unexpected or extraneous element (ProductInformation) encountered.
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXISCPP-1072
>                 URL: https://issues.apache.org/jira/browse/AXISCPP-1072
>             Project: Axis-C++
>          Issue Type: Bug
>          Components: Client - Deserialization
>    Affects Versions: current (nightly)
>         Environment: Axis Client : latest code from SVN 
> XMLParser: xerces-c-2.7.0
> WSDL2WS: Build with latest code using Axis Java 1.4
> Compiler: VC++ 2005(Vc8)
>            Reporter: Srinivas Umareddy
>             Fix For: current (nightly)
>
>         Attachments: axisclient.log, NPIDataServices.wsdl
>
>
> I have rebuild Axis c++ client code with latest code using xerces-c-2.7.0. I have generate the my cilent code with latest wsdl2ws tool. I see checkForExtraneousElements() introduced with latest wsdl2ws. 
> I am getting below error message when i execute the new code. Looks like some thing broken or i am missing some thing. 
> Here is my soap responce.
> <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>
>   <ProductInfoResponse xmlns="http://www.cat.com/NPIDataServices/2007/02/05">
>    <ProductInfoResponse xmlns="">
>     <SerialNumber>B1L</SerialNumber>
>     <ProductGroup>ARTICULATED TRUCKS</ProductGroup>
>     <GenericModel>725</GenericModel>
>     <PrimaryModel>725</PrimaryModel>
>     <SerialNumberBuilt>2250</SerialNumberBuilt>
>     <LastBuild>2010-04-30 00:00:00.0</LastBuild>
>     <Facility>PETERLEE (U2)</Facility>
>     <EngineeringModel>RM715</EngineeringModel>
>     <EngineeringVersion>-</EngineeringVersion>
>     <GeneralArrangement >2268615</GeneralArrangement >
>     <AssociatedModel>RM574</AssociatedModel>
>     <ProductType>AD</ProductType>
>     <CaptiveEngineModel>C11</CaptiveEngineModel>
>     <EngineFacilityCode>40</EngineFacilityCode>
>     <EngineFamily>ZE</EngineFamily>
>     <OldNewAssociatedModel>O</OldNewAssociatedModel>
>    </ProductInfoResponse>
>   </ProductInfoResponse>
>  </soapenv:Body>
> </soapenv:Envelope>
> Looks above soap not having any extraneous element. Why my client code is not working. 
> please help on this issue. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org


[jira] Commented: (AXISCPP-1072) AxisSoapException: Soap message content is not valid. Unexpected or extraneous element (ProductInformation) encountered.

Posted by "Srinivas Umareddy (JIRA)" <ax...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/AXISCPP-1072?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12892823#action_12892823 ] 

Srinivas Umareddy commented on AXISCPP-1072:
--------------------------------------------

Looks like there is some bug in below if condition. All my webservice client are coming out for below if condition beacuse client are passing return array name ( in my case ProductInfoArray) for pName in the getCmplxObject() method and m_pNode->m_pchNameOrValue valuse top element name ( in my case ProductInfoResponse).

if (RPC_ENCODED != m_nStyle) // TODO - why do we selectively do this check and not for all? 

if (0 != strcmp (pName, m_pNode->m_pchNameOrValue)) 

{ 

/* 

* TODO: Need to verify what WS-I 1.0 says 

* about the mandatory of all the elements in the response in case of 

* null value or none filled value. Some Web services servers work 

* like this. This apply for all the rest of the deserializer. 

*/ 

logExitWithPointer(NULL) 

return NULL; 

} 

My webservice started working when i comment the return form above loop or if  pass the ProductInfoResponse name for pName in the getCmplxObject() method from client code.

Let me know which is wrong ? client stub or above code . I didn't understand why we are doing above check it always come out. 


> AxisSoapException: Soap message content is not valid. Unexpected or extraneous element (ProductInformation) encountered.
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXISCPP-1072
>                 URL: https://issues.apache.org/jira/browse/AXISCPP-1072
>             Project: Axis-C++
>          Issue Type: Bug
>          Components: Client - Deserialization
>    Affects Versions: current (nightly)
>         Environment: Axis Client : latest code from SVN 
> XMLParser: xerces-c-2.7.0
> WSDL2WS: Build with latest code using Axis Java 1.4
> Compiler: VC++ 2005(Vc8)
>            Reporter: Srinivas Umareddy
>             Fix For: current (nightly)
>
>         Attachments: axisclient.log, NPIDataServices.wsdl
>
>
> I have rebuild Axis c++ client code with latest code using xerces-c-2.7.0. I have generate the my cilent code with latest wsdl2ws tool. I see checkForExtraneousElements() introduced with latest wsdl2ws. 
> I am getting below error message when i execute the new code. Looks like some thing broken or i am missing some thing. 
> Here is my soap responce.
> <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>
>   <ProductInfoResponse xmlns="http://www.cat.com/NPIDataServices/2007/02/05">
>    <ProductInfoResponse xmlns="">
>     <SerialNumber>B1L</SerialNumber>
>     <ProductGroup>ARTICULATED TRUCKS</ProductGroup>
>     <GenericModel>725</GenericModel>
>     <PrimaryModel>725</PrimaryModel>
>     <SerialNumberBuilt>2250</SerialNumberBuilt>
>     <LastBuild>2010-04-30 00:00:00.0</LastBuild>
>     <Facility>PETERLEE (U2)</Facility>
>     <EngineeringModel>RM715</EngineeringModel>
>     <EngineeringVersion>-</EngineeringVersion>
>     <GeneralArrangement >2268615</GeneralArrangement >
>     <AssociatedModel>RM574</AssociatedModel>
>     <ProductType>AD</ProductType>
>     <CaptiveEngineModel>C11</CaptiveEngineModel>
>     <EngineFacilityCode>40</EngineFacilityCode>
>     <EngineFamily>ZE</EngineFamily>
>     <OldNewAssociatedModel>O</OldNewAssociatedModel>
>    </ProductInfoResponse>
>   </ProductInfoResponse>
>  </soapenv:Body>
> </soapenv:Envelope>
> Looks above soap not having any extraneous element. Why my client code is not working. 
> please help on this issue. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org


[jira] Commented: (AXISCPP-1072) AxisSoapException: Soap message content is not valid. Unexpected or extraneous element (ProductInformation) encountered.

Posted by "nadir amra (JIRA)" <ax...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/AXISCPP-1072?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12898510#action_12898510 ] 

nadir amra commented on AXISCPP-1072:
-------------------------------------

Still looking into this...not sure how to resolve.  Yes, the problem is in the C++ stub generator.

Obviously, if the type and element names are the same the problem I think goes away.  Or if you define the response element as an anonymous complex type then the problem goes away.  

This will take some time on my part to come up with a solution, mainly because I do not want to introduce a regression problem. 

The method that I am looking into is src/wsdl/wsdl2ws/cpp/literal/ClientStubWriter.java and src/wsdl/wsdl2ws/info/WSDLInfo.java

> AxisSoapException: Soap message content is not valid. Unexpected or extraneous element (ProductInformation) encountered.
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXISCPP-1072
>                 URL: https://issues.apache.org/jira/browse/AXISCPP-1072
>             Project: Axis-C++
>          Issue Type: Bug
>          Components: Client - Deserialization
>    Affects Versions: current (nightly)
>         Environment: Axis Client : latest code from SVN 
> XMLParser: xerces-c-2.7.0
> WSDL2WS: Build with latest code using Axis Java 1.4
> Compiler: VC++ 2005(Vc8)
>            Reporter: Srinivas Umareddy
>             Fix For: current (nightly)
>
>         Attachments: axisclient.log, NPIDataServices.wsdl
>
>
> I have rebuild Axis c++ client code with latest code using xerces-c-2.7.0. I have generate the my cilent code with latest wsdl2ws tool. I see checkForExtraneousElements() introduced with latest wsdl2ws. 
> I am getting below error message when i execute the new code. Looks like some thing broken or i am missing some thing. 
> Here is my soap responce.
> <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>
>   <ProductInfoResponse xmlns="http://www.cat.com/NPIDataServices/2007/02/05">
>    <ProductInfoResponse xmlns="">
>     <SerialNumber>B1L</SerialNumber>
>     <ProductGroup>ARTICULATED TRUCKS</ProductGroup>
>     <GenericModel>725</GenericModel>
>     <PrimaryModel>725</PrimaryModel>
>     <SerialNumberBuilt>2250</SerialNumberBuilt>
>     <LastBuild>2010-04-30 00:00:00.0</LastBuild>
>     <Facility>PETERLEE (U2)</Facility>
>     <EngineeringModel>RM715</EngineeringModel>
>     <EngineeringVersion>-</EngineeringVersion>
>     <GeneralArrangement >2268615</GeneralArrangement >
>     <AssociatedModel>RM574</AssociatedModel>
>     <ProductType>AD</ProductType>
>     <CaptiveEngineModel>C11</CaptiveEngineModel>
>     <EngineFacilityCode>40</EngineFacilityCode>
>     <EngineFamily>ZE</EngineFamily>
>     <OldNewAssociatedModel>O</OldNewAssociatedModel>
>    </ProductInfoResponse>
>   </ProductInfoResponse>
>  </soapenv:Body>
> </soapenv:Envelope>
> Looks above soap not having any extraneous element. Why my client code is not working. 
> please help on this issue. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org


[jira] Commented: (AXISCPP-1072) AxisSoapException: Soap message content is not valid. Unexpected or extraneous element (ProductInformation) encountered.

Posted by "Srinivas Umareddy (JIRA)" <ax...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/AXISCPP-1072?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12893625#action_12893625 ] 

Srinivas Umareddy commented on AXISCPP-1072:
--------------------------------------------

I think problem is in WSDL2WS code.The Latest WSDL2WS code passing the element type to the getCmplxObject() method instead of passing element name. In the Axis_client code comparing the (i.e, if (0 != strcmp (pName, m_pNode->m_pchNameOrValue)) ) element name with element type. For the array data type element name and type may not be the same. See the getCmplxObject() inputs description. We suppose to pass the element name not the element type.


The response is defined as: 

 <xsd:element name="ProductInfoResponse" type="tns:ProductInfoArray"></xsd:element> 
 <xsd:complexType name="ProductInfoArray"> 
    <xsd:sequence> 
       <xsd:element name="ProductInformation" type="tns:ProductInformation" minOccurs="0" maxOccurs="unbounded"> 
       </xsd:element> 
    </xsd:sequence> 
</xsd:complexType> 

WSDL2WS client code 
pReturn = (ProductInfoArray*)m_pCall->getCmplxObject((void*) Axis_DeSerialize_ProductInfoArray, (void*) Axis_Create_ProductInfoArray, (void*) Axis_Delete_ProductInfoArray,"ProductInfoArray", 0); 


   /**
     * Method used by stubs to get a deserialized value of complex types.
     *
     * @param pDZFunct is a pointer to the function that knows how to de-serialise
     * the object.
     * @param pCreFunct is a pointer to the function that knows how to create the object.
     * @param pDelFunct is a pointer to the function that knows how to delete the object.
     * @param pName is a null terminated character string that contains the
     * prefix:name of the object.
     * @param pNamespace is the namespace associated with the prefix used in 'pName'.
     * @return pointer to a void object that contains the 'complex' object.
     */
    void * AXISCALL getCmplxObject( void * pDZFunct,
                                    void * pCreFunct,
                                    void * pDelFunct,
                                    const AxisChar * pName,
                                    const AxisChar * pNamespace);


Fyi,
My old issue got fixed (old axis 1.6b and xerces-c-2.6.0 was not handing the large xml response (i.e., ProductInfoResponse webservice was failed when get the more 77 records in the array)  with rebuild axis banaries and xerces-c-2.7.0 . Now ProductInfo
webservice handling larger xml response( test upto 400+ records. I would like to thank you guys for fixing the issue.

Let me know what i need to change for the current issue. I will happy to test your fix on this.

> AxisSoapException: Soap message content is not valid. Unexpected or extraneous element (ProductInformation) encountered.
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXISCPP-1072
>                 URL: https://issues.apache.org/jira/browse/AXISCPP-1072
>             Project: Axis-C++
>          Issue Type: Bug
>          Components: Client - Deserialization
>    Affects Versions: current (nightly)
>         Environment: Axis Client : latest code from SVN 
> XMLParser: xerces-c-2.7.0
> WSDL2WS: Build with latest code using Axis Java 1.4
> Compiler: VC++ 2005(Vc8)
>            Reporter: Srinivas Umareddy
>             Fix For: current (nightly)
>
>         Attachments: axisclient.log, NPIDataServices.wsdl
>
>
> I have rebuild Axis c++ client code with latest code using xerces-c-2.7.0. I have generate the my cilent code with latest wsdl2ws tool. I see checkForExtraneousElements() introduced with latest wsdl2ws. 
> I am getting below error message when i execute the new code. Looks like some thing broken or i am missing some thing. 
> Here is my soap responce.
> <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>
>   <ProductInfoResponse xmlns="http://www.cat.com/NPIDataServices/2007/02/05">
>    <ProductInfoResponse xmlns="">
>     <SerialNumber>B1L</SerialNumber>
>     <ProductGroup>ARTICULATED TRUCKS</ProductGroup>
>     <GenericModel>725</GenericModel>
>     <PrimaryModel>725</PrimaryModel>
>     <SerialNumberBuilt>2250</SerialNumberBuilt>
>     <LastBuild>2010-04-30 00:00:00.0</LastBuild>
>     <Facility>PETERLEE (U2)</Facility>
>     <EngineeringModel>RM715</EngineeringModel>
>     <EngineeringVersion>-</EngineeringVersion>
>     <GeneralArrangement >2268615</GeneralArrangement >
>     <AssociatedModel>RM574</AssociatedModel>
>     <ProductType>AD</ProductType>
>     <CaptiveEngineModel>C11</CaptiveEngineModel>
>     <EngineFacilityCode>40</EngineFacilityCode>
>     <EngineFamily>ZE</EngineFamily>
>     <OldNewAssociatedModel>O</OldNewAssociatedModel>
>    </ProductInfoResponse>
>   </ProductInfoResponse>
>  </soapenv:Body>
> </soapenv:Envelope>
> Looks above soap not having any extraneous element. Why my client code is not working. 
> please help on this issue. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org


[jira] Commented: (AXISCPP-1072) AxisSoapException: Soap message content is not valid. Unexpected or extraneous element (ProductInformation) encountered.

Posted by "Srinivas Umareddy (JIRA)" <ax...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/AXISCPP-1072?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12893625#action_12893625 ] 

Srinivas Umareddy commented on AXISCPP-1072:
--------------------------------------------

I think problem is in WSDL2WS code.The Latest WSDL2WS code passing the element type to the getCmplxObject() method instead of passing element name. In the Axis_client code comparing the (i.e, if (0 != strcmp (pName, m_pNode->m_pchNameOrValue)) ) element name with element type. For the array data type element name and type may not be the same. See the getCmplxObject() inputs description. We suppose to pass the element name not the element type.


The response is defined as: 

 <xsd:element name="ProductInfoResponse" type="tns:ProductInfoArray"></xsd:element> 
 <xsd:complexType name="ProductInfoArray"> 
    <xsd:sequence> 
       <xsd:element name="ProductInformation" type="tns:ProductInformation" minOccurs="0" maxOccurs="unbounded"> 
       </xsd:element> 
    </xsd:sequence> 
</xsd:complexType> 

WSDL2WS client code 
pReturn = (ProductInfoArray*)m_pCall->getCmplxObject((void*) Axis_DeSerialize_ProductInfoArray, (void*) Axis_Create_ProductInfoArray, (void*) Axis_Delete_ProductInfoArray,"ProductInfoArray", 0); 


   /**
     * Method used by stubs to get a deserialized value of complex types.
     *
     * @param pDZFunct is a pointer to the function that knows how to de-serialise
     * the object.
     * @param pCreFunct is a pointer to the function that knows how to create the object.
     * @param pDelFunct is a pointer to the function that knows how to delete the object.
     * @param pName is a null terminated character string that contains the
     * prefix:name of the object.
     * @param pNamespace is the namespace associated with the prefix used in 'pName'.
     * @return pointer to a void object that contains the 'complex' object.
     */
    void * AXISCALL getCmplxObject( void * pDZFunct,
                                    void * pCreFunct,
                                    void * pDelFunct,
                                    const AxisChar * pName,
                                    const AxisChar * pNamespace);


Fyi,
My old issue got fixed (old axis 1.6b and xerces-c-2.6.0 was not handing the large xml response (i.e., ProductInfoResponse webservice was failed when get the more 77 records in the array)  with rebuild axis banaries and xerces-c-2.7.0 . Now ProductInfo
webservice handling larger xml response( test upto 400+ records. I would like to thank you guys for fixing the issue.

Let me know what i need to change for the current issue. I will happy to test your fix on this.

> AxisSoapException: Soap message content is not valid. Unexpected or extraneous element (ProductInformation) encountered.
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXISCPP-1072
>                 URL: https://issues.apache.org/jira/browse/AXISCPP-1072
>             Project: Axis-C++
>          Issue Type: Bug
>          Components: Client - Deserialization
>    Affects Versions: current (nightly)
>         Environment: Axis Client : latest code from SVN 
> XMLParser: xerces-c-2.7.0
> WSDL2WS: Build with latest code using Axis Java 1.4
> Compiler: VC++ 2005(Vc8)
>            Reporter: Srinivas Umareddy
>             Fix For: current (nightly)
>
>         Attachments: axisclient.log, NPIDataServices.wsdl
>
>
> I have rebuild Axis c++ client code with latest code using xerces-c-2.7.0. I have generate the my cilent code with latest wsdl2ws tool. I see checkForExtraneousElements() introduced with latest wsdl2ws. 
> I am getting below error message when i execute the new code. Looks like some thing broken or i am missing some thing. 
> Here is my soap responce.
> <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>
>   <ProductInfoResponse xmlns="http://www.cat.com/NPIDataServices/2007/02/05">
>    <ProductInfoResponse xmlns="">
>     <SerialNumber>B1L</SerialNumber>
>     <ProductGroup>ARTICULATED TRUCKS</ProductGroup>
>     <GenericModel>725</GenericModel>
>     <PrimaryModel>725</PrimaryModel>
>     <SerialNumberBuilt>2250</SerialNumberBuilt>
>     <LastBuild>2010-04-30 00:00:00.0</LastBuild>
>     <Facility>PETERLEE (U2)</Facility>
>     <EngineeringModel>RM715</EngineeringModel>
>     <EngineeringVersion>-</EngineeringVersion>
>     <GeneralArrangement >2268615</GeneralArrangement >
>     <AssociatedModel>RM574</AssociatedModel>
>     <ProductType>AD</ProductType>
>     <CaptiveEngineModel>C11</CaptiveEngineModel>
>     <EngineFacilityCode>40</EngineFacilityCode>
>     <EngineFamily>ZE</EngineFamily>
>     <OldNewAssociatedModel>O</OldNewAssociatedModel>
>    </ProductInfoResponse>
>   </ProductInfoResponse>
>  </soapenv:Body>
> </soapenv:Envelope>
> Looks above soap not having any extraneous element. Why my client code is not working. 
> please help on this issue. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org


[jira] Updated: (AXISCPP-1072) AxisSoapException: Soap message content is not valid. Unexpected or extraneous element (ProductInformation) encountered.

Posted by "Srinivas Umareddy (JIRA)" <ax...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/AXISCPP-1072?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Srinivas Umareddy updated AXISCPP-1072:
---------------------------------------

    Description: 
I have rebuild Axis c++ client code with latest code using xerces-c-2.7.0. I have generate the my cilent code with latest wsdl2ws tool. I see checkForExtraneousElements() introduced with latest wsdl2ws. 

I am getting below error message when i execute the new code. Looks like some thing broken or i am missing some thing. 

Here is my soap responce.

<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>
  <ProductInfoResponse xmlns="http://www.cat.com/NPIDataServices/2007/02/05">
   <ProductInfoResponse xmlns="">
    <SerialNumber>B1L</SerialNumber>
    <ProductGroup>ARTICULATED TRUCKS</ProductGroup>
    <GenericModel>725</GenericModel>
    <PrimaryModel>725</PrimaryModel>
    <SerialNumberBuilt>2250</SerialNumberBuilt>
    <LastBuild>2010-04-30 00:00:00.0</LastBuild>
    <Facility>PETERLEE (U2)</Facility>
    <EngineeringModel>RM715</EngineeringModel>
    <EngineeringVersion>-</EngineeringVersion>
    <GeneralArrangement >2268615</GeneralArrangement >
    <AssociatedModel>RM574</AssociatedModel>
    <ProductType>AD</ProductType>
    <CaptiveEngineModel>C11</CaptiveEngineModel>
    <EngineFacilityCode>40</EngineFacilityCode>
    <EngineFamily>ZE</EngineFamily>
    <OldNewAssociatedModel>O</OldNewAssociatedModel>
   </ProductInfoResponse>
  </ProductInfoResponse>
 </soapenv:Body>
</soapenv:Envelope>

Looks above soap not having any extraneous element. Why my client code is not working. 

please help on this issue. 



  was:
I have rebuild Axis c++ client code with latest code. 



> AxisSoapException: Soap message content is not valid. Unexpected or extraneous element (ProductInformation) encountered.
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXISCPP-1072
>                 URL: https://issues.apache.org/jira/browse/AXISCPP-1072
>             Project: Axis-C++
>          Issue Type: Bug
>          Components: Client - Deserialization
>    Affects Versions: current (nightly)
>         Environment: Axis Client : latest code from SVN 
> XMLParser: xerces-c-2.7.0
> WSDL2WS: Build with latest code using Axis Java 1.4
> Compiler: VC++ 2005(Vc8)
>            Reporter: Srinivas Umareddy
>             Fix For: current (nightly)
>
>
> I have rebuild Axis c++ client code with latest code using xerces-c-2.7.0. I have generate the my cilent code with latest wsdl2ws tool. I see checkForExtraneousElements() introduced with latest wsdl2ws. 
> I am getting below error message when i execute the new code. Looks like some thing broken or i am missing some thing. 
> Here is my soap responce.
> <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>
>   <ProductInfoResponse xmlns="http://www.cat.com/NPIDataServices/2007/02/05">
>    <ProductInfoResponse xmlns="">
>     <SerialNumber>B1L</SerialNumber>
>     <ProductGroup>ARTICULATED TRUCKS</ProductGroup>
>     <GenericModel>725</GenericModel>
>     <PrimaryModel>725</PrimaryModel>
>     <SerialNumberBuilt>2250</SerialNumberBuilt>
>     <LastBuild>2010-04-30 00:00:00.0</LastBuild>
>     <Facility>PETERLEE (U2)</Facility>
>     <EngineeringModel>RM715</EngineeringModel>
>     <EngineeringVersion>-</EngineeringVersion>
>     <GeneralArrangement >2268615</GeneralArrangement >
>     <AssociatedModel>RM574</AssociatedModel>
>     <ProductType>AD</ProductType>
>     <CaptiveEngineModel>C11</CaptiveEngineModel>
>     <EngineFacilityCode>40</EngineFacilityCode>
>     <EngineFamily>ZE</EngineFamily>
>     <OldNewAssociatedModel>O</OldNewAssociatedModel>
>    </ProductInfoResponse>
>   </ProductInfoResponse>
>  </soapenv:Body>
> </soapenv:Envelope>
> Looks above soap not having any extraneous element. Why my client code is not working. 
> please help on this issue. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org


[jira] Updated: (AXISCPP-1072) AxisSoapException: Soap message content is not valid. Unexpected or extraneous element (ProductInformation) encountered.

Posted by "Srinivas Umareddy (JIRA)" <ax...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/AXISCPP-1072?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Srinivas Umareddy updated AXISCPP-1072:
---------------------------------------

    Attachment: NPIDataServices.wsdl

removed urls from wsdl file. my boss ask me remove

> AxisSoapException: Soap message content is not valid. Unexpected or extraneous element (ProductInformation) encountered.
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXISCPP-1072
>                 URL: https://issues.apache.org/jira/browse/AXISCPP-1072
>             Project: Axis-C++
>          Issue Type: Bug
>          Components: Client - Deserialization
>    Affects Versions: current (nightly)
>         Environment: Axis Client : latest code from SVN 
> XMLParser: xerces-c-2.7.0
> WSDL2WS: Build with latest code using Axis Java 1.4
> Compiler: VC++ 2005(Vc8)
>            Reporter: Srinivas Umareddy
>             Fix For: current (nightly)
>
>         Attachments: axisclient.log, NPIDataServices.wsdl
>
>
> I have rebuild Axis c++ client code with latest code using xerces-c-2.7.0. I have generate the my cilent code with latest wsdl2ws tool. I see checkForExtraneousElements() introduced with latest wsdl2ws. 
> I am getting below error message when i execute the new code. Looks like some thing broken or i am missing some thing. 
> Here is my soap responce.
> <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>
>   <ProductInfoResponse xmlns="http://www.cat.com/NPIDataServices/2007/02/05">
>    <ProductInfoResponse xmlns="">
>     <SerialNumber>B1L</SerialNumber>
>     <ProductGroup>ARTICULATED TRUCKS</ProductGroup>
>     <GenericModel>725</GenericModel>
>     <PrimaryModel>725</PrimaryModel>
>     <SerialNumberBuilt>2250</SerialNumberBuilt>
>     <LastBuild>2010-04-30 00:00:00.0</LastBuild>
>     <Facility>PETERLEE (U2)</Facility>
>     <EngineeringModel>RM715</EngineeringModel>
>     <EngineeringVersion>-</EngineeringVersion>
>     <GeneralArrangement >2268615</GeneralArrangement >
>     <AssociatedModel>RM574</AssociatedModel>
>     <ProductType>AD</ProductType>
>     <CaptiveEngineModel>C11</CaptiveEngineModel>
>     <EngineFacilityCode>40</EngineFacilityCode>
>     <EngineFamily>ZE</EngineFamily>
>     <OldNewAssociatedModel>O</OldNewAssociatedModel>
>    </ProductInfoResponse>
>   </ProductInfoResponse>
>  </soapenv:Body>
> </soapenv:Envelope>
> Looks above soap not having any extraneous element. Why my client code is not working. 
> please help on this issue. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org


[jira] Commented: (AXISCPP-1072) AxisSoapException: Soap message content is not valid. Unexpected or extraneous element (ProductInformation) encountered.

Posted by "Srinivas Umareddy (JIRA)" <ax...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/AXISCPP-1072?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12898360#action_12898360 ] 

Srinivas Umareddy commented on AXISCPP-1072:
--------------------------------------------

Nadir,

we plan to go for production with latest the axis client code. So please confirm on above issue. How to fix and go forward.?

> AxisSoapException: Soap message content is not valid. Unexpected or extraneous element (ProductInformation) encountered.
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXISCPP-1072
>                 URL: https://issues.apache.org/jira/browse/AXISCPP-1072
>             Project: Axis-C++
>          Issue Type: Bug
>          Components: Client - Deserialization
>    Affects Versions: current (nightly)
>         Environment: Axis Client : latest code from SVN 
> XMLParser: xerces-c-2.7.0
> WSDL2WS: Build with latest code using Axis Java 1.4
> Compiler: VC++ 2005(Vc8)
>            Reporter: Srinivas Umareddy
>             Fix For: current (nightly)
>
>         Attachments: axisclient.log, NPIDataServices.wsdl
>
>
> I have rebuild Axis c++ client code with latest code using xerces-c-2.7.0. I have generate the my cilent code with latest wsdl2ws tool. I see checkForExtraneousElements() introduced with latest wsdl2ws. 
> I am getting below error message when i execute the new code. Looks like some thing broken or i am missing some thing. 
> Here is my soap responce.
> <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>
>   <ProductInfoResponse xmlns="http://www.cat.com/NPIDataServices/2007/02/05">
>    <ProductInfoResponse xmlns="">
>     <SerialNumber>B1L</SerialNumber>
>     <ProductGroup>ARTICULATED TRUCKS</ProductGroup>
>     <GenericModel>725</GenericModel>
>     <PrimaryModel>725</PrimaryModel>
>     <SerialNumberBuilt>2250</SerialNumberBuilt>
>     <LastBuild>2010-04-30 00:00:00.0</LastBuild>
>     <Facility>PETERLEE (U2)</Facility>
>     <EngineeringModel>RM715</EngineeringModel>
>     <EngineeringVersion>-</EngineeringVersion>
>     <GeneralArrangement >2268615</GeneralArrangement >
>     <AssociatedModel>RM574</AssociatedModel>
>     <ProductType>AD</ProductType>
>     <CaptiveEngineModel>C11</CaptiveEngineModel>
>     <EngineFacilityCode>40</EngineFacilityCode>
>     <EngineFamily>ZE</EngineFamily>
>     <OldNewAssociatedModel>O</OldNewAssociatedModel>
>    </ProductInfoResponse>
>   </ProductInfoResponse>
>  </soapenv:Body>
> </soapenv:Envelope>
> Looks above soap not having any extraneous element. Why my client code is not working. 
> please help on this issue. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org


[jira] Updated: (AXISCPP-1072) AxisSoapException: Soap message content is not valid. Unexpected or extraneous element (ProductInformation) encountered.

Posted by "Srinivas Umareddy (JIRA)" <ax...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/AXISCPP-1072?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Srinivas Umareddy updated AXISCPP-1072:
---------------------------------------

    Attachment: axisclient.log

> AxisSoapException: Soap message content is not valid. Unexpected or extraneous element (ProductInformation) encountered.
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXISCPP-1072
>                 URL: https://issues.apache.org/jira/browse/AXISCPP-1072
>             Project: Axis-C++
>          Issue Type: Bug
>          Components: Client - Deserialization
>    Affects Versions: current (nightly)
>         Environment: Axis Client : latest code from SVN 
> XMLParser: xerces-c-2.7.0
> WSDL2WS: Build with latest code using Axis Java 1.4
> Compiler: VC++ 2005(Vc8)
>            Reporter: Srinivas Umareddy
>             Fix For: current (nightly)
>
>         Attachments: axisclient.log
>
>
> I have rebuild Axis c++ client code with latest code using xerces-c-2.7.0. I have generate the my cilent code with latest wsdl2ws tool. I see checkForExtraneousElements() introduced with latest wsdl2ws. 
> I am getting below error message when i execute the new code. Looks like some thing broken or i am missing some thing. 
> Here is my soap responce.
> <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>
>   <ProductInfoResponse xmlns="http://www.cat.com/NPIDataServices/2007/02/05">
>    <ProductInfoResponse xmlns="">
>     <SerialNumber>B1L</SerialNumber>
>     <ProductGroup>ARTICULATED TRUCKS</ProductGroup>
>     <GenericModel>725</GenericModel>
>     <PrimaryModel>725</PrimaryModel>
>     <SerialNumberBuilt>2250</SerialNumberBuilt>
>     <LastBuild>2010-04-30 00:00:00.0</LastBuild>
>     <Facility>PETERLEE (U2)</Facility>
>     <EngineeringModel>RM715</EngineeringModel>
>     <EngineeringVersion>-</EngineeringVersion>
>     <GeneralArrangement >2268615</GeneralArrangement >
>     <AssociatedModel>RM574</AssociatedModel>
>     <ProductType>AD</ProductType>
>     <CaptiveEngineModel>C11</CaptiveEngineModel>
>     <EngineFacilityCode>40</EngineFacilityCode>
>     <EngineFamily>ZE</EngineFamily>
>     <OldNewAssociatedModel>O</OldNewAssociatedModel>
>    </ProductInfoResponse>
>   </ProductInfoResponse>
>  </soapenv:Body>
> </soapenv:Envelope>
> Looks above soap not having any extraneous element. Why my client code is not working. 
> please help on this issue. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org


[jira] Updated: (AXISCPP-1072) AxisSoapException: Soap message content is not valid. Unexpected or extraneous element (ProductInformation) encountered.

Posted by "Srinivas Umareddy (JIRA)" <ax...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/AXISCPP-1072?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Srinivas Umareddy updated AXISCPP-1072:
---------------------------------------

    Attachment:     (was: NPIDataServices.wsdl)

> AxisSoapException: Soap message content is not valid. Unexpected or extraneous element (ProductInformation) encountered.
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXISCPP-1072
>                 URL: https://issues.apache.org/jira/browse/AXISCPP-1072
>             Project: Axis-C++
>          Issue Type: Bug
>          Components: Client - Deserialization
>    Affects Versions: current (nightly)
>         Environment: Axis Client : latest code from SVN 
> XMLParser: xerces-c-2.7.0
> WSDL2WS: Build with latest code using Axis Java 1.4
> Compiler: VC++ 2005(Vc8)
>            Reporter: Srinivas Umareddy
>             Fix For: current (nightly)
>
>         Attachments: axisclient.log
>
>
> I have rebuild Axis c++ client code with latest code using xerces-c-2.7.0. I have generate the my cilent code with latest wsdl2ws tool. I see checkForExtraneousElements() introduced with latest wsdl2ws. 
> I am getting below error message when i execute the new code. Looks like some thing broken or i am missing some thing. 
> Here is my soap responce.
> <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>
>   <ProductInfoResponse xmlns="http://www.cat.com/NPIDataServices/2007/02/05">
>    <ProductInfoResponse xmlns="">
>     <SerialNumber>B1L</SerialNumber>
>     <ProductGroup>ARTICULATED TRUCKS</ProductGroup>
>     <GenericModel>725</GenericModel>
>     <PrimaryModel>725</PrimaryModel>
>     <SerialNumberBuilt>2250</SerialNumberBuilt>
>     <LastBuild>2010-04-30 00:00:00.0</LastBuild>
>     <Facility>PETERLEE (U2)</Facility>
>     <EngineeringModel>RM715</EngineeringModel>
>     <EngineeringVersion>-</EngineeringVersion>
>     <GeneralArrangement >2268615</GeneralArrangement >
>     <AssociatedModel>RM574</AssociatedModel>
>     <ProductType>AD</ProductType>
>     <CaptiveEngineModel>C11</CaptiveEngineModel>
>     <EngineFacilityCode>40</EngineFacilityCode>
>     <EngineFamily>ZE</EngineFamily>
>     <OldNewAssociatedModel>O</OldNewAssociatedModel>
>    </ProductInfoResponse>
>   </ProductInfoResponse>
>  </soapenv:Body>
> </soapenv:Envelope>
> Looks above soap not having any extraneous element. Why my client code is not working. 
> please help on this issue. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org


[jira] Updated: (AXISCPP-1072) AxisSoapException: Soap message content is not valid. Unexpected or extraneous element (ProductInformation) encountered.

Posted by "Srinivas Umareddy (JIRA)" <ax...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/AXISCPP-1072?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Srinivas Umareddy updated AXISCPP-1072:
---------------------------------------

    Attachment: NPIDataServices.wsdl

Nadir,

Thank you for your reply.

I am attaching wsdl file. 

I have generated the stub using the latest wsdl2ws which i rebuild with latest code using the axis 1.4 axisjava and wsdl4j-1.6.1.jar. The latest  wsdl2ws code didn't compile with axis 1.4 axisjava lib and it looking for import javax.wsdl.WSDLElement; class. I downloaded the wsdl4j-1.6.1.jar and it has WSDLElement. When replace axis 1.4 jar then code compiled ok but not sure my issue beacuse of that. 

I didn't find the latest wsdl2ws.jar . Please let me this correct. 

In that attached wsdl file has many webservices call and some of then are working. 

I have problem with ProductInfo servies which has complexArray.



> AxisSoapException: Soap message content is not valid. Unexpected or extraneous element (ProductInformation) encountered.
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXISCPP-1072
>                 URL: https://issues.apache.org/jira/browse/AXISCPP-1072
>             Project: Axis-C++
>          Issue Type: Bug
>          Components: Client - Deserialization
>    Affects Versions: current (nightly)
>         Environment: Axis Client : latest code from SVN 
> XMLParser: xerces-c-2.7.0
> WSDL2WS: Build with latest code using Axis Java 1.4
> Compiler: VC++ 2005(Vc8)
>            Reporter: Srinivas Umareddy
>             Fix For: current (nightly)
>
>         Attachments: axisclient.log, NPIDataServices.wsdl
>
>
> I have rebuild Axis c++ client code with latest code using xerces-c-2.7.0. I have generate the my cilent code with latest wsdl2ws tool. I see checkForExtraneousElements() introduced with latest wsdl2ws. 
> I am getting below error message when i execute the new code. Looks like some thing broken or i am missing some thing. 
> Here is my soap responce.
> <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>
>   <ProductInfoResponse xmlns="http://www.cat.com/NPIDataServices/2007/02/05">
>    <ProductInfoResponse xmlns="">
>     <SerialNumber>B1L</SerialNumber>
>     <ProductGroup>ARTICULATED TRUCKS</ProductGroup>
>     <GenericModel>725</GenericModel>
>     <PrimaryModel>725</PrimaryModel>
>     <SerialNumberBuilt>2250</SerialNumberBuilt>
>     <LastBuild>2010-04-30 00:00:00.0</LastBuild>
>     <Facility>PETERLEE (U2)</Facility>
>     <EngineeringModel>RM715</EngineeringModel>
>     <EngineeringVersion>-</EngineeringVersion>
>     <GeneralArrangement >2268615</GeneralArrangement >
>     <AssociatedModel>RM574</AssociatedModel>
>     <ProductType>AD</ProductType>
>     <CaptiveEngineModel>C11</CaptiveEngineModel>
>     <EngineFacilityCode>40</EngineFacilityCode>
>     <EngineFamily>ZE</EngineFamily>
>     <OldNewAssociatedModel>O</OldNewAssociatedModel>
>    </ProductInfoResponse>
>   </ProductInfoResponse>
>  </soapenv:Body>
> </soapenv:Envelope>
> Looks above soap not having any extraneous element. Why my client code is not working. 
> please help on this issue. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org


[jira] Commented: (AXISCPP-1072) AxisSoapException: Soap message content is not valid. Unexpected or extraneous element (ProductInformation) encountered.

Posted by "nadir amra (JIRA)" <ax...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/AXISCPP-1072?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12891435#action_12891435 ] 

nadir amra commented on AXISCPP-1072:
-------------------------------------

Will not be able to debug without WSDL. However, in the trace, the response was:

<?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>
  <ProductInfoResponse xmlns="http://www.cat.com/NPIDataServices/2007/02/05">
   <ProductInformation xmlns="">
    <SerialNumber>B1L</SerialNumber>
    <ProductGroup>ARTICULATED TRUCKS</ProductGroup>
    <GenericModel>725</GenericModel>
    <PrimaryModel>725</PrimaryModel>
    <SerialNumberBuilt>2250</SerialNumberBuilt>
    <LastBuild>2010-04-30 00:00:00.0</LastBuild>
    <Facility>PETERLEE (U2)</Facility>
    <EngineeringModel>RM715</EngineeringModel>
    <EngineeringVersion>-</EngineeringVersion>
    <GeneralArrangement >2268615</GeneralArrangement >
    <AssociatedModel>RM574</AssociatedModel>
    <ProductType>AD</ProductType>
    <CaptiveEngineModel>C11</CaptiveEngineModel>
    <EngineFacilityCode>40</EngineFacilityCode>
    <EngineFamily>ZE</EngineFamily>
    <OldNewAssociatedModel>O</OldNewAssociatedModel>
   </ProductInformation>
  </ProductInfoResponse>
 </soapenv:Body>
</soapenv:Envelope>

So my guess maybe you are not using the correct stubs and you need to regenerate your stubs?


> AxisSoapException: Soap message content is not valid. Unexpected or extraneous element (ProductInformation) encountered.
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXISCPP-1072
>                 URL: https://issues.apache.org/jira/browse/AXISCPP-1072
>             Project: Axis-C++
>          Issue Type: Bug
>          Components: Client - Deserialization
>    Affects Versions: current (nightly)
>         Environment: Axis Client : latest code from SVN 
> XMLParser: xerces-c-2.7.0
> WSDL2WS: Build with latest code using Axis Java 1.4
> Compiler: VC++ 2005(Vc8)
>            Reporter: Srinivas Umareddy
>             Fix For: current (nightly)
>
>         Attachments: axisclient.log
>
>
> I have rebuild Axis c++ client code with latest code using xerces-c-2.7.0. I have generate the my cilent code with latest wsdl2ws tool. I see checkForExtraneousElements() introduced with latest wsdl2ws. 
> I am getting below error message when i execute the new code. Looks like some thing broken or i am missing some thing. 
> Here is my soap responce.
> <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>
>   <ProductInfoResponse xmlns="http://www.cat.com/NPIDataServices/2007/02/05">
>    <ProductInfoResponse xmlns="">
>     <SerialNumber>B1L</SerialNumber>
>     <ProductGroup>ARTICULATED TRUCKS</ProductGroup>
>     <GenericModel>725</GenericModel>
>     <PrimaryModel>725</PrimaryModel>
>     <SerialNumberBuilt>2250</SerialNumberBuilt>
>     <LastBuild>2010-04-30 00:00:00.0</LastBuild>
>     <Facility>PETERLEE (U2)</Facility>
>     <EngineeringModel>RM715</EngineeringModel>
>     <EngineeringVersion>-</EngineeringVersion>
>     <GeneralArrangement >2268615</GeneralArrangement >
>     <AssociatedModel>RM574</AssociatedModel>
>     <ProductType>AD</ProductType>
>     <CaptiveEngineModel>C11</CaptiveEngineModel>
>     <EngineFacilityCode>40</EngineFacilityCode>
>     <EngineFamily>ZE</EngineFamily>
>     <OldNewAssociatedModel>O</OldNewAssociatedModel>
>    </ProductInfoResponse>
>   </ProductInfoResponse>
>  </soapenv:Body>
> </soapenv:Envelope>
> Looks above soap not having any extraneous element. Why my client code is not working. 
> please help on this issue. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org


[jira] Updated: (AXISCPP-1072) AxisSoapException: Soap message content is not valid. Unexpected or extraneous element (ProductInformation) encountered.

Posted by "Srinivas Umareddy (JIRA)" <ax...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/AXISCPP-1072?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Srinivas Umareddy updated AXISCPP-1072:
---------------------------------------

    Attachment: axisclient.log

attaching the log file

> AxisSoapException: Soap message content is not valid. Unexpected or extraneous element (ProductInformation) encountered.
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXISCPP-1072
>                 URL: https://issues.apache.org/jira/browse/AXISCPP-1072
>             Project: Axis-C++
>          Issue Type: Bug
>          Components: Client - Deserialization
>    Affects Versions: current (nightly)
>         Environment: Axis Client : latest code from SVN 
> XMLParser: xerces-c-2.7.0
> WSDL2WS: Build with latest code using Axis Java 1.4
> Compiler: VC++ 2005(Vc8)
>            Reporter: Srinivas Umareddy
>             Fix For: current (nightly)
>
>         Attachments: axisclient.log
>
>
> I have rebuild Axis c++ client code with latest code using xerces-c-2.7.0. I have generate the my cilent code with latest wsdl2ws tool. I see checkForExtraneousElements() introduced with latest wsdl2ws. 
> I am getting below error message when i execute the new code. Looks like some thing broken or i am missing some thing. 
> Here is my soap responce.
> <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>
>   <ProductInfoResponse xmlns="http://www.cat.com/NPIDataServices/2007/02/05">
>    <ProductInfoResponse xmlns="">
>     <SerialNumber>B1L</SerialNumber>
>     <ProductGroup>ARTICULATED TRUCKS</ProductGroup>
>     <GenericModel>725</GenericModel>
>     <PrimaryModel>725</PrimaryModel>
>     <SerialNumberBuilt>2250</SerialNumberBuilt>
>     <LastBuild>2010-04-30 00:00:00.0</LastBuild>
>     <Facility>PETERLEE (U2)</Facility>
>     <EngineeringModel>RM715</EngineeringModel>
>     <EngineeringVersion>-</EngineeringVersion>
>     <GeneralArrangement >2268615</GeneralArrangement >
>     <AssociatedModel>RM574</AssociatedModel>
>     <ProductType>AD</ProductType>
>     <CaptiveEngineModel>C11</CaptiveEngineModel>
>     <EngineFacilityCode>40</EngineFacilityCode>
>     <EngineFamily>ZE</EngineFamily>
>     <OldNewAssociatedModel>O</OldNewAssociatedModel>
>    </ProductInfoResponse>
>   </ProductInfoResponse>
>  </soapenv:Body>
> </soapenv:Envelope>
> Looks above soap not having any extraneous element. Why my client code is not working. 
> please help on this issue. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org


[jira] Updated: (AXISCPP-1072) AxisSoapException: Soap message content is not valid. Unexpected or extraneous element (ProductInformation) encountered.

Posted by "Srinivas Umareddy (JIRA)" <ax...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/AXISCPP-1072?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Srinivas Umareddy updated AXISCPP-1072:
---------------------------------------

    Attachment: axisclient.log

> AxisSoapException: Soap message content is not valid. Unexpected or extraneous element (ProductInformation) encountered.
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXISCPP-1072
>                 URL: https://issues.apache.org/jira/browse/AXISCPP-1072
>             Project: Axis-C++
>          Issue Type: Bug
>          Components: Client - Deserialization
>    Affects Versions: current (nightly)
>         Environment: Axis Client : latest code from SVN 
> XMLParser: xerces-c-2.7.0
> WSDL2WS: Build with latest code using Axis Java 1.4
> Compiler: VC++ 2005(Vc8)
>            Reporter: Srinivas Umareddy
>             Fix For: current (nightly)
>
>         Attachments: axisclient.log
>
>
> I have rebuild Axis c++ client code with latest code using xerces-c-2.7.0. I have generate the my cilent code with latest wsdl2ws tool. I see checkForExtraneousElements() introduced with latest wsdl2ws. 
> I am getting below error message when i execute the new code. Looks like some thing broken or i am missing some thing. 
> Here is my soap responce.
> <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>
>   <ProductInfoResponse xmlns="http://www.cat.com/NPIDataServices/2007/02/05">
>    <ProductInfoResponse xmlns="">
>     <SerialNumber>B1L</SerialNumber>
>     <ProductGroup>ARTICULATED TRUCKS</ProductGroup>
>     <GenericModel>725</GenericModel>
>     <PrimaryModel>725</PrimaryModel>
>     <SerialNumberBuilt>2250</SerialNumberBuilt>
>     <LastBuild>2010-04-30 00:00:00.0</LastBuild>
>     <Facility>PETERLEE (U2)</Facility>
>     <EngineeringModel>RM715</EngineeringModel>
>     <EngineeringVersion>-</EngineeringVersion>
>     <GeneralArrangement >2268615</GeneralArrangement >
>     <AssociatedModel>RM574</AssociatedModel>
>     <ProductType>AD</ProductType>
>     <CaptiveEngineModel>C11</CaptiveEngineModel>
>     <EngineFacilityCode>40</EngineFacilityCode>
>     <EngineFamily>ZE</EngineFamily>
>     <OldNewAssociatedModel>O</OldNewAssociatedModel>
>    </ProductInfoResponse>
>   </ProductInfoResponse>
>  </soapenv:Body>
> </soapenv:Envelope>
> Looks above soap not having any extraneous element. Why my client code is not working. 
> please help on this issue. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org


[jira] Commented: (AXISCPP-1072) AxisSoapException: Soap message content is not valid. Unexpected or extraneous element (ProductInformation) encountered.

Posted by "Srinivas Umareddy (JIRA)" <ax...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/AXISCPP-1072?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12892591#action_12892591 ] 

Srinivas Umareddy commented on AXISCPP-1072:
--------------------------------------------

have debugged axis_client code with my client stub code and my webservice return 
getCmplxObject() call. Looks like latest code is not handling the array of structures.

For wsdl file, WSDL2WS generated the below entry code.

// ======================================================================

// Invoke web service, send/receive operation. Handle output parameters, if any.

// ======================================================================

if (AXIS_SUCCESS == m_pCall->sendAndReceive())

{

if(AXIS_SUCCESS == m_pCall->validateMessage("ProductInfoResponse", "http://www.cat.com/NPIDataServices/2007/02/05", false))

{

pReturn = (ProductInfoArray*)m_pCall->getCmplxObject((void*) Axis_DeSerialize_ProductInfoArray, (void*) Axis_Create_ProductInfoArray, (void*) Axis_Delete_ProductInfoArray,"ProductInfoArray", 0);

}

checkForExtraneousElements();

}
getCmplxObject() call returning from below loop beacuse  pName ( value =ProductInfoArray ) and m_pNode->m_pchNameOrValue( value ="ProductInfoResponse") not matching. why this mismatch ?
if (RPC_ENCODED != m_nStyle) // TODO - why do we selectively do this check and not for all?

if (0 != strcmp (pName, m_pNode->m_pchNameOrValue))

{

/*

* TODO: Need to verify what WS-I 1.0 says

* about the mandatory of all the elements in the response in case of

* null value or none filled value. Some Web services servers work

* like this. This apply for all the rest of the deserializer.

*/

logExitWithPointer(NULL)

return NULL; 

}
why my wsdl is going this loop?. I have tested this with 1.6b banaires and it worked fine but it was failing larger xml data. Looks like lot of change happed to svn code compare to 1.6b. 

We are using so far axis cpp 1.6b binaries which are compiled on VC++ 6 and they worked great except larger xml. Please let me know your suggesation on this. Do you guys want us to use old binaries?.  Or moving Axis 2 will fix  larger xml problem?

Caterpilar is using the axis c++ for many project for integrating teamcenter with legacy system.

I spent two weeks on compilation with new parser and svn code but didn't work. I tried couple of time compile the axis code vc+ 2003 but failed now i have build all the binaries on VC++ 2005 both release and debug version but not having much exposer to webservies to fix this issue. Please help us on this critical issue.



> AxisSoapException: Soap message content is not valid. Unexpected or extraneous element (ProductInformation) encountered.
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXISCPP-1072
>                 URL: https://issues.apache.org/jira/browse/AXISCPP-1072
>             Project: Axis-C++
>          Issue Type: Bug
>          Components: Client - Deserialization
>    Affects Versions: current (nightly)
>         Environment: Axis Client : latest code from SVN 
> XMLParser: xerces-c-2.7.0
> WSDL2WS: Build with latest code using Axis Java 1.4
> Compiler: VC++ 2005(Vc8)
>            Reporter: Srinivas Umareddy
>             Fix For: current (nightly)
>
>         Attachments: axisclient.log, NPIDataServices.wsdl
>
>
> I have rebuild Axis c++ client code with latest code using xerces-c-2.7.0. I have generate the my cilent code with latest wsdl2ws tool. I see checkForExtraneousElements() introduced with latest wsdl2ws. 
> I am getting below error message when i execute the new code. Looks like some thing broken or i am missing some thing. 
> Here is my soap responce.
> <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>
>   <ProductInfoResponse xmlns="http://www.cat.com/NPIDataServices/2007/02/05">
>    <ProductInfoResponse xmlns="">
>     <SerialNumber>B1L</SerialNumber>
>     <ProductGroup>ARTICULATED TRUCKS</ProductGroup>
>     <GenericModel>725</GenericModel>
>     <PrimaryModel>725</PrimaryModel>
>     <SerialNumberBuilt>2250</SerialNumberBuilt>
>     <LastBuild>2010-04-30 00:00:00.0</LastBuild>
>     <Facility>PETERLEE (U2)</Facility>
>     <EngineeringModel>RM715</EngineeringModel>
>     <EngineeringVersion>-</EngineeringVersion>
>     <GeneralArrangement >2268615</GeneralArrangement >
>     <AssociatedModel>RM574</AssociatedModel>
>     <ProductType>AD</ProductType>
>     <CaptiveEngineModel>C11</CaptiveEngineModel>
>     <EngineFacilityCode>40</EngineFacilityCode>
>     <EngineFamily>ZE</EngineFamily>
>     <OldNewAssociatedModel>O</OldNewAssociatedModel>
>    </ProductInfoResponse>
>   </ProductInfoResponse>
>  </soapenv:Body>
> </soapenv:Envelope>
> Looks above soap not having any extraneous element. Why my client code is not working. 
> please help on this issue. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org


[jira] Updated: (AXISCPP-1072) AxisSoapException: Soap message content is not valid. Unexpected or extraneous element (ProductInformation) encountered.

Posted by "Srinivas Umareddy (JIRA)" <ax...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/AXISCPP-1072?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Srinivas Umareddy updated AXISCPP-1072:
---------------------------------------

    Attachment:     (was: NPIDataServices.wsdl)

> AxisSoapException: Soap message content is not valid. Unexpected or extraneous element (ProductInformation) encountered.
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXISCPP-1072
>                 URL: https://issues.apache.org/jira/browse/AXISCPP-1072
>             Project: Axis-C++
>          Issue Type: Bug
>          Components: Client - Deserialization
>    Affects Versions: current (nightly)
>         Environment: Axis Client : latest code from SVN 
> XMLParser: xerces-c-2.7.0
> WSDL2WS: Build with latest code using Axis Java 1.4
> Compiler: VC++ 2005(Vc8)
>            Reporter: Srinivas Umareddy
>             Fix For: current (nightly)
>
>         Attachments: axisclient.log
>
>
> I have rebuild Axis c++ client code with latest code using xerces-c-2.7.0. I have generate the my cilent code with latest wsdl2ws tool. I see checkForExtraneousElements() introduced with latest wsdl2ws. 
> I am getting below error message when i execute the new code. Looks like some thing broken or i am missing some thing. 
> Here is my soap responce.
> <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>
>   <ProductInfoResponse xmlns="http://www.cat.com/NPIDataServices/2007/02/05">
>    <ProductInfoResponse xmlns="">
>     <SerialNumber>B1L</SerialNumber>
>     <ProductGroup>ARTICULATED TRUCKS</ProductGroup>
>     <GenericModel>725</GenericModel>
>     <PrimaryModel>725</PrimaryModel>
>     <SerialNumberBuilt>2250</SerialNumberBuilt>
>     <LastBuild>2010-04-30 00:00:00.0</LastBuild>
>     <Facility>PETERLEE (U2)</Facility>
>     <EngineeringModel>RM715</EngineeringModel>
>     <EngineeringVersion>-</EngineeringVersion>
>     <GeneralArrangement >2268615</GeneralArrangement >
>     <AssociatedModel>RM574</AssociatedModel>
>     <ProductType>AD</ProductType>
>     <CaptiveEngineModel>C11</CaptiveEngineModel>
>     <EngineFacilityCode>40</EngineFacilityCode>
>     <EngineFamily>ZE</EngineFamily>
>     <OldNewAssociatedModel>O</OldNewAssociatedModel>
>    </ProductInfoResponse>
>   </ProductInfoResponse>
>  </soapenv:Body>
> </soapenv:Envelope>
> Looks above soap not having any extraneous element. Why my client code is not working. 
> please help on this issue. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org


[jira] Commented: (AXISCPP-1072) AxisSoapException: Soap message content is not valid. Unexpected or extraneous element (ProductInformation) encountered.

Posted by "nadir amra (JIRA)" <ax...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/AXISCPP-1072?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12891435#action_12891435 ] 

nadir amra commented on AXISCPP-1072:
-------------------------------------

Will not be able to debug without WSDL. However, in the trace, the response was:

<?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>
  <ProductInfoResponse xmlns="http://www.cat.com/NPIDataServices/2007/02/05">
   <ProductInformation xmlns="">
    <SerialNumber>B1L</SerialNumber>
    <ProductGroup>ARTICULATED TRUCKS</ProductGroup>
    <GenericModel>725</GenericModel>
    <PrimaryModel>725</PrimaryModel>
    <SerialNumberBuilt>2250</SerialNumberBuilt>
    <LastBuild>2010-04-30 00:00:00.0</LastBuild>
    <Facility>PETERLEE (U2)</Facility>
    <EngineeringModel>RM715</EngineeringModel>
    <EngineeringVersion>-</EngineeringVersion>
    <GeneralArrangement >2268615</GeneralArrangement >
    <AssociatedModel>RM574</AssociatedModel>
    <ProductType>AD</ProductType>
    <CaptiveEngineModel>C11</CaptiveEngineModel>
    <EngineFacilityCode>40</EngineFacilityCode>
    <EngineFamily>ZE</EngineFamily>
    <OldNewAssociatedModel>O</OldNewAssociatedModel>
   </ProductInformation>
  </ProductInfoResponse>
 </soapenv:Body>
</soapenv:Envelope>

So my guess maybe you are not using the correct stubs and you need to regenerate your stubs?


> AxisSoapException: Soap message content is not valid. Unexpected or extraneous element (ProductInformation) encountered.
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXISCPP-1072
>                 URL: https://issues.apache.org/jira/browse/AXISCPP-1072
>             Project: Axis-C++
>          Issue Type: Bug
>          Components: Client - Deserialization
>    Affects Versions: current (nightly)
>         Environment: Axis Client : latest code from SVN 
> XMLParser: xerces-c-2.7.0
> WSDL2WS: Build with latest code using Axis Java 1.4
> Compiler: VC++ 2005(Vc8)
>            Reporter: Srinivas Umareddy
>             Fix For: current (nightly)
>
>         Attachments: axisclient.log
>
>
> I have rebuild Axis c++ client code with latest code using xerces-c-2.7.0. I have generate the my cilent code with latest wsdl2ws tool. I see checkForExtraneousElements() introduced with latest wsdl2ws. 
> I am getting below error message when i execute the new code. Looks like some thing broken or i am missing some thing. 
> Here is my soap responce.
> <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>
>   <ProductInfoResponse xmlns="http://www.cat.com/NPIDataServices/2007/02/05">
>    <ProductInfoResponse xmlns="">
>     <SerialNumber>B1L</SerialNumber>
>     <ProductGroup>ARTICULATED TRUCKS</ProductGroup>
>     <GenericModel>725</GenericModel>
>     <PrimaryModel>725</PrimaryModel>
>     <SerialNumberBuilt>2250</SerialNumberBuilt>
>     <LastBuild>2010-04-30 00:00:00.0</LastBuild>
>     <Facility>PETERLEE (U2)</Facility>
>     <EngineeringModel>RM715</EngineeringModel>
>     <EngineeringVersion>-</EngineeringVersion>
>     <GeneralArrangement >2268615</GeneralArrangement >
>     <AssociatedModel>RM574</AssociatedModel>
>     <ProductType>AD</ProductType>
>     <CaptiveEngineModel>C11</CaptiveEngineModel>
>     <EngineFacilityCode>40</EngineFacilityCode>
>     <EngineFamily>ZE</EngineFamily>
>     <OldNewAssociatedModel>O</OldNewAssociatedModel>
>    </ProductInfoResponse>
>   </ProductInfoResponse>
>  </soapenv:Body>
> </soapenv:Envelope>
> Looks above soap not having any extraneous element. Why my client code is not working. 
> please help on this issue. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org


[jira] Updated: (AXISCPP-1072) AxisSoapException: Soap message content is not valid. Unexpected or extraneous element (ProductInformation) encountered.

Posted by "Srinivas Umareddy (JIRA)" <ax...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/AXISCPP-1072?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Srinivas Umareddy updated AXISCPP-1072:
---------------------------------------

    Attachment:     (was: NPIDataServices.wsdl)

> AxisSoapException: Soap message content is not valid. Unexpected or extraneous element (ProductInformation) encountered.
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXISCPP-1072
>                 URL: https://issues.apache.org/jira/browse/AXISCPP-1072
>             Project: Axis-C++
>          Issue Type: Bug
>          Components: Client - Deserialization
>    Affects Versions: current (nightly)
>         Environment: Axis Client : latest code from SVN 
> XMLParser: xerces-c-2.7.0
> WSDL2WS: Build with latest code using Axis Java 1.4
> Compiler: VC++ 2005(Vc8)
>            Reporter: Srinivas Umareddy
>             Fix For: current (nightly)
>
>         Attachments: axisclient.log
>
>
> I have rebuild Axis c++ client code with latest code using xerces-c-2.7.0. I have generate the my cilent code with latest wsdl2ws tool. I see checkForExtraneousElements() introduced with latest wsdl2ws. 
> I am getting below error message when i execute the new code. Looks like some thing broken or i am missing some thing. 
> Here is my soap responce.
> <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>
>   <ProductInfoResponse xmlns="http://www.cat.com/NPIDataServices/2007/02/05">
>    <ProductInfoResponse xmlns="">
>     <SerialNumber>B1L</SerialNumber>
>     <ProductGroup>ARTICULATED TRUCKS</ProductGroup>
>     <GenericModel>725</GenericModel>
>     <PrimaryModel>725</PrimaryModel>
>     <SerialNumberBuilt>2250</SerialNumberBuilt>
>     <LastBuild>2010-04-30 00:00:00.0</LastBuild>
>     <Facility>PETERLEE (U2)</Facility>
>     <EngineeringModel>RM715</EngineeringModel>
>     <EngineeringVersion>-</EngineeringVersion>
>     <GeneralArrangement >2268615</GeneralArrangement >
>     <AssociatedModel>RM574</AssociatedModel>
>     <ProductType>AD</ProductType>
>     <CaptiveEngineModel>C11</CaptiveEngineModel>
>     <EngineFacilityCode>40</EngineFacilityCode>
>     <EngineFamily>ZE</EngineFamily>
>     <OldNewAssociatedModel>O</OldNewAssociatedModel>
>    </ProductInfoResponse>
>   </ProductInfoResponse>
>  </soapenv:Body>
> </soapenv:Envelope>
> Looks above soap not having any extraneous element. Why my client code is not working. 
> please help on this issue. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org


[jira] Updated: (AXISCPP-1072) AxisSoapException: Soap message content is not valid. Unexpected or extraneous element (ProductInformation) encountered.

Posted by "Srinivas Umareddy (JIRA)" <ax...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/AXISCPP-1072?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Srinivas Umareddy updated AXISCPP-1072:
---------------------------------------

    Attachment: NPIDataServices.wsdl

removed urls from wsdl file. my boss ask me remove

> AxisSoapException: Soap message content is not valid. Unexpected or extraneous element (ProductInformation) encountered.
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXISCPP-1072
>                 URL: https://issues.apache.org/jira/browse/AXISCPP-1072
>             Project: Axis-C++
>          Issue Type: Bug
>          Components: Client - Deserialization
>    Affects Versions: current (nightly)
>         Environment: Axis Client : latest code from SVN 
> XMLParser: xerces-c-2.7.0
> WSDL2WS: Build with latest code using Axis Java 1.4
> Compiler: VC++ 2005(Vc8)
>            Reporter: Srinivas Umareddy
>             Fix For: current (nightly)
>
>         Attachments: axisclient.log, NPIDataServices.wsdl
>
>
> I have rebuild Axis c++ client code with latest code using xerces-c-2.7.0. I have generate the my cilent code with latest wsdl2ws tool. I see checkForExtraneousElements() introduced with latest wsdl2ws. 
> I am getting below error message when i execute the new code. Looks like some thing broken or i am missing some thing. 
> Here is my soap responce.
> <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>
>   <ProductInfoResponse xmlns="http://www.cat.com/NPIDataServices/2007/02/05">
>    <ProductInfoResponse xmlns="">
>     <SerialNumber>B1L</SerialNumber>
>     <ProductGroup>ARTICULATED TRUCKS</ProductGroup>
>     <GenericModel>725</GenericModel>
>     <PrimaryModel>725</PrimaryModel>
>     <SerialNumberBuilt>2250</SerialNumberBuilt>
>     <LastBuild>2010-04-30 00:00:00.0</LastBuild>
>     <Facility>PETERLEE (U2)</Facility>
>     <EngineeringModel>RM715</EngineeringModel>
>     <EngineeringVersion>-</EngineeringVersion>
>     <GeneralArrangement >2268615</GeneralArrangement >
>     <AssociatedModel>RM574</AssociatedModel>
>     <ProductType>AD</ProductType>
>     <CaptiveEngineModel>C11</CaptiveEngineModel>
>     <EngineFacilityCode>40</EngineFacilityCode>
>     <EngineFamily>ZE</EngineFamily>
>     <OldNewAssociatedModel>O</OldNewAssociatedModel>
>    </ProductInfoResponse>
>   </ProductInfoResponse>
>  </soapenv:Body>
> </soapenv:Envelope>
> Looks above soap not having any extraneous element. Why my client code is not working. 
> please help on this issue. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org