axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitriy (Commented) (JIRA)" <>
Subject [jira] [Commented] (AXIS2-5249) Axis2 1.6.1 generates invalid request when using JAXBRI bindings
Date Thu, 23 Feb 2012 14:10:48 GMT


Dmitriy commented on AXIS2-5249:

The generated code produces request: 

<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv=""><soapenv:Body><ns2:getPersonInfo
xmlns:ns2="" xmlns=""><credential><password>NIH_GUIDE</password><dunsId>001910777</dunsId><tradingPartnerId>easy</tradingPartnerId></credential><commonsUserId>AALBERG</commonsUserId></ns2:getPersonInfo></soapenv:Body></soapenv:Envelope>

while the correct request should be like: 

<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv=""><soapenv:Body><ns2:getPersonInfoElement
xmlns:ns2="" xmlns=""><credential><password>NIH_GUIDE</password><dunsId>001910777</dunsId><tradingPartnerId>easy</tradingPartnerId></credential><commonsUserId>AALBERG</commonsUserId></ns2:getPersonInfoElement></soapenv:Body></soapenv:Envelope>

The problem can be resolved by changing the generated Stub code from: 

env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()), getPersonInfoElement4,
optimizeContent(new javax.xml.namespace.QName("",
"getPersonInfo")), new javax.xml.namespace.QName("",


env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()), getPersonInfoElement4,
optimizeContent(new javax.xml.namespace.QName("","getPersonInfoElement")),
new javax.xml.namespace.QName("","getPersonInfoElement")); 

Basically, the genertaed code uses "type" namespace and name instead of "element" namespace
and name thus producing incorrect XML for the request. The organization policy prevent us
from modifying the generated code, so we are in a bind. Your help will be appreciated. 
> Axis2 1.6.1 generates invalid request when using JAXBRI bindings
> ----------------------------------------------------------------
>                 Key: AXIS2-5249
>                 URL:
>             Project: Axis2
>          Issue Type: Bug
>          Components: databinding
>    Affects Versions: 1.6.1
>         Environment: Windows, Solaris
>            Reporter: Dmitriy
>         Attachments: ESubServices.wsdl, ESubServices.wsdl,, build.xml
> The client generated using JAXBRI bindings creates invalid request XML with version 1.6.1.
 The same code works with Axis 2 1.5.1 using JAXBRI bindings and Axis 2 1.6.1 using ADB bindings.
> This problem seems to impact several clients for various Web Services.  All clients were
working fine with Axis 2 1.5.1.
> I will attach WSDL, test client, and code generation commands to this ticket.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message