File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Axis2 Generation - Multiple WSDL Ports Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Axis2 Generation - Multiple WSDL Ports" Watch "Axis2 Generation - Multiple WSDL Ports" New topic
Author

Axis2 Generation - Multiple WSDL Ports

Scott Selikoff
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3697
    
    5

Consider the following WSDL outline:


When I run Axis2 code generation on it (org.apache.axis2.wsdl.WSDL2Java), the Stub it generates "WidgetServiceStub" only contains methods for one of the ports above. For example, in one generation I only have methods defined in Sale port. But if I remove this definition, the generation then contains methods only for Trade or Sell ports. The one it chooses seems order irrelevant.

Is there some obvious reason it only wants to generate one port per service? Do I need to change the command-line parameters to WSDL or does the WSDL to need to be restructured?
[ May 16, 2008: Message edited by: Scott Selikoff ]

My Blog: Down Home Country Coding with Scott Selikoff
Scott Selikoff
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3697
    
    5

Actually reviewing through some documentation, it seems like I can specify the port using the "-pn portname" on generation. But what if I have a client application in which I want to use all 3 Sale/Buy/Trade services? Is there a way to generate it with everything? What's the common solution in this type of environment?
Michael Ernest
High Plains Drifter
Sheriff

Joined: Oct 25, 2000
Posts: 7292

Originally posted by Scott Selikoff:
Actually reviewing through some documentation, it seems like I can specify the port using the "-pn portname" on generation. But what if I have a client application in which I want to use all 3 Sale/Buy/Trade services? Is there a way to generate it with everything? What's the common solution in this type of environment?

The likely solution here is to get the bug in your tool fixed. There are multiple WSDL code generators out there that did/do not support multiple port types for a single service, even though the WSDL spec calls it out plainly enough.


Make visible what, without you, might perhaps never have been seen.
- Robert Bresson
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Axis2 Generation - Multiple WSDL Ports
 
Similar Threads
JAX-WS 2.0 Web service with multiple ports
Need Help with WSDL Port
SSL and Web Service - Need a bit of help
Need to put a SOAP address
Need Help regarding -- org.xml.sax.SAXException: Invalid element