我正在PHP的网络服务客户中工作。 每项申请都必须提供许可证钥匙,如17a18c4d-63ab-4eab-778f-20a67e1fe83a。
The problem is that according to the specification, the license is not a string but a Guid and the examples are in C, eg.
ListAllBookSubjects(Guid licenseKey, LanguageCodeTypeEnum language)
如果我尝试使用PHP的这个刀子(log和许可证不是实际的):
$url= "http://service.qa.pubhub.dk/MediaService1_4.asmx?WSDL";
$config = array( "login" => "[email protected]", "password" => "1234", "trace" => 1,"exceptions" => 0);
$objSoapClient = new SoapClient($url,$config);
print_r($objSoapClient->ListAllBookSubjects( {17a18c4d-63ab-4eab-778f-20a67e1fe83a} , DAN ));
我收到以下错误答复:
[message:protected] => System.Web.Services.Protocols.SoapException: Invalid LicenseKey {00000000-0000-0000-0000-000000000000}
我也尝试了。 很显然,指导原则是错误的,但我如何在项目组合中代表C Guid?
I 找到答案,见。