File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Webservices

 
Mahitha Boreddy
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all ,
Can i find any code samples for how to send org.w3c.dom.Document as a parameter instead of primitive data types to web service client ??
--------------------

Thanks & regards
Mahitha
[ December 23, 2008: Message edited by: Mahitha Boreddy ]
 
Peer Reynders
Bartender
Posts: 2933
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

Please use a meaningful subject line.

See here and Xml document as a SOAP payload
 
Mahitha Boreddy
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Peer.



Regards,
Mahitha.
[ December 23, 2008: Message edited by: Mahitha Boreddy ]
 
securetechie techie
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey,
I know one site who give this type of services.
I suggest you should try or visit this site.
I am saying this because I am also use this site.
So, Try this one
Best of Luck
___________________
Online media outsourcing
 
Mahitha Boreddy
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,
Thanks for reply. Where is the site address

When i was Creating Webservice, by sending Document object, iwas getting these error, can any one knows about that error.

Error: The service class "xmlread" does not comply to one or more requirements of the JAX-RPC 1.1 specification, and may not deploy or function correctly.
The value type "org.w3c.dom.Document" used via the service class "xmlread" does not have a public default constructor. Chapter 5.4 of the JAX-RPC 1.1 specification requires a value type to have a public default constructor, otherwise a JAX-RPC 1.1 compliant Web service engine may be unable to construct an instance of the value type during deserialization.
The value type "org.w3c.dom.DOMImplementation" used via the service class "xmlread" does not have a public default constructor. Chapter 5.4 of the JAX-RPC 1.1 specification requires a value type to have a public default constructor, otherwise a JAX-RPC 1.1 compliant Web service engine may be unable to construct an instance of the value type during deserialization.
The value type "org.w3c.dom.DocumentType" used via the service class "xmlread" does not have a public default constructor. Chapter 5.4 of the JAX-RPC 1.1 specification requires a value type to have a public default constructor, otherwise a JAX-RPC 1.1 compliant Web service engine may be unable to construct an instance of the value type during deserialization.
The value type "org.w3c.dom.NamedNodeMap" used via the service class "xmlread" does not have a public default constructor. Chapter 5.4 of the JAX-RPC 1.1 specification requires a value type to have a public default constructor, otherwise a JAX-RPC 1.1 compliant Web service engine may be unable to construct an instance of the value type during deserialization.

[ December 29, 2008: Message edited by: Mahitha Boreddy ]
[ December 29, 2008: Message edited by: Mahitha Boreddy ]
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"securetechie",

On your way in you may have missed that we have a policy on screen names here at JavaRanch. Basically, it must consist of a first name, a space, and a last name, and not be obviously fictitious. Since yours does not conform with it, please take a moment to change it, which you can do right here.
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you read the topics Peer linked to? They explain how to send XML as a string, not how to send a Document object (which you should not do). So you need to obtain a String representation of the XML that's contained in the Document object.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic