Hello All,

I am trying to make a web service call using SOAP and PHP to create a new
community. I keep on receiving unauthorized exception. Please let me know
what I forgot in my code here.
How is it possible to send authentication headers in a SOAP call?

I would appreciate if some one could post some code here to make things
clear.


Thanks

CODE



$sso_wsdl_url_getemail = "
http://XXXXXXXX:8080/rpc/soap/CommunityService?wsdl";;<http://xxxxxxxx:8080/rpc/soap/CommunityService?wsdl%22;>
$client = new SoapClient($sso_wsdl_url_getemail, array(
'login' => "XXXXXX",
'password'=> "XXXXX",
'proxy_host' => "XXXXXXX",
'proxy_port' => 3128,
'exceptions' => 0,
'encoding' => "UTF-8",
'connection_timeout' => 60
));

$input = array();

$input['name'] = "Just A Small Test";
$input['disp'] = "Just Check it";
$input['desc'] = "Check it";

$result = $client->createCommunity($input);

print_r($result);

Reply via email to