BeSimple / BeSimpleSoapBundle

NOT MAINTAINED - [READ-ONLY] Subtree split of the BeSimpleSoap -- clone into BeSimple/SoapBundle/ (master at BeSimple/BeSimpleSoap). Please submit issues on BeSimple/BeSimpleSoap repository.
http://besim.pl/SoapBundle/
61 stars 67 forks source link

BeSimpleClient - Tutorial #56

Closed carlossg00 closed 10 years ago

carlossg00 commented 11 years ago

Hi, Excellent work.

I am using nusoap lib as soap client. client call is as simple as:

$client = new \nusoap_client('http://wsdl_string"',true);
$param = array('param1' => value1,
        'param2' => value2,
    );

    $result = $soapClient->call('WebServiceMethodName',array(
        'in0' => $param,
    ));

I tried to figure out how to perform the same call with BeSimpleBundle, but I am too new to SOAP. Could you provide a simple example where those simple steps are invoved with BeSimple\SoapClient\SoapClientBuilder?

So far i have the bundle properly installed and "configured":

    $soapClientBuilder = $this->get('besimple.soap.client.builder.myname');
    $soapClient = $soapClientBuilder->build();
    $sopaClient->?????

Thanks in advanced.

floriansemm commented 11 years ago

Try this:

$soapClientBuilder = $this->get('besimple.soap.client.builder.myname'); $soapClient = $soapClientBuilder->build(); $sopaClient->WebServiceMethodName();

carlossg00 commented 11 years ago

Excellent!! Works great!!

Does client support cache? I see in Configuration.php that it can be specified for the client, can you provide config example for the client?

be_simple_soap:
    clients:
        myname:
            wsdl: my_wsdl_string
            cache: disk

Is it righ? do i need to specifiy the cache section?

Thanks!!

floriansemm commented 11 years ago

I think disk is the default option and it uses the php-tep dir. So you need not to specify the cache section.

You can setup the tmp dir in your php.ini.

francisbesset commented 10 years ago

Documentation added: https://github.com/BeSimple/BeSimpleSoap/commit/29170576c282f64afac1b68e5d04bb37bc6bb78d Visible online: http://besim.pl/SoapBundle/soapclient/configuration.html