Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error ARERR [149] A user name must be supplied in the control record #185

Open
afieyudha opened this issue Sep 28, 2020 · 2 comments
Open

Comments

@afieyudha
Copy link

i have issue when use header with auth and get this messages ARERR [149] A user name must be supplied in the control record

this is my code

` $namespace = 'http://remedy-sit.telkomsigma.co.id/arsys/WSDL/public/10.210.30.74/HPD_IncidentInterface_WS?WSDL';
$name = 'AuthenticationInfo';
$data = array('userName' => 'xxx',
'password' => 'xxx',
'authentication'=>'',
'locale'=>'',
'timeZone'=>'');

    $this->soapWrapper->add('CreateSession', function ($service) use ($namespace,$name,$data){
    $service
        ->wsdl('http://remedy-sit.telkomsigma.co.id/arsys/WSDL/public/10.210.30.74/HPD_IncidentInterface_WS?WSDL')
        ->trace(true)
        ->header($namespace,$name,$data)
        ->options([
            'user_agent' => 'PHPSoapClient',      // Add this as options
            'userName' => 'xxx',
            'password' => 'xxx'
        ]);
    });
    
    $response = $this->soapWrapper->call('CreateSession.HelpDesk_Query_Service', [
    'Incident_Number' => 'INC000000012600',
    ]);

    var_dump($response);

    exit;`
@pythondev1
Copy link

Your options are wrong, remove them and it should work.
see https://www.php.net/manual/en/soapclient.soapclient.php

@mosharaf13
Copy link

@afieyudha did you solve this problem ? facing it now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants