How to send SOAP request using PHP?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
101 views
Need to send this request via PHP and get a response. How to do it? Soap client on server.
http://pegast.com/pegasys/api/IPackageSearchService/GetOptionsXXXDirectionsfalsefalsefalse

Here is what happened:
$client = new SoapClient("https://api-ext-test.pegasys.pegast.com/PackageSearch.svc?singleWsdl"); $header = new SoapHeader('http://pegast.com/pegasys/api/IPackageSearchService/GetOptions', 'ApiKeyXX','EN'); $client->__setSoapHeaders($header); print($client->GetOptions(PackageSearchOptionsRequest,array("Groups"=>"Directions")));


Still the 500 error, does not work. what's wrong?(
by | 101 views

1 Answer

0 like 0 dislike
by

Related questions

0 like 0 dislike
2 answers
0 like 0 dislike
1 answer
asked May 21, 2019 by heavig2
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
2 answers
asked Mar 24, 2019 by Pavel_Osipov
110,608 questions
257,187 answers
0 comments
40,796 users