Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

WebService parameter values are null (JAX-WS)

843833Apr 29 2008 — edited Apr 29 2008
I am using JAX-WS with NetBeans 6.1. (I'm newbie with JAX-WS, I'm trying to replace an AXIS web service)
I am having trouble with a web service because the parameter values are null when the soap request elements are full qualified.
This is the soap request:

{color:#333399}<SOAP-ENV:Envelope xmlns:ns="http://ws.wstmtrack.ingesis.com.gt/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Body>
<s:addComentario xmlns:s="http://ws.wstmtrack.ingesis.com.gt/">
<s:idReq>00144</s:idReq>
<s:comentario>MyTest</s:comentario>
</s:addComentario>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

{color}{color:#000000}If the elements <s:idReq> and <s:comentario> are replaced with<idReq> and <comentario> (Not qualified) the parameter values are "00144" and "MyTest" (Fine)
What Can I do to the web service to allow full qualified elements in the soap request?
The web service client is "Serena TeamTrack" and this tool always send full qualified elements
This is the type definitions in WSDL:

{color:#000080} <schema version="1.0" targetNamespace="http://ws.wstmtrack.ingesis.com.gt/" xmlns="http://www.w3.org/2001/XMLSchema" elementFormDefault="unqualified">
<element name="addComentario" type="tns:addComentario"/>
<complexType name="addComentario">
<sequence>
<element name="idReq" type="xsd:string" minOccurs="0" form="unqualified"/>
<element name="comentario" type="xsd:string" minOccurs="0" form="unqualified"/>
</sequence>
</complexType>
</schema>{color}

{color}
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 27 2008
Added on Apr 29 2008
1 comment
944 views