[Xml-compile] returning a fault in XML::Compile::SOAP::HTTPDaemon

Pete Groff pfg104 at gmail.com
Tue Mar 2 18:37:44 GMT 2010


I have the fault below defined in my WSDL:

      <xsd:element name=3D"createIdentity_fault">
          <xsd:complexType>
              <xsd:sequence>
                  <xsd:element name=3D"createIdentity_fault_code"
                      type=3D"xsd:string" maxOccurs=3D"1" minOccurs=3D"1">
                  </xsd:element>
                  <xsd:element name=3D"createIdentity_fault_details"
                      type=3D"xsd:string" maxOccurs=3D"1" minOccurs=3D"1">
                  </xsd:element>
              </xsd:sequence>
          </xsd:complexType>
      </xsd:element>

  <wsdl:message name=3D"createIdentity_faultMsg">
      <wsdl:part name=3D"fault"
element=3D"tns:createIdentity_fault"></wsdl:part>
  </wsdl:message>

 <wsdl:portType name=3D"eSP">
    <wsdl:operation name=3D"createIdentity">
      <wsdl:input message=3D"tns:createIdentityRequest"/>
      <wsdl:output message=3D"tns:createIdentityResponse"/>
      <wsdl:fault name=3D"createIdentity_faultMsg"
message=3D"tns:createIdentity_faultMsg"></wsdl:fault>
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:binding name=3D"eSPSOAP" type=3D"tns:eSP">
    <soap:binding style=3D"document" transport=3D"
http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name=3D"createIdentity">
      <wsdl:input>
        <soap:body use=3D"literal"/>
      </wsdl:input>
      <wsdl:output>
        <soap:body use=3D"literal"/>
      </wsdl:output>
      <wsdl:fault name=3D"createIdentity_faultMsg">
          <soap:fault name=3D"createIdentity_faultMsg"
use=3D"literal"></soap:fault>
      </wsdl:fault>
    </wsdl:operation>

How do I return createIdentity_faultMsg?  What should the hash look like or
am I limited to returning faults like this?

return { Fault =3D>
   { faultcode   =3D> pack_type(SOAP11ENV, 'Server.invalidResponse')
   , faultstring =3D> 'I dont know man'
   , faultactor  =3D> 'database_exists'
   }    };


Thanks!
Pete
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/xml-compile/attachments/20100302/4a=
698829/attachment.htm


More information about the Xml-compile mailing list