Guest User

Untitled

a guest
Jan 24th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. <?php
  2.  
  3. ini_set( 'soap.wsdl_cache_enabled', 0 );
  4.  
  5. $wsdl = 'HPD_IncidentRelationshipInterface_WS.wsdl';
  6. $parameters = array( 'Qualification' => '\'Assigned Group\' = "SOPORTE" AND \'Status\' = "Pending"', 'startRecord' => '0', 'maxLimit' => '10' );
  7.  
  8. $client = new SoapClient( $wsdl, array( 'trace' => 1 ) );
  9.  
  10. $auth = new stdClass();
  11. $auth->userName = 'USUARIO';
  12. $auth->password = 'CONTRASEÑA';
  13.  
  14. $authvalues = new SoapVar( $auth, SOAP_ENC_OBJECT );
  15.  
  16. $header = new SoapHeader( 'REMEDY', 'AuthenticationInfo', $authvalues, false );
  17.  
  18. $client->__setSoapHeaders( array( $header ) );
  19.  
  20. $data = $client->GetListOfRelatedIncidents( $parameters );
  21.  
  22. var_dump( $data->getListValues );
Add Comment
Please, Sign In to add comment