Ik moet een xml sturen naar een server en krijg hierbij foutmeldingen:
mijn script:
<?php
$request = '<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Header xmlns:NS1="urn:UCoSoapDispatcherBase" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<NS1:TAuthenticationHeader xsi:type="NS1:TAuthenticationHeader">
<UserName xsi:type="xsd:string">portal</UserName>
<Password xsi:type="xsd:string">portal</Password>
</NS1:TAuthenticationHeader>
</SOAP-ENV:Header>
<SOAP-ENV:Body SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<NS2:ExecuteRequest xmlns:NS2="urn:UCoSoapDispatcherCustomLink-ICustomLinkSoap">
<ARequest xsi:type="xsd:string">
<?xml version="1.0" encoding="windows-1252"?><EoCustomLinkRequestDateTime Type="TEoCustomLinkRequestDateTime"></EoCustomLinkRequestDateTime>
</ARequest>
</NS2:ExecuteRequest>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
';
// opzetten soap-object
$soapClient = new SoapClient('http://178.22.86.117:5562/wsdl/ICustomLinkSoap');
//bekijken van de beschikbare functies
$functions = $soapClient->__getFunctions ();
// resultaat: ExecuteRequest
// versturen het request met juiste actie
$soapClient->__doRequest($request, 'http://178.22.86.117:5562/soap/ICustomLinkSoap', 'ExecuteRequest', 1,0) ;
?>
// result:
1object(SoapClient)#1 (3) { ["_soap_version"]=> int(1) ["sdl"]=> resource(2) of type (Unknown) ["httpurl"]=> resource(4) of type (Unknown) } string(373) " SOAP-ENV:ServerNo invokable class registered that implements interface (Unknown) of (soap action/path) "ExecuteRequest""
Ik zou als ontword moeten krijgen:
<EoCustomLinkResponseDateTime Type="TEoCustomLinkResponseDateTime">
<DateTime>2016-03-01T11:16:14</DateTime>
</EoCustomLinkResponseDateTime>
Wat doe ik fout?
Eric
929 views