Your fault example is invalid. The child elements of the <soapenv:Fault> element must be unqualified, and the element names do not use camelCaps. Meanwhile, the children of the <detail> element should be qualified. Also, the faultcode value must be a QName. It's strongly recommended (by WS-I Basic Profile) that you use only the fault codes defined in the SOAP 1.1 specification: Client, Server, VersionMismatch, and MustUnderstand. (See http://www.w3.org/TR/2000/NOTE-SOAP-20000508/#_Toc478383510). The response message should be:
<?xml version="1.0" encoding="UTF-8" ?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Body> <soapenv:Fault> <faultcode>soapenv:Client</faultcode> <faultstring>Unable to test</faultstring> <detail> <detailCode xmlns="some-uri">test111</detailCode> <userName xmlns="some-uri">test222</userName> </detail> </soapenv:Fault> </soapenv:Body> </soapenv:Envelope> Anne On 7/24/06, Mathias Hempel <[EMAIL PROTECTED]> wrote:
i have a problem i use the serviceclient for axis and i have a problem i become the detailcode but no faultstring and no faultcode from AxisFault where can i get the faultstring an the faultcode from this soap1.1 message response soap message: <?xml version="1.0" encoding="UTF-8" ?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Body> <soapenv:Fault> <soapenv:faultCode>test.test</soapenv:faultCode> <soapenv:faultString>Unable to test</soapenv:faultString> <soapenv:detail> <detailCode>test111</detailCode> <userName>test222</userName> </soapenv:detail> </soapenv:Fault> </soapenv:Body> </soapenv:Envelope> -- Mit freundlichen Gruessen Mathias Hempel eMail: [EMAIL PROTECTED] --------------------------------------------------------------------- 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]
