This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Web Services and the fly likes Axis2 - Java Webservice - How to change Service Name and Portname on WSDL? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Axis2 - Java Webservice - How to change Service Name and Portname on WSDL?" Watch "Axis2 - Java Webservice - How to change Service Name and Portname on WSDL?" New topic
Author

Axis2 - Java Webservice - How to change Service Name and Portname on WSDL?

Santhosh Kalisamy
Ranch Hand

Joined: Apr 15, 2008
Posts: 56
Friends,

I am working on Migration project. I have to upgrade my Java webservice from Axis to Axis2.

services.xml




Java Webservice Class:


WSDL File (Part)


I have used Java annotations to change port number (based few tutorials and forums). But it didn't update port name on WSDL.

Could anyone help me to update Port Name on WSDL please?


Because, my Java webservice client is VB6 and it is hard to update them...

For reference I have pasted the VB6 (snippet) code:



When I replace

with


It worked.

But, It is very hard to fix on client side. So, would like to fix on Server side byt changing the SERVICE NAME and PORT NAME on WSDL.

Please share your views.

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Axis2 - Java Webservice - How to change Service Name and Portname on WSDL?