I am trying to call a web service enhancement 3.0 .net from a php client. I am getting this error.
[faultstring] => Header http://schemas.xmlsoap.org/ws/2004/08/addressing:Action for ultimate recipient is required but not present in the message.
$stunumber = 1149;
$tempvar = new SoapVar($stunumber, XSD_INT);
$ini = ini_set("soap.wsdl_cache_enabled", 0);
try {
$wsdl = "https://localhost/WebServicesWSE/AgWS.asmx?WSDL";
$xConverter = new SoapClient($wsdl,array('trace'=> true));
if ($xConverter) {
echo "<pre>"; print_r($xConverter); echo "</pre>";
print $xConverter->GetStudentByPK($stunumber);
} else {
echo ("data is problem");
}
} catch (SoapFault $e){
echo "<pre>"; print_r($e); echo "</pre>";
echo $xConverter->__getLastRequest()."<br />";
echo $xConverter->__getLastresponseHeaders();
}
Does anybody have an example on how to do it?
Thanks in advance,
Carlos
How to use a PHP client to call a WSE 3.0 .NET web service
Moderator: General Moderators
-
cchiarella
- Forum Newbie
- Posts: 1
- Joined: Fri Nov 14, 2008 12:15 pm