I've created a SOAP service client from a WSDL and am having trouble
getting fault/exception handling working. The specific error I'm
getting is: java.lang.IllegalArgumentException: prefix xsd is not bound
to a namespace (I can provide the full stacktrace if necessary.)
This occurs when parsing the SOAP fault response:
<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><soapenv:Fault><faultcode>ServerFaultCode</faultcode><faultstring/><detail><RuntimeFaultFault
xsi:type="vim25:InvalidArgument" xmlns="urn:pbm" xmlns:pbm="urn:pbm"
xmlns:vim25="urn:vim25"><vim25:faultMessage><vim25:key>com.vmware.pbm.pbmFault.locale</vim25:key><vim25:arg><vim25:key>summary</vim25:key><vim25:value
xsi:type="xsd:string">Invalid or null error
message(vmodl.fault.InvalidArgument) {
faultCause = null,
faultMessage = null,
invalidProperty = resourceType
}</vim25:value></vim25:arg></vim25:faultMessage><vim25:invalidProperty>resourceType</vim25:invalidProperty></RuntimeFaultFault></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>
I'm using version 3.1.1. I saw that
https://issues.apache.org/jira/browse/CXF-6319 was fixed in 3.1.0 and
up, but the problem I'm running into appears to be similar. Can anyone
suggest how to troubleshoot?
Thanks,
Andrew