I need to add credentias for my soap server, but i don't have much experience in this. What i have to use for add the user and password?
<?php
require_once "vendor/econea/nusoap/src/nusoap.php";
$namespace = "testeSoap";
$server = new soap_server();
$server->configureWSDL("PinchesSOAP",$namespace);
$server->wsdl->schemaTargetNamespace = $namespace;
$server->wsdl->addComplexType(
'Cliente',
'complexType',
'struct',
'all',
'',
array(
'name' => array('name' => 'name', 'type'=>'xsd:string'),
)
);
$server->wsdl->addComplexType(
'response',
'complexType',
'struct',
'all',
'',
array(
'status' => array('name'=>'status', 'type'=>'xsd:string')
)
);
$server->register(
'notifyCustomerCreationRequest',
array('name' => 'tns:Cliente'),
array('name' => 'tns:response'),
$namespace,
false,
'rpc',
'encoded',
''
);
function notifyCustomerCreationRequest(){
return array(
"status" => "PEN"
);
}
$POST_DATA = file_get_contents("php://input");
$server->service($POST_DATA);
exit();
I will use the soapUI and need authenticate the info, but dont have any idea.