• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

DOM document with SOAP

 
JeanLouis Marechaux
Ranch Hand
Posts: 906
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 Marechaux
Ranch Hand
Posts: 906
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 906
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
�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:
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic