Skip to Content

Asynchronous web service call from Redwood

Hi Everyone,

Build version M33.104.

We have a scenario where we have to call an asynchronous web service.

From the documentation i understand that the Redwood job will be in status Running until the web service completes.

How does the call back work from the web service to Redwood? How does Redwood know the asynchronous web service job completed?

From the documentation, the per-requisite is:

  • callback to UpdateJob1 web service at ServerAddress with JobId and FinalStatus as Out parameters
    • Should i create two out parameters for the web service job definition in Redwood? one JobId and another FinalStatus?
    • How do i get the URL to UpdateJob1 web-service, so that i can make my web service, call it, to update the Redwood job that called it?



Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Aug 12, 2014 at 05:21 AM

    Hi Nanda,

    Basically, you create a RedwoodScript job definition with the following code:


    //Set completion strategy to external



    It needs the following Out parameters:



    On the Published Web Services tab of the job definition editor dialog, you click Add and then Save, the job definition now has a web service. Go to Scripting > Published Web Services to inspect published web services, UpdateJob1 is available in Scripting > Built-In Web Services. You can retrieve the WSDL and the URL to the web services from there.

    Your web service now calls the web service for your RedwoodScript job definition (CPS uses basic authentication), then does its work, finally, when it has finished, it must update the job, it will call the UpdateJob1 web service with the job Id it got back when it initially called your RedwoodScript job and set the status to Completed.



    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.