This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets 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.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Axis 2 generated code in "Expanded Mode"
Similar Threads
WebServices-Apache Axis2-Rampart - Read Time out exception.
Web services in HTTPS. org.apache.axis2.AxisFault: Read timed out
Rampart Axis2 passwordCallback method - Urgent Please
org.apache.axis2.AxisFault: Transport error: 411 Error: Invalid Request
Problem in Axis 1.4 Client Virtual IP (For Load Balancing at Server).