web services - JAXWS problem without namespace prefix using Jboss 4.2.3ga -


i have java service published jaxws webservice using @webserviceannotation. service deployed on jboss application server 4.2.3ga (with jax-ws implementation provided application server).

the service works when soap message this:

<soapenv:envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:pref="mynamespace">    <soapenv:header/>    <soapenv:body>         <pref:mymethod>             <arg0>value</arg0>         </pref:mymethod>    </soapenv:body> </soapenv:envelope> 

and failed when soap message this:

<soapenv:envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns="mynamespace">    <soapenv:header/>    <soapenv:body>         <mymethod>             <arg0>value</arg0>         </mymethod>    </soapenv:body> </soapenv:envelope> 

by fail mean "mymethod" invoked, arg0 null.

does know if expected behaviour of jax-ws api or bug ? found no reference 1 or other.

does experienced same problem (or success) using jax-ws stack ?

in working code there no default namespace , <mymethod> bound mynamespace prefix. because <arg0> element has no prefix, in null namespace.

in failing code mynamespace set default namespace. because <mymethod> , <arg0> not have prefix, both have mynamespace namespace uri.

it not allowed bind empty namespace uri prefix. therefore either need continue use namespace prefix in <mymethod> or need override default namespace in <arg0> this:

<arg0 xmlns=""> 

note sets unprefixed child elements of <arg0> null namespace unless override default namespace again.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -