For the client-side (not the service-side), the WSDL that you use to generate your JAX-WS objects needs to have the correct https:// URL in the wsdl:service section. You'll see that URL hardcoded in the service object generated by the wsdl2java tool, and then getPort() will give you that correct URL.

Articles #1 and #11 may be of help for you: http://www.jroller.com/gmazza/entry/blog_article_index, and if you can please update to a recent version of CXF.

Glen

On 07/19/2012 07:38 PM, nhrraj wrote:
Hi All,

I am using CXF 2.3.11 to generate client stub classes for my app.

On runtime, I use the https url to call the service. But getport() is
returning a http url. Because of this the web service call is failing.

TestAppPortType port = new TestAppService(new
URL(gStrWSDL)).getTestAppPort();

gStrWSDL has my https wsdl url.

Can someone please help me?

thanks.

--
View this message in context: 
http://cxf.547215.n5.nabble.com/getport-returning-http-url-instead-of-https-tp5711336.html
Sent from the cxf-user mailing list archive at Nabble.com.


--
Glen Mazza
Talend Community Coders
coders.talend.com
blog: www.jroller.com/gmazza

Reply via email to