You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Dheeraj Agrawal <dh...@gmail.com> on 2006/05/03 04:08:10 UTC

Error in WEBSERVICE DESIGN

HI

In my webservice i am creating an instance of a new class...
My service class is as follows

public SendMessage{

  public boolean sendMsgToYahoo(string,string){

   SendMessage yahoo = new SendMessage();

   Listener mylist = new Listener(yahoo);


 }
}

class Listener{
   public Listener(SendMessage){}
}

All this in one file SendMessage.jws

When i invole it service from client it gives me error as 
Exception in thread "main" AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode: 
 faultString: java.lang.reflect.InvocationTargetException
 faultActor: 
 faultNode: 

I did some prints in the service and came to know that the service is
hanging at the instance where I am creating  new object of SendMessage and
Listener.

Cant i make a new instance of the same class (Serivce class) in the
service..
IS there any workaround for this...
I want to call LISTENER class ....

How can i go about this

Thanks
Dheeraj

--
View this message in context: http://www.nabble.com/Error-in-WEBSERVICE-DESIGN-t1547194.html#a4203095
Sent from the Axis - User forum at Nabble.com.