Skip to Content
0
Former Member
Jul 21, 2016 at 02:42 PM

Set credentials in Web Service

1441 Views

Hello Community i have a problem when I call a Web Service, the reason is that always when I call the service always request me to set credentials.

I want to know if someone know how to set credentials since the code.

For example in PHP when I call a web service I do something like this:

$wsdl="http://localhost/wservice/ZWS_CALC.XML?WSDL";

$client=new nusoap_client($wsdl,'wsdl');

$client->setCredentials('Usr', 'Pass', 'basic');

$param=array('INum1'=>'80', 'INum2' => '19', 'IOpci' => 'M');

$resultado = $client->call('ZwsEjecWsdl', $param);

I need to know which could the reemplece of this piece of code in ABAP:

$client->setCredentials('Usr', 'Pass', 'basic');

Thanks in advance.

Regards.