[jboss-user] [JBossWS] - Re: Jbossws Tutorial.

zeeshan.javeed do-not-reply at jboss.com
Fri Oct 19 09:57:00 EDT 2007


I was doing a mistake and it deployed succesfully. 
Now , I created consumer.java

  | import java.rmi.RemoteException;
  | 
  | import javax.xml.rpc.ServiceException;
  | import de.iplabs.*;
  | 
  | public class consumer
  | {
  |    public static void main(String args[])
  |    {
  |        
  |       HelloWorldImplService service = new HelloWorldImplService ();
  |       HelloWorldImpl user = service.getHelloWorldImplPort();
  |       System.out.println("Server said: " +user.getName());
  |       System.out.println("Server said: " +user.getAge());
  |    } 
  | }
  | 


and when i run it, i get this error .....

C:\Office\WebService\complex\Consumer>java consumer
Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: Canot get target bean instance
        at com.sun.xml.internal.ws.encoding.soap.ClientEncoderDecoder.toMessageInfo(Unknown Source)
        at com.sun.xml.internal.ws.encoding.soap.client.SOAPXMLDecoder.toMessageInfo(Unknown Source)
        at com.sun.xml.internal.ws.protocol.soap.client.SOAPMessageDispatcher.receive(Unknown Source)
        at com.sun.xml.internal.ws.protocol.soap.client.SOAPMessageDispatcher.doSend(Unknown Source)
        at com.sun.xml.internal.ws.protocol.soap.client.SOAPMessageDispatcher.send(Unknown Source)
        at com.sun.xml.internal.ws.encoding.soap.internal.DelegateBase.send(Unknown Source)
        at com.sun.xml.internal.ws.client.EndpointIFInvocationHandler.implementSEIMethod(Unknown Source)
        at com.sun.xml.internal.ws.client.EndpointIFInvocationHandler.invoke(Unknown Source)
        at $Proxy9.getName(Unknown Source)
        at consumer.main(consumer.java:13)



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

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



More information about the jboss-user mailing list