• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Passing DOM object in webservices

 
Nischal Tanna
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
How can i define the type/s in the wsdl for passing a XML DOM object as a parameter in a webservice call?...Any wsdl snippets ?
 
Nischal Tanna
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I have got the answer myself...We need to define the dom element as xsd:anyType in the wsdl...
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you planning to send a serialized binary representation of a DOM object through SOAP? That would only be accessible by a client written in Java, and thus negate the cross-platform advantage of web services. Could you send the actual XML that corresponds to the DOM object instead?
 
Nischal Tanna
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
So you suggest sending the xml as a String to make it cross platform capable?...I am sending a single org.w3c.dom.Document Object which is made out by parsing the XML...
 
Nischal Tanna
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To give a more clear picture....Check for "third option" in this link.
Web services
..I am using that...
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check for "third option" in this link.
Web services


That talks about what I advocated - sending the XML as text, not as Document object. If you're already doing that, then my point is moot.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic