SOAP functions can be called as methods of the SoapClient object. Maybe: $client->GetSequenceNo( $parameters ); -Shawn On Wed, Sep 25, 2013 at 9:17 AM, Alf Stockton <alf@xxxxxxxxxxxxxx> wrote: > In an attempt to interface with a webservice on a Windows 7 server I have > started writing the following:- > [code] > <?php > $strTerminalname = "CIS"; > $version = "1.2"; > $client = new SoapClient("http://192.168.0.** > 10/CISWebService/Mediamanager.**asmx?WSDL<http://192.168.0.10/CISWebService/Mediamanager.asmx?WSDL> > "); > var_dump($client->__**getFunctions()); > $result = $client->__doRequest("**GetSequenceNo",$**strTerminalname,$version, > $one_way = 0); > ?> > [/code] > and I execute it via > php php-soap-web-service.php > test.txt > on my Ubuntu 13.04 laptop using php version Zend Engine v2.4.0 > in return I get > array(20) { > [0]=> > string(59) "GetMediaListResponse GetMediaList(GetMediaList $parameters)" > [1]=> > string(68) "GetMediaListAllResponse GetMediaListAll(**GetMediaListAll > $parameters)" > [2]=> > string(59) "GetSoundListResponse GetSoundList(GetSoundList $parameters)" > [3]=> > string(77) "GetTerminalDataXMLResponse GetTerminalDataXML(**GetTerminalDataXML > $parameters)" > [4]=> > string(59) "GetRouterXmlResponse GetRouterXml(GetRouterXml $parameters)" > [5]=> > string(80) "GetTerminalSoundXMLResponse GetTerminalSoundXML(**GetTerminalSoundXML > $parameters)" > [6]=> > string(62) "SetSequenceNoResponse SetSequenceNo(SetSequenceNo > $parameters)" > [7]=> > string(50) "GetConfigResponse GetConfig(GetConfig $parameters)" > [8]=> > string(62) "GetSequenceNoResponse GetSequenceNo(GetSequenceNo > $parameters)" > [9]=> > string(95) "**UpdateClientMediaLogTimeRespon**se > UpdateClientMediaLogTime(**UpdateClientMediaLogTime $parameters)" > [10]=> > string(59) "GetMediaListResponse GetMediaList(GetMediaList $parameters)" > [11]=> > string(68) "GetMediaListAllResponse GetMediaListAll(**GetMediaListAll > $parameters)" > [12]=> > string(59) "GetSoundListResponse GetSoundList(GetSoundList $parameters)" > [13]=> > string(77) "GetTerminalDataXMLResponse GetTerminalDataXML(**GetTerminalDataXML > $parameters)" > [14]=> > string(59) "GetRouterXmlResponse GetRouterXml(GetRouterXml $parameters)" > [15]=> > string(80) "GetTerminalSoundXMLResponse GetTerminalSoundXML(**GetTerminalSoundXML > $parameters)" > [16]=> > string(62) "SetSequenceNoResponse SetSequenceNo(SetSequenceNo > $parameters)" > [17]=> > string(50) "GetConfigResponse GetConfig(GetConfig $parameters)" > [18]=> > string(62) "GetSequenceNoResponse GetSequenceNo(GetSequenceNo > $parameters)" > [19]=> > string(95) "**UpdateClientMediaLogTimeRespon**se > UpdateClientMediaLogTime(**UpdateClientMediaLogTime $parameters)" > } > > now this is all great but my question is how do I call each of these > functions with parameters. > The call I immediately need to make is to GetSequenceNo() which requires a > parameter of "CIS" in my current configuration. > How do I do this ? Obviously $client->__doRequest is not the way to go. > > -- > > Regards, > Alf Stockton www.stockton.co.za > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >