This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Web Services and the fly likes Axis 2 generated code in Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Axis 2 generated code in "Expanded Mode"" Watch "Axis 2 generated code in "Expanded Mode"" New topic

Axis 2 generated code in "Expanded Mode"

Mouhammed Soueidane

Joined: Sep 03, 2011
Posts: 1
I'm having some problems understanding how to send a request to a web service that I have deployed. I have followed the following tutorial:

Which I have successfully applied, and it worked well. The tutorial was straightforward, and I have easily generated a web service client. All I did was creating "request" objects from the exposed web service method, set its arguments, and then using the web service stub, I have passed the request object to the exposed web service method, and got a response.

Now, I have received a WSDL file from which I'm supposed to build a web service client as well. The problem is that the generated files from the WSDL differ greatly from that of the tutorial I followed. I learned later on that when generating clients using ADB, there is a mode called "Expanded Mode" that generates " a class for each of the outer elements and the named complex types " ( The problem is that I'm unable to understand how to create a request object and get a response from the web service from the generated classes. My best shot was as follows:

After trying to debug the problem, I have found out that this is the line that is throwing the exception:

I just want you guys to tell me if the way I'm using the request/response objects is correct.What I'm sure about is that the service is up and running, since I have tried to create an AXIS 1 client for it, and it worked just fine.
Your help is much appreciated.
I agree. Here's the link:
subject: Axis 2 generated code in "Expanded Mode"
It's not a secret anymore!