Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ini_set('soap.wsdl_cache_enabled', 0);
- $url = 'https://wcftesting.mwfc.com.uy/MWFCService.svc?wsdl';
- $user = 'webInst';
- $pass = 'mwfc2018';
- $namespace = 'http://schemas.datacontract.org/2004/07/SociosWFC.Models';
- $pet = new stdClass();
- $pet->Ci = '42222213';
- $pet->User = $user;
- $pet->Pass = $pass;
- $auth = array();
- $auth['user'] = $user;
- $auth['pass'] = $pass;
- $auth['ci'] = '42222213';
- $options = array(
- 'location'=>$url,
- 'uri'=>$url,
- 'soap_version'=>SOAP_1_2,
- 'trace'=>1,
- 'encoding'=>'UTF-8',
- 'exceptions'=>1
- );
- $client = new SoapClient($url, $options);
- //echo "<pre>";
- //var_dump($client->__getFunctions());
- //echo "<hr>";
- //var_dump($client->__getTypes());
- //echo "<hr>";
- //$header = new SoapHeader($namespace,'requestHeader',$auth,false);
- //$client->__setSoapHeaders($header);
- try{
- //$salida = $client->__soapCall('GetDetalleSocio',array('GetDetalleSocio'=>$pet));
- $salida = $client->GetDetalleSocio('GetDetalleSocio',array($pet));
- //$salida2 = $salida->GetDetalleSocioResult;
- print_r($salida->return);
- //$salida->GetResult->Version
- }
- catch(Exception $e){
- echo $e->getMessage();
- }
- die;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement