SOAPClient PHP webservice error

I have a webserivce and just a simple thing to call a webservice in SOAP Client

i.e.

$ client = new SoapClient ("http://test.unistream.com/wcflib/service.svc?WSDL");

It says

SOAP-ERROR: WSDL analysis: "IWebService_GetCountries_InputMessage" is already defined

web service

http://test.unistream.com/wcflib/service.svc?WSDL

Thank.

+3
source share
3 answers

This may be due to the same problem: https://bugs.php.net/bug.php?id=43868 ,

you can also find a possible solution here PHP SoapClient: problems with a distributed WSDL file

(maybe a duplicate ...)

, : http://www.codingforums.com/showthread.php?t=181338

+1

, "IWebService_GetCountries_InputMessage" WSDL. , WSDL, . , WSDL, , .

+1

: Soap PHP (5.3.10), .NET:

  • wsdl "Foo.wsdl" PHP
  • "Foo.wsdl" "Bar.wsdl"
  • " Bar.wsdl" "Foo.wsdl"
  • PHP SOAP-ERROR: WSDL: bla bla

To avoid this, I simply use the standard .net function , which is unacceptable for the case , and I call the first wsdl in lower case ("foo.wsdl") instead of the original (Foo.wsdl). This worked because now foo.wsdl imports Bar.wsdl and Bar.wsdl imports Foo.wsdl, and with curious things that I can’t explain, PHP likes it.

0
source

Source: https://habr.com/ru/post/1766855/


All Articles