cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shafi_WS <shafiuddin...@sonata-software.com>
Subject Error When Generating Client
Date Wed, 13 Mar 2013 12:51:17 GMT
Hi, 

I am getting the error when generating Client. 

following  is the code, appreciate if anyone help quickly. 

	URL url = new URL("http://bg4ws0099:7047/DynamicsNAV/WS/Services");

		JaxWsDynamicClientFactory clientFactory = JaxWsDynamicClientFactory
				.newInstance();

		Client client = clientFactory.createClient(url.toExternalForm());


Exception: 


Exception in thread "main"
org.apache.cxf.service.factory.ServiceConstructionException: Failed to
create service.
	at
org.apache.cxf.wsdl11.WSDLServiceFactory.<init>(WSDLServiceFactory.java:86)
	at
org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:292)
	at
org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:235)
	at
org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:228)
	at
org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:183)
	at com.test.DemoWebService.main(DemoWebService.java:21)
Caused by: javax.wsdl.WSDLException: WSDLException: faultCode=PARSER_ERROR:
Problem parsing 'http://bg4ws0099:7047/DynamicsNAV/WS/Services'.:
java.io.IOException: Server returned HTTP response code: 401 for URL:
http://bg4ws0099:7047/DynamicsNAV/WS/Services
	at com.ibm.wsdl.xml.WSDLReaderImpl.getDocument(Unknown Source)
	at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
	at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
	at
org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.java:262)
	at
org.apache.cxf.wsdl11.WSDLManagerImpl.getDefinition(WSDLManagerImpl.java:205)
	at
org.apache.cxf.wsdl11.WSDLServiceFactory.<init>(WSDLServiceFactory.java:84)
	... 5 more
Caused by: java.io.IOException: Server returned HTTP response code: 401 for
URL: http://bg4ws0099:7047/DynamicsNAV/WS/Services





--
View this message in context: http://cxf.547215.n5.nabble.com/Error-When-Generating-Client-tp5724501.html
Sent from the cxf-dev mailing list archive at Nabble.com.

Mime
View raw message