[
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: [email protected]
For additional commands, e-mail: [email protected]