Dear Friends,
I have an XML document(DOM object) which should be sent to the Web Service from a java client.
I created the DOM by iterating through the JDBC ResultSet. The DOM when converted to String will display the full XML data.
I developed the following code.
I need to send the Document as SOAP message.
TestService.java is a Web Service class from which i created the WSDL. In this class, there is a method processRequest() which takes SOAPMessage type as argument.
Follwing is the WSDL generated by Axis:
My problem is, how to call this method from the java client. In Axis, we can do a setOperationName("methodName") to call a particular web service method. But when using SAAJ, how to call the particular method of the webservice since there is only provision (that i know) to send only the webservice endpoint URL.
i am using JDK 6 and Tomcat 5.5.27 with Eclipse Galileo as the editor.
Kindly provide your help.
Following is the exception i get:
Thanks,
Vijay
I have an XML document(DOM object) which should be sent to the Web Service from a java client.
I created the DOM by iterating through the JDBC ResultSet. The DOM when converted to String will display the full XML data.
I developed the following code.
I need to send the Document as SOAP message.
TestService.java is a Web Service class from which i created the WSDL. In this class, there is a method processRequest() which takes SOAPMessage type as argument.
Follwing is the WSDL generated by Axis:
My problem is, how to call this method from the java client. In Axis, we can do a setOperationName("methodName") to call a particular web service method. But when using SAAJ, how to call the particular method of the webservice since there is only provision (that i know) to send only the webservice endpoint URL.
i am using JDK 6 and Tomcat 5.5.27 with Eclipse Galileo as the editor.
Kindly provide your help.
Following is the exception i get:
Thanks,
Vijay