Al_Sararas
asked on
XML - SOAP - Invoke a WebService
Hello,
Background:
I have written a Java program to read data from an AS400 file, creating a XML document. This Java program will be called at the end of a CL job that runs in batch on an AS400 (I have loaded the Java pgm and associated jar files to the IFS).
Question:
I need to wrap the XML in a SOAP envelope and invoke a remote wsdl to send the data to their site - as a synchronous request/response transaction.
How can I
. Wrap the XML in a SOAP envelope
. Invoke the wsdl
I have googled and have seen articles regarding JAX-RPC, SAAJ, etc plus researched the content/format of a wsdl file. Can / should I create a wsdl at my end or is this something I include in the Java program using Java code? Just don't know how to tie all this together.
Note: Must be an in-house solution - nothing can be purchased (no budget).
All suggestions greatly appreciated.
Thanks!
Background:
I have written a Java program to read data from an AS400 file, creating a XML document. This Java program will be called at the end of a CL job that runs in batch on an AS400 (I have loaded the Java pgm and associated jar files to the IFS).
Question:
I need to wrap the XML in a SOAP envelope and invoke a remote wsdl to send the data to their site - as a synchronous request/response transaction.
How can I
. Wrap the XML in a SOAP envelope
. Invoke the wsdl
I have googled and have seen articles regarding JAX-RPC, SAAJ, etc plus researched the content/format of a wsdl file. Can / should I create a wsdl at my end or is this something I include in the Java program using Java code? Just don't know how to tie all this together.
Note: Must be an in-house solution - nothing can be purchased (no budget).
All suggestions greatly appreciated.
Thanks!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Sorry but I will probably be asking some basic questions.
The provider has supplied the wsdl. I am not sure how to call it - that was one of my questions. Would it help if I posted the wsdl - blanking out sensitive info?
What is the stub and client. The client would call the wsdl - correct?
I did a quick check of the link - which jar files are applicable? I didn't see any Eclipse / plugin combinations. What classes would I reference to do this? Will this also create the SOAP wrapper as well?