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 DOM document with SOAP 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 "DOM document with SOAP" Watch "DOM document with SOAP" New topic

DOM document with SOAP

JeanLouis Marechaux
Ranch Hand

Joined: Nov 12, 2001
Posts: 906
Hi all,
It sounds with Axis I can send a DOM document in a soap message simply calling a method of my webservice which parameter is a w3c DOM.
Is that true ?
Using Apache Soap 2.2 instead of Axis, can I still do that ?
According to the doc, I can't, but I have instead to implement a method whose signature is :
public void myMethod(Envelope requestEnvelope, SOAPContext requestContext,
SOAPContext responseContext)

Did you ever experienced that ?

/ JeanLouis<br /><i>"software development has been, is, and will remain fundamentally hard" (Grady Booch)</i><br /> <br />Take a look at <a href="" target="_blank" rel="nofollow">Agile OpenUP</a> in the Eclipse community
JeanLouis Marechaux
Ranch Hand

Joined: Nov 12, 2001
Posts: 906
Sounds like my statement is true
But wth Apache SOAp 2.3 (Websphere 5), I can't have a Message Client working properl.
The error returned by the server is :
any idea ?
[ March 28, 2003: Message edited by: Jean-Louis Marechaux ]
JeanLouis Marechaux
Ranch Hand

Joined: Nov 12, 2001
Posts: 906
�My mystake.
I forgot to insert a namespace to my first element of the body like :
<MYFIRSTELEMENT xmlns="urn:myID">
Now it works fine :roll:
I agree. Here's the link:
subject: DOM document with SOAP
Similar Threads
Accessing SOAP Service from MS Tech... ?
Axis or WSAD Web Services
Axis webservice access ASP.NET client
Soap message formats
Soap without the java objects