• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

DOM document with SOAP

 
Ranch Hand
Posts: 906
  • 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
  • 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
  • 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:
 
    Bookmark Topic Watch Topic
  • New Topic