Hi Dagger, you can simply provide the location of the (local) wsdl to the constructor of your soap-client, just as is shown in the manual at php.net http://www.php.net/manual/en/soapclient.soapclient.php
you can place the wsdl in your projects data-folder and refer to it with sfConfig::get('sf_data_dir').DIRECTORY_SEPARATOR.'wsdl'.DIRECTORY_SEPARATOR.'wsdl- file.name' Regards Leon On 9 feb, 11:09, dagger <strategy.vs.lo...@gmail.com> wrote: > Hi All, > > I don't know if this group is the right place to discuss this - but > since i'm using symfony and i need help with php soap extension i am > posting for your views. > > Goal: connecting with a SOAP based webservice and performing multiple > operations > > First i searched for a symfony plugin to do the above, i came across 1 > - ckWebServicePlugin - but when i studied its read me - i found that > its mainly focused on creating a Web service server (Soap server) and > not a client - there is a client also ckTestSoapClient - but that is > only for testing purposes - i guess. > > So i continued my search and stumbled on PHP SOAP extension - > soapclient. > > there is but very little information available on the net with regards > to how to use soapclient when the webservice i want to connect to does > not publish its WSDL file ... > > so i only have an endpoint url, I have the wsdl file the webservice is > based on. but i don't know how to specify the path to wsdl file while > creating the soapclient. > > the code example is given below > > $client = new SoapClient(NULL, > array( > "location" => "http://endpoint.url.com", > "uri" => "urn:the_name_space", > "style" => SOAP_RPC, > "use" => SOAP_ENCODED > )); > > after initialization i try to access one of the operations provided by > the webservice > > print($client->__call( > /* SOAP Method Name */ > "exampleOperation", // this is as it is mentioned in > the wsdl file > /* Parameters */ > array( > new SoapParam( > /* Parameter Value */ > "test application", > /* Parameter Name */ > "applicationTitle" > ), new SoapParam( > /* Parameter Value */ > "test vendor", > /* Parameter Name */ > "vendor" > )), > /* Options */ > array( > /* SOAP Method Namespace */ > "uri" => "urn:the_name_space", > /* SOAPAction HTTP Header for SOAP Method */ > "soapaction" => > "urn:the_name_space#exampleOperation" > ))); > > but i keep getting the error - Not Found > > This is my first time working with SOAP so any help will be highly > appreciated. > > thanks -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.