On Wednesday, December 07, 2011 12:06:55 PM uib wrote:
> I am using cxf to generate java code from a wsdl.
> The wsdl is protected by authentication so I could not produce the code
> directly from the wsdl.
> Instead I made A copy of the wsdl and put it on my local machine.
> When trying to create the service to make the web service call I need to use
> wsdl location on my local machine.
> For production I do not want to have to do this.
> I saw mentioned that You can set the wsdl URL as null.
> I tried this but got an error: javax.xml.ws.WebServiceException: Port not
> found.
> I have seen this problem mentioned by other people but I have not found an
> answer.
> Any help would be appreciated.

If you set the WSDL location to null, you likely need to call the 
service.addPort(...) methods with the appropriate QNames, endpoint URLs, 
etc... to set that information up prior to calling the getXYZPort(..) calls.
 

-- 
Daniel Kulp
[email protected] - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com

Reply via email to