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 

Reply via email to