如何创建将响应消息转换为肥皂故障消息的xslt。请参考“附加的输入”以及我期望的输出,xslt转换后的xslt结果。
这是我的xml
<?xml version='1.0' encoding='utf-8'?>
<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
<soapenv:Body>
<soapenv:Fault>
<soapenv:Code>
<soapenv:Value>soapenv:Sender</soapenv:Value>
</soapenv:Code>
<soapenv:Reason>
<soapenv:Text xml:lang="en">User NotFound</soapenv:Text>
</soapenv:Reason>
<soapenv:Detail>
<axis2ns4:sdpFault xmlns:axis2ns4="http://testservice.com/uat/testservice">
<axis2ns4:resultNameCode>2</axis2ns4:resultNameCode>
<axis2ns4:resultNameType>GH</axis2ns4:resultNameType>
</axis2ns4:sdpFault>
</soapenv:Detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
预期结果
设置此消息<soapenv:Text xml:lang="en">User NotFound</soapenv:Text>
<ns1:UserDescription>User NotFound</ns1:UserDescription>