"returning a php array from a php soapserver" Code Answer

4

i used this wsdl generator to create description file.

returning array of strings is something what my web service does, here's part of wsdl:

<wsdl:types>
<xsd:schema targetnamespace="http://schema.example.com">
  <xsd:complextype name="stringarray">
    <xsd:complexcontent>
      <xsd:restriction base="soap-enc:array">
        <xsd:attribute ref="soap-enc:arraytype" wsdl:arraytype="xsd:string[]" />
      </xsd:restriction>
    </xsd:complexcontent>
  </xsd:complextype>
</xsd:schema>

</wsdl:types>
<message name="notifyrequest">
  <part name="parameters" type="xsd:string" />
</message>
<message name="notifyresponse">
  <part name="notifyreturn" type="tns:stringarray" />
</message>

then api function notify is defined:

<wsdl:operation name="notify">
  <wsdl:input message="tns:notifyrequest" />
  <wsdl:output message="tns:notifyresponse" />
</wsdl:operation>
By fusionlightcat on January 11 2022

Answers related to “returning a php array from a php soapserver”

Only authorized users can answer the Search term. Please sign in first, or register a free account.