Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHP webservice SOAPClient error

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

i.e.

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

It says

SOAP-ERROR: Parsing WSDL: 'IWebService_GetCountries_InputMessage' already defined

web service is

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

Thanks.

like image 957
David Avatar asked Aug 26 '26 10:08

David


2 Answers

It might be related, or same issue with this: https://bugs.php.net/bug.php?id=43868 ,

also you may find a possible solution here PHP SoapClient: Problems with Distributed WSDL File

(maybe duplicate...)

later edit, here another link: http://www.codingforums.com/showthread.php?t=181338

like image 147
adrian7 Avatar answered Aug 28 '26 01:08

adrian7


The issue is that the 'IWebService_GetCountries_InputMessage' type is defined more than once in that WSDL. This is not an error with your code, but with the WSDL you are attempting to consume. You should talk to whoever wrote the WSDL to see if they can recreate it and fix the issue.

like image 45
benjy Avatar answered Aug 27 '26 23:08

benjy



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!