Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- ini_set( 'soap.wsdl_cache_enabled', 0 );
- $wsdl = 'HPD_IncidentRelationshipInterface_WS.wsdl';
- $parameters = array( 'Qualification' => '\'Assigned Group\' = "SOPORTE" AND \'Status\' = "Pending"', 'startRecord' => '0', 'maxLimit' => '10' );
- $client = new SoapClient( $wsdl, array( 'trace' => 1 ) );
- $auth = new stdClass();
- $auth->userName = 'USUARIO';
- $auth->password = 'CONTRASEÑA';
- $authvalues = new SoapVar( $auth, SOAP_ENC_OBJECT );
- $header = new SoapHeader( 'REMEDY', 'AuthenticationInfo', $authvalues, false );
- $client->__setSoapHeaders( array( $header ) );
- $data = $client->GetListOfRelatedIncidents( $parameters );
- var_dump( $data->getListValues );
Add Comment
Please, Sign In to add comment