Link to home
Start Free TrialLog in
Avatar of HItesh Rana
HItesh Rana

asked on

How do I get the port name?

I'm trying to set the SOAP Request to 1.2.  So with some research I see that you can accomplish this using the following code.

Service service = Service.create(servName);
service.addPort(portName, SOAPBinding.SOAP11HTTP_BINDING, ServerMisc.DOCLIT_CODEFIRST_URL)

Open in new window


Where do I get portName from?
ASKER CERTIFIED SOLUTION
Avatar of Pavel Celba
Pavel Celba
Flag of Czechia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of HItesh Rana
HItesh Rana

ASKER

I just to dig around the service generated file and I figured it out.  Thanks for replying back.  

I noticed you are a Java developer. Would you know the answer to this question?
https://www.experts-exchange.com/questions/29097441/CXF-Set-SOAP-Version-to-1-2.html
The answer is correct.