hi
i exposed my ejb components as webservices.It generated WSDl doc correctly.I checked my
webmethods workd properly using service explorer utility provided by myeclipse5.5.It works
fine.
But when client try to call a web sevice,it throws a exception,
this is my client app code,
try {
String namespace="http://wb1-329:8080";
String service="CustomerRegistration";
String wsdl="http://localhost:8080/CustomerRegistrationEJB?wsdl";
//ctx=new InitialContext();
//customerSessionRemote
remote=(customerSessionRemote)ctx.lookup("customer/remote");
//String user=remote.validateUser(getUserName(), getPassword());
try {
URL defurl = new URL(wsdl);
System.out.println(defurl);
ServiceFactory serviceFactory=ServiceFactory.newInstance();
System.out.println("service fact");
Service remoteService=serviceFactory.createService(defurl, new
QName(namespace,service));
System.out.println(remoteService);
customerSessionRemote
invoker=(customerSessionRemote)remoteService.getPort(customerSessionRemote.class);
System.out.println(invoker);
String user=invoker.validateUser(getUserName(), getPassword());
this is error i am getting,
Caused by: java.lang.IllegalArgumentException: Cannot obtain wsdl service:
{http://wb1-329:8080}CustomerRegistration
at
org.jboss.ws.deployment.JSR109ClientMetaDataBuilder.buildMetaDataInternal(JSR109ClientMetaDataBuilder.java:164)
at
org.jboss.ws.deployment.JSR109ClientMetaDataBuilder.buildMetaData(JSR109ClientMetaDataBuilder.java:126)
at
org.jboss.ws.deployment.JSR109ClientMetaDataBuilder.buildMetaData(JSR109ClientMetaDataBuilder.java:82)
at org.jboss.ws.jaxrpc.ServiceImpl.(ServiceImpl.java:96)
at org.jboss.ws.jaxrpc.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:157)
at org.jboss.ws.jaxrpc.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:128)
at client.UserBean.loginUser(UserBean.java:90)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:126)
please anybody help me in resolving this...
thanks in advance
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4056868#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...