axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Raddatz (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AXIS2-5438) Namespace incorrectly added to unqualified elements
Date Tue, 16 Oct 2012 19:55:02 GMT

     [ https://issues.apache.org/jira/browse/AXIS2-5438?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Thomas Raddatz updated AXIS2-5438:
----------------------------------

    Attachment: OTSTDecisionService.wsdl

Example WSDL file used to generate a skeleton and a client stub.
                
> Namespace incorrectly added to unqualified elements
> ---------------------------------------------------
>
>                 Key: AXIS2-5438
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5438
>             Project: Axis2
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.5
>            Reporter: Thomas Raddatz
>         Attachments: OTSTDecisionService.wsdl
>
>
> A Web Service skeleton that is generated by WSDL2JAVA incorrectly adds namespaces to
unqualified elements of the response message. In contrast to that the client is expected to
send a request message with unqualified elements.
> Correct request message:
> <?xml version="1.0" encoding="UTF-8"?>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:dstns="http://www.ibm.com/rules/decisionservice/Tra/OTST"
xmlns:wns1="http://www.ilog.com/rules" xmlns:wns2="http://www.ibm.com/rules/decisionservice/Tra/OTST/param">
> 	<soapenv:Body>
> 		<dstns:OTSTRequest>
> 			<dstns:DecisionID>aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee</dstns:DecisionID>
> 			<wns2:odr>
> 				<wns1:order>
> 					<oamount>123</oamount>
> 					<amount>456</amount>
> 				</wns1:order>
> 			</wns2:odr>
> 		</dstns:OTSTRequest>
> 	</soapenv:Body>
> </soapenv:Envelope>
> Incorrect response message:
> <?xml version='1.0' encoding='UTF-8'?>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
> 	<soapenv:Body>
> 		<ns3:OTSTResponse xmlns:ns3="http://www.ibm.com/rules/decisionservice/Tra/OTST">
> 			<ns3:DecisionID>aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee</ns3:DecisionID>
> 			<odr xmlns="http://www.ibm.com/rules/decisionservice/Tra/OTST/param">
> 				<order xmlns="http://www.ilog.com/rules">
> 					<oamount>123</oamount>
> 					<amount>456</amount>
> 				</order>
> 			</odr>
> 		</ns3:OTSTResponse>
> 	</soapenv:Body>
> </soapenv:Envelope>
> According to the wsdl file, both messages have the same format.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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


Mime
View raw message