[jboss-user] [JBossWS] - Cannot obtain wsdl service - Help

vaswin do-not-reply at jboss.com
Wed Jan 23 01:22:13 EST 2008


Hi All,

 http://www.regdeveloper.co.uk/2007/01/23/ejb_web_services/ 

When i tried the above example with my JBoss 4.2.2 with Jboss Eclipse, the below error is appeared. help me.

Starting Test Client
Creating a service Using: 
	http://127.0.0.1:8080/EchoService/EchoBean?wsdl 
	and {http://webservice.regdeveloper.co.uk/jaws}EchoService
Exception in thread "main" java.lang.IllegalArgumentException: Cannot obtain wsdl service: {http://webservice.regdeveloper.co.uk/jaws}EchoService
	at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCClientMetaDataBuilder.buildMetaDataInternal(JAXRPCClientMetaDataBuilder.java:172)
	at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCClientMetaDataBuilder.buildMetaData(JAXRPCClientMetaDataBuilder.java:134)
	at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCClientMetaDataBuilder.buildMetaData(JAXRPCClientMetaDataBuilder.java:86)
	at org.jboss.ws.core.jaxrpc.client.ServiceImpl.(ServiceImpl.java:111)
	at org.jboss.ws.core.jaxrpc.client.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:157)
	at org.jboss.ws.core.jaxrpc.client.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:128)
	at uk.co.regdeveloper.client.EchoClient.main(EchoClient.java:19)


 
  | 	System.out.println("Starting Test Client"); 
  | 		URL url = new URL("http://127.0.0.1:8080/EchoService/EchoBean?wsdl"); 
  | 		QName qname = new QName( "http://webservice.regdeveloper.co.uk/jaws", "EchoService"); 
  | 		System.out.println("Creating a service Using: \n\t" + url + " \n\tand " + qname); 
  | 		ServiceFactory factory = ServiceFactory.newInstance(); 
  | 		Service remote = factory.createService(url, qname); 
  | 		System.out.println("Obtaining reference to a proxy object"); 
  | 		Echo proxy = (Echo) remote.getPort(Echo.class); 
  | 		System.out.println("Accessed local proxy: " + proxy); 
  | 		String string = "John"; 
  | 		System.out.println("Sending: " + string); 
  | 		System.out.println("Receiving: " + proxy.echo("John")); } 

thx,
Srinivas


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122466#4122466

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122466



More information about the jboss-user mailing list