Hi Akila
Seems you are not extracting the cookie correct.

Try this code

        var cookieString = request.getResponseHeader("Set-Cookie");
        var cookie = cookieString.split(";")[0];


Thanks & Regards
Danushka Fernando
Software Engineer
WSO2 inc. http://wso2.com/
Mobile : +94716332729


On Thu, Jul 31, 2014 at 11:40 AM, Akila Nimantha [IT/EKO/LOITS] <
[email protected]> wrote:

>  Hi Danushka,
>
>
>
> FYI I did some changes in jaggery code, inserting  session.put() and
> session.get() to pass cockie value through functions I created.  Now it
> shows canot invoke service error(previous “HTTPHeader” problem solved).
>
> Please check attached files for both AS log and BPS log and jaggery
> application code.
>
>
>
> Regards,
>
> Akila
>
>
>
> *From:* Danushka Fernando [mailto:[email protected]]
> *Sent:* Wednesday, July 30, 2014 6:55 PM
> *To:* Akila Nimantha [IT/EKO/LOITS]
> *Cc:* [email protected]
> *Subject:* Re: [Dev] canot invoke bps service using jaggery app
>
>
>
> Hi Akila
>
> I guess error you attached is the error in the AS / tomcat side. Can you
> attach the BPS side error logs as well.
>
>
>   Thanks & Regards
>
> Danushka Fernando
>
> Software Engineer
>
> WSO2 inc. http://wso2.com/
>
> Mobile : +94716332729
>
>
>
> On Wed, Jul 30, 2014 at 6:02 PM, Akila Nimantha [IT/EKO/LOITS] <
> [email protected]> wrote:
>
>   Hi all,
>
>
>
> I am trying to invoke human task adminService using jaggery application.
> What I did was, first created a function called “invokeWebService” to
> create “login” to bps server. Its working fine and give the result as
> “true”. Next I get the JSESSIONID using same function. Afterthat I created
> another function called “viewAllTasks” to invoke “simpleQuery” adminService
> with “ALL_TASKS” parameter. I passes previously created JSESSIONID as a
> header with name “Cookie”. But its not working in jaggery application and
> give errors.
>
> *Please check attached jaggery application page and error log I prompted*.
>
> (*these “login” and “simpleQuery” services and all services works
> properly in SoapUI*)
>
>
>
> Regards,
>
> Akila
>
> This message (including any attachments) is intended only for the use of
> the individual or entity to which it is addressed and may contain
> information that is non-public, proprietary, privileged, confidential, and
> exempt from disclosure under applicable law or may constitute as attorney
> work product. If you are not the intended recipient, you are hereby
> notified that any use, dissemination, distribution, or copying of this
> communication is strictly prohibited. If you have received this
> communication in error, notify us immediately by telephone and (i) destroy
> this message if a facsimile or (ii) delete this message immediately if this
> is an electronic communication. Thank you.
>
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
>
> This message (including any attachments) is intended only for the use of
> the individual or entity to which it is addressed and may contain
> information that is non-public, proprietary, privileged, confidential, and
> exempt from disclosure under applicable law or may constitute as attorney
> work product. If you are not the intended recipient, you are hereby
> notified that any use, dissemination, distribution, or copying of this
> communication is strictly prohibited. If you have received this
> communication in error, notify us immediately by telephone and (i) destroy
> this message if a facsimile or (ii) delete this message immediately if this
> is an electronic communication. Thank you.
>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to