As Raffael said, you better use the SoapClient offered by PHP SOAP EXTENSION.
To check your service:
first declare an array of options where you can say, for example, do not interrupt wsdl (it is useful in the development environment)
$options = array( 'soap_version'=>SOAP_1_1, 'exceptions'=>true, 'trace'=>1, 'cache_wsdl'=>WSDL_CACHE_NONE );
then create a client starting with wsdl, which you have:
$client = new SoapClient("http://service.nnerhverv.dk/nne-ws/3.1/NNE?WSDL", $options);
call the searchTargetGroup method as follows. Here you need to build the questionTargetGroup parameter correctly, this should work:
//build the parameters for the SearchTargetGroup $questionTargetGroup = array ( "companyFormCodeList" => "10,60,80", "companyStatus" => "0", "hasPhoneOnly" => "true" ); $response = $client->searchTargetGroup($questionTargetGroup, 500, 1, 1, "passstring");
finally print the answer you received from the service
print_r($response);
source share