How to send XML document from java client to .net webservice
Greetings, I have implemented a Web service with .Net that receives a XML document as input parameter. I want to implement a java client that consumes the Web service (sending the XML document). The Wsdl of the web service uses "anyType" as the data type, and the java client uses "java.lang.object". I don't know how to send the XML document from the java client to the .Net Web Service. Any help will be appreciated, thanks in advance
How to send XML files from Java Client to Web Services(wsdl)
I have the same request to send xml files from Java client to WSDL.
Do you have some sample Java code to do that ?
email : firstname.lastname@example.org
>>Is it any xml document or is it a specific xml document with a specific schema?
>>If it has a known schema and you are actually using the contents of the >>xml file in your web service method you should change the parameter in >>the .net service to accept a type bound to the documents root element. >>This means unmarsheling the file in the java client before sending it. You >>can use XML Tools : DTD, XML schema and XML document conversion >>software tool : XML Utilities to create an XML Schema (xsd) to use with >>JAXB - XJC to generate object bindings.