• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Sending XML documents in SOAP

 
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I like to create a web service that accepts a XML document as input and returns XML document as output. I am trying to deploy this in GLUE environment.
Any ideas? So far I have come across documentation that discusses how to deploy a web service that accepts input in rpc style. This web service accepts a xerces document as input.
Thanks,
Latha
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The easiest thing to do is to get the org.w3c.dom.Element that is the root of the document and serialize that. Since a SOAP message is an XML document, it can't contain another document but it can contain the root element.
Bill
 
Latha Kalaga
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Bill for the response. Since Element is an interface, I am not sure how it is serialized. Besides, when I execute the service, I get the following runtime exception. Any thoughts?
Exception in thread "main" electric.util.WrappedException: SOAPException( Server: java.io.IOException: no argument constructor is missing. java.lang.IllegalAccessException: org/apache/xerces/dom/ElementImpl )
at electric.proxy.handler.Proxy.getCompatibleException(Unknown Source)
at electric.proxy.handler.Proxy.invoke(Unknown Source)
at electric.util.proxy.proxy3.InvocationAdaptor.invoke(Unknown Source)
at $Proxy0.getManagedCsr(Unknown Source)
at com.qwest.csrmWS.Invoke.main(Invoke.java:75)

Thanks,
Latha
[ September 17, 2002: Message edited by: Latha Kalaga ]
 
I brought this back from the farm where they grow the tiny ads:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic