aspose file tools*
The moose likes Web Services and the fly likes JAX-WS 2.0 Web service with multiple ports Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "JAX-WS 2.0 Web service with multiple ports " Watch "JAX-WS 2.0 Web service with multiple ports " New topic
Author

JAX-WS 2.0 Web service with multiple ports

Joe Miller
Greenhorn

Joined: Oct 07, 2008
Posts: 1
With JAX-WS 2.0,(how) is it possible to map two java classes to WSDL containing single service with multiple ports? Intention is to implement every WSDL service port within a different classes (County.class and City.class). I understand that it is not possible to map WSDL operations from different ports onto methods within a single java class.

<wsdl:service name="GeneralInfo">
<wsdl ort name="CountyPort" binding="gen:CountySOAPBinding">
<soap:address location="http://localhost:8080/Test1/Counties"/>
</wsdl ort>
<wsdl ort name="CityPort" binding="gen:CitySOAPBinding">
<soap:address location="http://localhost:8080/Test1/Cities"/>
</wsdl ort>
</wsdl:service>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JAX-WS 2.0 Web service with multiple ports
 
Similar Threads
Need Help with WSDL Port
Web Service Deployment problem
Need to put a SOAP address
dynamically change the soap:address
Axis 2 - MTOM Service problem