• Post Reply Bookmark Topic Watch Topic
  • New Topic

Sending XML documents in SOAP

 
Latha Kalaga
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • 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
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • 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
  • 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 ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!