java - Is it possible to create web-service where some operations have QUALIFIED elements and others have UNQUALIFIED? -


colleagues, situation: have wsdl use generate generate classes using wsdl2java cxf , deploy web services. web service operations worked fine before today. in request each attribute has prefix (as understand means “qualified”). today decided add new operation “hardcoded” client. feature of client requires in attributes of elements without prefix (new) in request. e.g. client works request:

<soapenv:envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sin="http://my.comp/2010/webservice/service" xmlns:new="http://www.webservice.namespace">    <soapenv:header/>    <soapenv:body>       <sin:authdata>          <new:login>121212</new:login>          <new:password>12121</new:password>       </sin:authdata>    </soapenv:body> </soapenv:envelope> 

but didn’t work with:

<soapenv:envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sin="http://my.comp/2010/webservice/service" xmlns:new="http://www.webservice.namespace">    <soapenv:header/>    <soapenv:body>       <sin:authdata>          <login>121212</login>          <password>12121</password>       </sin:authdata>    </soapenv:body> </soapenv:envelope> 

, no tag new in login , password elements.

the questions:

is possible create web service operations have elements prefixes , operations in elements not have prefix?

how achieve this: correct wsdl, correct cxf generated classes or else?

i tried correct class package-info.java (elementformdefault = javax.xml.bind.annotation.xmlnsform.qualified -> elementformdefault = javax.xml.bind.annotation.xmlnsform.unqualified) in case prefixes of elements removed. glad advice.

thank help.

it seems, moving classes, want without prefix (unqualified), package helps.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -