Consume ASMX WebService (.Net) from PHP

0

I have a WebService with ASMX extension made in .Net running in IIS on a server in my local network ip:x.x.x.10 . The URL of my WebService is link , requires a parameter codigo of type int and returns a DataTable . I want to invoke it from my development environment on my local OSX team. Either from PHP or Javascript.

How can I do that and also not have cross-domain problems?

    
asked by daniel2017- 03.01.2017 в 19:36
source

1 answer

0

Your webservices must expose an xml when adding to the '? WSDL' address, with that xml you generate a SoapClient object

$client = new SoapClient("http://testurl/webservice.asmx?WSDL");
$params = array('codigo' => $parametro);
$result = $client->miMetodo($params);
    
answered by 03.01.2017 / 20:32
source