php SoapClient fails when passed a wsdl with relative path schemas

前端 未结 1 1029
野性不改
野性不改 2021-01-25 00:09

I have the following issue:

The instantiation of my SoapClient object fails when I pass it a wsdl that imports a schema using relative paths. (I believe this is the case

1条回答
  •  生来不讨喜
    2021-01-25 00:39

    Just as I had suspected.

    The relative path to the schema means that the SoapClient when parsing the wsdl, will try to access the schema files using the proxy as reference, like so:

    http://myproxy/schema1.xsd
    

    Since I do not have the xsd files, this will cause the SoapClient to throw an error.

    The solution to this problem then is to eliminate the proxy, so that relative paths to external resources are not affected. The sollution can be found here:

    Extending php SoapClient for siteminder authentication

    0 讨论(0)
提交回复
热议问题