aspose file tools*
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
JavaRanch » Java Forums » Java » Web Services
Bookmark "Axis 2 generated code in "Expanded Mode"" Watch "Axis 2 generated code in "Expanded Mode"" New topic
Author

Axis 2 generated code in "Expanded Mode"

Mouhammed Soueidane
Greenhorn

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:
http://wso2.org/library/1719

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 " (http://axis.apache.org/axis2/java/core/docs/adb/adb-howto.html#gen_modes). 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: http://aspose.com/file-tools
 
subject: Axis 2 generated code in "Expanded Mode"
 
Similar Threads
Web services in HTTPS. org.apache.axis2.AxisFault: Read timed out
org.apache.axis2.AxisFault: Transport error: 411 Error: Invalid Request
Rampart Axis2 passwordCallback method - Urgent Please
WebServices-Apache Axis2-Rampart - Read Time out exception.
Problem in Axis 1.4 Client Virtual IP (For Load Balancing at Server).