Re: How to add soapactor to AXISFAULT using java

satyapriya sahoo <[email protected]>
Newsgroups gmane.text.xml.axis.user
Message-ID <CAEp0eHMmcPWqont523_OR70_jxK_VeUsYLSdNiaQOCDj5ZjdFw__43178.5365952694$1364830794$gmane$org@mail.gmail.com>
Any feed back on it


On Mon, Apr 1, 2013 at 9:08 PM, satyapriya sahoo <[email protected]
> wrote:

> Any feed back on it....................
>
>
> On Wed, Mar 20, 2013 at 1:00 PM, satyapriya sahoo <
> [email protected]> wrote:
>
>> I am using axis2 and I want to throw axis fault (SOAP1.1), my fault xml
>> should be
>>
>>
>>  <?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>
>> </soapenv:Envelope>
>>
>>
>>
>> Presently I am throwing the bellow exception,
>>
>>
>> *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
>> );*
>> * *
>>
>>
>> But while getting the error message in client code, in xml *<faultactor>*
>> *EMP-XML**</faultactor> *code is not coming,
>>
>>
>> *How to add the faultactor tag to my soap fault xml?*
>>
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.