Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

XML - SOAP - Invoke a WebService

Posted on 2009-04-03
4
Medium Priority
?
556 Views
Last Modified: 2013-11-19
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!
0
Comment
Question by:Al_Sararas
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 12

Accepted Solution

by:
Gibu George earned 2000 total points
ID: 24079311
You have to get the wsdl from the webservice provider and then generate the stub and client using axis. You can achive this using eclipse and eclipse plugind for axis2 which is available on

http://apache.mirror.facebook.com/ws/axis2/tools/1_4_1/

the tool will generate a test client for you
0
 

Author Comment

by:Al_Sararas
ID: 24079938
Thanks for the response! This is all new to me - 1st time for all of this.

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?
0
 
LVL 12

Assisted Solution

by:Gibu George
Gibu George earned 2000 total points
ID: 24080771
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
Suggested Courses

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question