Kristina T.
2018-05-11 17:28:06 UTC
Iâm working on a project where weâve we are programming against an API defined via  a VMware wsdl file.  When we encountered an error conditions we throw exceptions using classes defined from the axis2 WSDL code generation process.Â
VMware has indicated that those exceptions when viewed in SOAP should have the following  formatÂ
<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>Â
Currently our soapenv has Receiver set instead of SenderÂ
<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">Â Â <soapenv:Header/>Â Â <soapenv:Body>Â Â Â Â <soapenv:Fault>Â Â Â Â Â Â <soapenv:Code>Â Â Â Â Â Â Â Â <soapenv:Value>soapenv:Receiver</soapenv:Value>Â Â Â Â Â Â </soapenv:Code>Â Â Â Â Â Â <soapenv:Reason>,
I canât find anything in the generated APIâs that allows me to change this and Iâve been unable to find anything in my searches that indicates how I might fix this. Â I see nothing in the service.xml file or any other configuration file that allows me to flip this setting. Â Â
Iâm hoping someone can point me to some documentation or provide a suggestion on how I might   achieve thisÂ
Background Info:Â
Axis Releases being Used: Axis 1.6.7 The following flags were used to generate the code we use from the wsdl file "WSDL2Java -uri ${wsdl.uri} -s -ss -sd -ssi -ap -ns2p http:../data.xsd -l java -p ${package} -d adb -wv 1.1 -uw -g -f -o ${build.dir}/wsdl/java/server"
Thank you in advance for any assistance you can provide,Â
Kristina
VMware has indicated that those exceptions when viewed in SOAP should have the following  formatÂ
<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>Â
Currently our soapenv has Receiver set instead of SenderÂ
<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">Â Â <soapenv:Header/>Â Â <soapenv:Body>Â Â Â Â <soapenv:Fault>Â Â Â Â Â Â <soapenv:Code>Â Â Â Â Â Â Â Â <soapenv:Value>soapenv:Receiver</soapenv:Value>Â Â Â Â Â Â </soapenv:Code>Â Â Â Â Â Â <soapenv:Reason>,
I canât find anything in the generated APIâs that allows me to change this and Iâve been unable to find anything in my searches that indicates how I might fix this. Â I see nothing in the service.xml file or any other configuration file that allows me to flip this setting. Â Â
Iâm hoping someone can point me to some documentation or provide a suggestion on how I might   achieve thisÂ
Background Info:Â
Axis Releases being Used: Axis 1.6.7 The following flags were used to generate the code we use from the wsdl file "WSDL2Java -uri ${wsdl.uri} -s -ss -sd -ssi -ap -ns2p http:../data.xsd -l java -p ${package} -d adb -wv 1.1 -uw -g -f -o ${build.dir}/wsdl/java/server"
Thank you in advance for any assistance you can provide,Â
Kristina