Quoting Glen Daniels <[EMAIL PROTECTED]>:
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:[EMAIL PROTECTED]
> > Sent: Saturday, December 31, 2005 3:24 AM
> > To: [email protected]
> > 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: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]