How to add faultactor in the soapfault

oreb

New Member
I am using axis2 and I want to throw axis fault (SOAP1.1), my fault xml should be \[code\]<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body> <soapenv:Fault xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> <faultcode>SOAP-ENV:Server</faultcode> <faultstring>Unable to process the request because EMPID is null.</faultstring> <faultactor>EMP-XML</faultactor> <detail > <faultDetails>EMPID not populated</faultDetails> </detail> </soapenv:Fault></soapenv:Body>\[/code\]Presently I am throwing the bellow exception,\[code\]String str = "<faultDetails>EMPID not populated</faultDetails>";OMElement faultDetail= AXIOMUtil.stringToOM(str);throw new AxisFault(new QName(null,"Server","SOAP-ENV"), " Unable to process the request because EMPID is null."," EMP-XML ",null, faultDetail);\[/code\]But while getting the error message in client code, in xml \[code\]<faultactor>EMP-XML</faultactor>\[/code\] code is not coming, How to add the faultactor tag to my soap fault xml.
 
Back
Top