This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Services and the fly likes JAX-WS with Jdk1.6. problem with body content going in header while consuming Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "JAX-WS with Jdk1.6. problem with body content going in header while consuming" Watch "JAX-WS with Jdk1.6. problem with body content going in header while consuming" New topic
Author

JAX-WS with Jdk1.6. problem with body content going in header while consuming

Mayank Soni
Greenhorn

Joined: Oct 05, 2009
Posts: 3
I am trying to consume web service using dynamic proxy JAX-WS API with JDK1.6 .I have written a handler to log request xml created. I am surprised to see all contents which should be in soap body is going in soap header resulting in wrong xml.



CreateRequest node should be in soapbody as opposed to header in below xml

XML from log..

<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"><S:Header><CreateRequest xmlns="urn:xxxxxxxx" FromWebservice="whekwhj" Status="xxxxxl"><Number/><Description/><ReqBy_LoginID/><ReqFor_LoginID/><Category/><Item>dsfjjdsf</Item><Product_Name/></CreateRequest></S:Header><S:Body/></S:Envelope>

JDK version used to generate client is 1.6 update 31

Any Pointer to above problem?

Thanks


Mayank
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JAX-WS with Jdk1.6. problem with body content going in header while consuming
 
Similar Threads
random xmlns attribute order causing unexpected XML tag exception
Web Services/SOAP Newbie question
Did not understand "MustUnderstand" header(s)
WS-Security with XWSS and SoapUI
JAX-WS - several newbie questions.