Sorry for my next email,
but i didn´t understand it yet.
I have declared in my WSDL file a sopa:fault tag with the including the
binding, message and element/type
now axis2 creates me an MyException object.
------------------------------------------------------------
class MyException extends org.apache.axis2.databinding.ADBBean{
public static final javax.xml.namespace.QName MY_QNAME =
new javax.xml.namespace.QName(
"http://www.example.org/muller/", "MyException", "ns1");
private java.lang.String localFault;
public java.lang.String getFault() {
return localFault;
}
public void setFault(java.lang.String param) {
this.localFault = param;
}
public javax.xml.stream.XMLStreamReader getPullParser(
javax.xml.namespace.QName qName) {
..... }
public static MyException
parse(javax.xml.stream.XMLStreamReader reader)
throws java.lang.Exception {
...... }
Can i use this object now in the details? and if, can you explain me how
please?!
sorry that i have to ask this, but i cannot find any way to implement
your solution :-(
can you please post the whole example code
Thanks
Jürgen
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Create SOAPFaultDetail element and fill your stuff there.
>
> Then put that as a property of the message context before throwing an
> AxisFault.
>
> messageCtxt.setProperty(SOAP12Constants.SOAP_FAULT_DETAIL_LOCAL_NAME,
> soapFaultDetail);
>
> Axis2 will do the rest for you.
>
> - -- Chinthaka
>
> Juergen Umbrich wrote:
>
>>
>> Ok thanks you for the informations can you explain me please how i
>> can add something to the detail header, ?
>>
>> Jürgen
>>
>
>> If I understand the question correct, you want to rename faultcode
>> in to MyException.
>>
>> Unfortunately that can not be done according to the SOAP
>> specification. Both SOAP 1.1 and SOAP 1.2 specifications have
>> defined the strcture of a fault. Maximum you can do is, you can add
>> something under the detail header of the SOAP fault.
>>
>> -- Chinthaka
>>
>> Juergen Umbrich wrote:
>>
>>
>>> Hi
>>
>>> i have scanned the mailinglist for a example or explanation of
>>> the fault handling.But i didn´t find any solution for my problem.
>>>
>>
>>> So what i didn´t understand is, how i can create a own exception
>>> and what i have to implement to get my exception as the standart
>>> exception.
>>
>>> is it possible to get instead of the the <faultcode>-tag my
>>> <MyException> Message </MyException>-tag? Of which class should i
>>> extende my exception class ? perhaps i have to change the
>>> messagereciever class?
>>
>>> i would be lucky if someone has an example for me.
>>
>>> thanks in advance Jürgen
>>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.2 (MingW32)
>
> iD8DBQFD3kytjON2uBzUhh8RAiXNAJ9qaOH7ORnVeOipNtwNHib6/MZ3LgCeJ9Ux
> pzo+sQaRRuEEMnuD6XAoS/M=
> =eYfQ
> -----END PGP SIGNATURE-----
>