SoapFault(Element) constructor retrieves code but loses namespace
-----------------------------------------------------------------
Key: MUSE-268
URL: https://issues.apache.org/jira/browse/MUSE-268
Project: Muse
Issue Type: Bug
Environment: Muse 2.2.0
Reporter: Vinh Nguyen
Assignee: Dan Jemiolo
Priority: Minor
I'm doing the following in SimpleResourceRouter:
public Element invoke(Element soapBody)
{
// Check the error code.
Element response = super.invoke(soapBody);
QName name = XmlUtils.getElementQName(response);
if (name.equals(SoapConstants.FAULT_QNAME))
{
SoapFault fault = new SoapFault(response);
QName faultCode = fault.getCode();
System.out.println("Fault code: " + faultCode.getPrefix() + ", " +
faultCode.getLocalPart() + ", " + faultCode.getNamespaceURI());
if (faultCode.equals(SoapConstants.SENDER_QNAME))
{
System.out.println("Fault is a user error!");
}
}
return response;
}
But I noticed that the faultCode's namespace is lost. So when I try to compare
it to SoapConstants.SENDER_QNAME, it always returns false. So it is difficult
to check if the fault is a user error, or an actual system (Muse) error.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]