aspose file tools*
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 Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "DOM document with SOAP" Watch "DOM document with SOAP" New topic
Author

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="http://www.epfwiki.net/wikis/openup/" 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 :
<faultcode>SOAP-ENV:Server.Exception:</faultcode>
<faultstring>java.lang.NullPointerException</faultstring>
<faultactor>/myApp/servlet/messagerouter</faultactor>
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">
....
</MYFIRSTELEMENT>
Now it works fine :roll:
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: DOM document with SOAP