我试图接受这个,看起来像是简单的肥皂在php中调用:
$params->Context->ServiceAccountContext = $serviceAccountContext; //this is a string
$params->Query = "test";
// invoke service
$researchService = new SoapClient($serviceurl);
$response = $researchService->DoFunction($params)->DoFunctionResult;
但似乎我对SOAP :: Lite的体验有限,如下所示:
my $serviceAccountContext ='teststring';
my $soap = SOAP::Lite
-> uri($serviceurl)
-> proxy($serviceurl)
;
my $header = SOAP::Header->name("ServiceAccountContext" =>' $serviceAccountContext', "Query"=>'test');
my $method = SOAP::Data->name('DoFunction');
my $responset = $soap->call($method, $header);
返回404,这是不幸的,因为它在php中工作。我觉得我在这里遗漏了一些非常基本的东西。如果有人可以伸出援手,那将是惊人的。感谢。