Click to See Complete Forum and Search --> : PHP: Specific problem with WSDL and call to web service


goatslayer
December 3rd, 2010, 10:58 AM
Hi, Anyone know if this will ever actually work?

I'm trying to access the getSignatureFileVersionV1 service defined in the following WSDL: http://www.nationalarchives.gov.uk/pronom/Services/Contract/PRONOM.wsdl

I get an unable to parse url error in PHP.

My working code is:


<?php

$wsdl_url = "http://www.nationalarchives.gov.uk/pronom/Services/Contract/PRONOM.wsdl";
$client = new SoapClient($wsdl_url);

var_dump($client->__getFunctions());
var_dump($client->__getTypes());

$param = array('getSignatureFileVersionV1'=>'');

?>



A call such as the following however just fails:

$client->getSignatureFileVersionV1($param);

I can do this easier in CURL but would like to understand how to get this to work.