Category : soap

I successfully get response from soap webservice using php curl. I would like to know how can I parse the curl response so that I got each value separately in other to save into database. my codes: $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "http://xxxxxx/WSAutorizaciones/WSAutorizacionLaboratorio.asmx?WSDL", CURLOPT_RETURNTRANSFER => true, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_POSTFIELDS => ‘<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ..

Read more

Make a request in PHP to a SOAP web service can be done with soap php class, I have this example with that web service :http://webservices.oorsprong.org/websamples.countryinfo/CountryInfoService.wso?WSDL $request_param = array(‘sCountryISOCode’ => ‘ES’); $responce_param = null; try { $responce_param = $client->CountryCurrency($request_param); print_r($responce_param->CountryCurrencyResult->sName); } catch (Exception $e) { echo "<h2>Exception Error!</h2>"; echo $e->getMessage(); } the SOAP is like ..

Read more

In Nusoap, if I want to define array of struct, I can do it like this: (message is a struct) $server->wsdl->addComplexType( ‘messageArray’, ‘complexType’, ‘array’, ”, ‘SOAP-ENC:Array’, [], // $elements [ [ ‘ref’ => ‘SOAP-ENC:arrayType’, ‘wsdl:arrayType’ => ‘tns:message[]’, ], ], // $attrs ‘tns:message’ ); As shown in the code comment, if I swap the position of ..

Read more

estoy trabajando con SOAP para poder leer y enviar parametros pero estoy teniendo unos inconvenientes. Les comento. primero tengo esta funcion function authenticate() { $parametros = array(); $parametros[‘username’] = "testingUserAPI"; $parametros[‘password’] = "testingUserAPI"; $ws = new SoapClient(‘wsdl’); $au = $ws->Authenticate($parametros); $bearerToken = $au->AuthenticateResult->data->bearerToken; $ns = ‘http://tempuri.org/’; $headerbody = array( ‘BearerToken’ => $bearerToken ); $header = ..

Read more