Highlighted

SOAP Endpoint - Unauthorized Errror

Aditya_S_

23-01-2009

I am trying to invoke a workflow through a SOAP endpoint, using PHP, LiveCycle ES.



Are there any settings I need ....... to make the SOAP endpoint receive

WSDL connection requests ?



Thanks in advance.



The error I get is



SoapFault Object

(

[message:protected] =>

[string:private] =>

[code:protected] => 0

[file:protected] => /home/rob/scripts/soap_example.php

[line:protected] => 21

[trace:private] => Array

(

[0] => Array

(

[function] => __call

[class] => SoapClient

[type] => ->

[args] => Array

(

[0] => invoke_Async

[1] => Array

(

[0] => Array

(

[entityid] => 6752

)



)



)



)



[1] => Array

(

[file] => /home/rob/scripts/soap_example.php

[line] => 21

[function] => invoke_Async

[class] => SoapClient

[type] => ->

[args] => Array

(

[0] => Array

(

[entityid] => 6752

)



)



)



)



[faultcode] => soapenv:Server.Unauthorized

[detail] => stdClass Object

(

[hostname] => VM-ADOBE02

)



)

Replies

Highlighted

Aditya_S_

23-01-2009

I found a solution. The "Require callers to authenticate" in the security tab of the Endpoint has "yes" selected. This means that the Endpoint would require the script to authenticate.



Upon changing the selection to "No" it worked successfully.



I would prefer using the authenticate method to invoke the process. I need to find out what parameters I need to pass into the PHP SoapClient for the authentication to be accepted.



Thanks

Aditya
Highlighted

HowardTreisman

21-02-2009

I believe LiveCycle uses standard WS-Security security. Try invoking the service with SOAPUI testing tool, which provides this capability.

howard

http://www.avoka.com
Highlighted

Ryan_M__Jacobs

06-03-2009

Aditya,



You may also authenticate by using HTTP Basic Authentication.



Ryan M. Jacobs

rjacobs@cardinalsolutions.com

Cardinal Solutions Group
Highlighted

Aditya_S_

09-03-2009

Ryan and Howard thanks for replying.



Ryan - Can you elaborate a little more. I am new to this part of LiveCycle.



Aditya
Highlighted

Ryan_M__Jacobs

10-03-2009

With HTTP Basic Authentication, you can pass the credentials in the HTTP Request rather than in the SOAP Header, which is what you would do if using WS-Security. I am not advocating HTTP Basic Authentication over WS-Security, just pointing out the option.



I am not familiar with the PHP libraries you are using to setup your soap client, so I can't give you exact code to help you here. However, it should be in the area where you are configuring your request to the service. You will pass the username/password that corresponds to your authorized LiveCycle ES user.



Good luck,



Ryan M. Jacobs

Cardinal Solutions Group

rjacobs@cardinalsolutions.com