ws-kandula-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dasarath Weeratunge <dweer...@purdue.edu>
Subject RE: Sending one-way soap faults in Axis
Date Wed, 04 Jan 2006 09:29:08 GMT
Quoting Glen Daniels <gdaniels@sonicsoftware.com>:

Thanks glen. It helped.

However, there is no method "call.invokeOneWay(env);", the invokeOneWay method 
takes an array of objects as arguments.

Also, unless you set the QName of the  faultElement to 

faultElement.setQName(SOAPConstants.SOAP11_CONSTANTS.getFaultQName());

(in both 1.3 and 1.4-SNAPSHOT with fault.getAsEnvelope()) throws...

AxisFault
 faultCode: {http://xml.apache.org/axis/}Call.invoke
 faultSubcode: 
 faultString: Cannot invoke Call with null namespace URI for method null
 faultActor: 
 faultNode: 
 faultDetail: 
	{http://xml.apache.org/axis/}stackTrace:Cannot invoke Call with null 
namespace URI for method null
	at org.apache.axis.client.Call.invoke(Call.java:2704)

I have another Q, :)

the next problem is OK, now we can throw a one way fault: what is the best way 
to dispatch an incoming one-way fault to a service in Axis?

thanks again.
--dasarath


> Hi Dasarath:
> 
> Just took a quick look at this.  Right now you can do something like
> this:
> 
> Call call = new Call("url");
> AxisFault fault = new AxisFault(code, faultString, actor, details);
> SOAPEnvelope env = new SOAPEnvelope();
> SOAPFault faultElement = new SOAPFault(fault);
> env.addBodyElement(faultElement);
> call.invokeOneWay(env); 
> 
> ...but I just added a convenience method (in latest HEAD) which will
> return an AxisFault as a SOAPEnvelope:
> 
> Call call = new Call("url");
> AxisFault fault = new AxisFault(code, faultString, actor, details);
> call.invokeOneWay(fault.getAsEnvelope());
> 
> Hope that helps,
> --Glen
> 
> > -----Original Message-----
> > From: Dasarath Weeratunge [mailto:dweeratu@purdue.edu] 
> > Sent: Saturday, December 31, 2005 3:24 AM
> > To: kandula-dev@ws.apache.org
> > Subject: Sending one-way soap faults in Axis
> > 
> > Does anyone know how to do the above? A quick code snippet 
> > would be a great 
> > help.
> > 
> > thanks,
> > --dasarath
> > 
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: kandula-dev-unsubscribe@ws.apache.org
> > For additional commands, e-mail: kandula-dev-help@ws.apache.org
> > 
> > 
> > 
> 
> 




---------------------------------------------------------------------
To unsubscribe, e-mail: kandula-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: kandula-dev-help@ws.apache.org


Mime
View raw message