nusoap and local file WSDL with includes

  • Anonymous - 2011-02-17


    I'm trying to develop a SOAP client using nusoap and local file WSDL which includes another WSDL and XSD files. Looks like nusoap defines wrongly path to the includes. It looks like :///path/to/the/wsdl instead of /path/to/the/wsdl. Also it looks like it doesn't parse correctly included XSD. Because it sends XML with called method name but without any passed parameters.

    Any idea how to fix it?

    Thanks in advance.


  • Scott Nichol

    Scott Nichol - 2011-02-17

    NuSOAP does not handle the case where you pass a file path to the nusoap_server constructor and that WSDL file has includes.  The contents of the WSDL file are simply passed through to the client when the ?wsdl is used in a GET.

                    header("Content-Type: text/xml\r\n");
    $pos = strpos($this->externalWSDLURL, "file://");
    if ($pos === false) {
    $filename = $this->externalWSDLURL;
    } else {
    $filename = substr($this->externalWSDLURL, $pos + 7);
                    $fp = fopen($this->externalWSDLURL, 'r');

    As to whether it correctly parses the XSD, you'd have to post debug information or something more specific.


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks