Topic
  • 14 replies
  • Latest Post - ‏2013-12-26T01:43:36Z by linnumberone
PingLu
PingLu
44 Posts

Pinned topic Verify Post Request Activity

‏2012-05-28T19:58:21Z |
Hi,

I just have a question about verifying Post Request Activity in Studio. For example, I have Orchestration A and Orchestration B. Orchestration A has a Post Request Activity to call Orchestration B. B has the Receive Request Activity as the starter activity. If I want to verify both orchestrations in Studio, which means run both in the Verify tab, is it possible to do that. It seems to me that I can't do that, because if I'm verifying B in studio, the only way to do that is through the HTTP Post Utility. But it can't be triggered by the Post Request Activity.
Updated on 2012-06-14T13:37:15Z at 2012-06-14T13:37:15Z by PingLu
  • SystemAdmin
    SystemAdmin
    1250 Posts

    Re: Verify Post Request Activity

    ‏2012-05-29T07:27:23Z  
    Hi,
    Yes you can call orchestration B from orchestration A. Your POST HTTP activity (orchestration A) should be calling your HTTP endpoint(orchestration B) with the correct URI (same as you do with the HTTP POST Utility).

    Regards,
    Magali
  • PingLu
    PingLu
    44 Posts

    Re: Verify Post Request Activity

    ‏2012-05-29T13:16:08Z  
    Hi,
    Yes you can call orchestration B from orchestration A. Your POST HTTP activity (orchestration A) should be calling your HTTP endpoint(orchestration B) with the correct URI (same as you do with the HTTP POST Utility).

    Regards,
    Magali
    Hi,

    Thanks for the reply. But the problem is if I'm running both orchestrations in studio, then the Receive Request Activity's HTTP Endpoint will only be receiving from localhost url as what will appear in HTTP Post Utility. For sure it can be done once both orchestrations are deployed and run from appliance. So my question is if it is possible to run the orchestrations in Studio environment, which means it is just a local environment. If my local machine doesn't have act as an HTTP server. I don't know if you understand what I mean.
  • SystemAdmin
    SystemAdmin
    1250 Posts

    Re: Verify Post Request Activity

    ‏2012-05-29T14:42:40Z  
    • PingLu
    • ‏2012-05-29T13:16:08Z
    Hi,

    Thanks for the reply. But the problem is if I'm running both orchestrations in studio, then the Receive Request Activity's HTTP Endpoint will only be receiving from localhost url as what will appear in HTTP Post Utility. For sure it can be done once both orchestrations are deployed and run from appliance. So my question is if it is possible to run the orchestrations in Studio environment, which means it is just a local environment. If my local machine doesn't have act as an HTTP server. I don't know if you understand what I mean.
    Within Studio, you can start both orchestrations and have orch A call orch B locally within Studio.
    Where is your problem exactly?

    Regards,
    Magali
  • PingLu
    PingLu
    44 Posts

    Re: Verify Post Request Activity

    ‏2012-05-29T16:05:33Z  
    Within Studio, you can start both orchestrations and have orch A call orch B locally within Studio.
    Where is your problem exactly?

    Regards,
    Magali
    My question is, if I'm running B in studio and I want to use the Post Request Activity in Orchestration A to invoke B, how do I do that. How do you configure the EndPoint in the Post Request Activity in A. I'm assuming you have to point it to the localhost as you will see in the Post Request Utility. But the problem with this is my local machine is not acting as an HTTP server.

    So I know we can trigger the Orchestration B in studio by using the Post Request Utility. I just don't know if we can trigger it from another orchestration in studio for testing purpose before publishing.

    I have no question about this scenario if both orchestrations are run in appliance environment, just curious about the local testing.
  • SystemAdmin
    SystemAdmin
    1250 Posts

    Re: Verify Post Request Activity

    ‏2012-05-30T09:42:17Z  
    • PingLu
    • ‏2012-05-29T16:05:33Z
    My question is, if I'm running B in studio and I want to use the Post Request Activity in Orchestration A to invoke B, how do I do that. How do you configure the EndPoint in the Post Request Activity in A. I'm assuming you have to point it to the localhost as you will see in the Post Request Utility. But the problem with this is my local machine is not acting as an HTTP server.

    So I know we can trigger the Orchestration B in studio by using the Post Request Utility. I just don't know if we can trigger it from another orchestration in studio for testing purpose before publishing.

    I have no question about this scenario if both orchestrations are run in appliance environment, just curious about the local testing.
    Your orch B should have an HTTP receive activity, linked to a local HTTP endpoint. So whenever you start orch B, the studio cast iron runtime starts an http listener for this orchestration. What do you mean by "my local machine is not acting as an HTTP server"? It is studio cast iron runtime which starts the required http listener.
    And your orch A Post Request activity should be pointing to the local HTTP endpoint used by orch B.

    I have done this many times. It should be working without any problem.

    Regards,
    Magali
  • PingLu
    PingLu
    44 Posts

    Re: Verify Post Request Activity

    ‏2012-05-30T13:17:41Z  
    Your orch B should have an HTTP receive activity, linked to a local HTTP endpoint. So whenever you start orch B, the studio cast iron runtime starts an http listener for this orchestration. What do you mean by "my local machine is not acting as an HTTP server"? It is studio cast iron runtime which starts the required http listener.
    And your orch A Post Request activity should be pointing to the local HTTP endpoint used by orch B.

    I have done this many times. It should be working without any problem.

    Regards,
    Magali
    Here is my question. when you create an HTTP Endpoint. If you want to configure it to be receiving request, I see only two options under the Location section, either pointing to https:// Integration Appliance : 80 / Setup in Activity or Configure for Websphere Cast Iron Live https://provide.castiron.com:443/env/<Environment>/Setup in Activity.

    Can you teach me how to point to a local HTTP server? Thank you.
  • SystemAdmin
    SystemAdmin
    1250 Posts

    Re: Verify Post Request Activity

    ‏2012-06-04T15:50:28Z  
    • PingLu
    • ‏2012-05-30T13:17:41Z
    Here is my question. when you create an HTTP Endpoint. If you want to configure it to be receiving request, I see only two options under the Location section, either pointing to https:// Integration Appliance : 80 / Setup in Activity or Configure for Websphere Cast Iron Live https://provide.castiron.com:443/env/<Environment>/Setup in Activity.

    Can you teach me how to point to a local HTTP server? Thank you.
    Are you using Studio in Cast Iron Live, or is it installed on a local desktop?
  • PingLu
    PingLu
    44 Posts

    Re: Verify Post Request Activity

    ‏2012-06-04T16:23:23Z  
    Are you using Studio in Cast Iron Live, or is it installed on a local desktop?
    It is installed in a local desktop.
  • SystemAdmin
    SystemAdmin
    1250 Posts

    Re: Verify Post Request Activity

    ‏2012-06-05T06:11:00Z  
    • PingLu
    • ‏2012-06-04T16:23:23Z
    It is installed in a local desktop.
    If you select "Integration Appliance Receives Request", it means that Cast Iron will receive the requests (so it means that cast iron will start the required HTTP listener for receiving these requests). Please refer to http://publib.boulder.ibm.com/infocenter/wci/v6r1m0/topic/com.ibm.websphere.cast_iron.doc/http_create_edit_endpoint.html.
    So in order to start an orchestration "locally" (i.e. where studio is installed), you need to select the above mentioned settings.

    Please let me know if it still does not work. This shouldn't be a problem.

    Regards,
    Magali
  • PingLu
    PingLu
    44 Posts

    Re: Verify Post Request Activity

    ‏2012-06-05T13:46:30Z  
    If you select "Integration Appliance Receives Request", it means that Cast Iron will receive the requests (so it means that cast iron will start the required HTTP listener for receiving these requests). Please refer to http://publib.boulder.ibm.com/infocenter/wci/v6r1m0/topic/com.ibm.websphere.cast_iron.doc/http_create_edit_endpoint.html.
    So in order to start an orchestration "locally" (i.e. where studio is installed), you need to select the above mentioned settings.

    Please let me know if it still does not work. This shouldn't be a problem.

    Regards,
    Magali
    Hi Magali,

    Thank you for your reply. Actually, I have read the link you post many times. I don't see where it mentions the solution.

    First of all, we need to choose "Integration Appliance Receive Request". Then, there are two options, one is "Configure for Websphere Cast Iron Live", the other is the "Integration Appliance". In this case, we choose "Integration Appliance".

    Now the problem is I'm running Studio in local and of course Studio can only be run in local. Assuming Studio can listen to the "Integration Appliance" request, how would you send the request in another orchestration (In order to send request in an HTTP EndPoint, you need to choose the "Remote Server" option, and even if you want to send request to the "Integration Appliance", you need to give the IP address of the "Integration Appliance" in the "Remote Server" section). So back to another question you mentioned earlier, you said CastIron can send request to any HTTP server including a local server, the only thing you need to do in Receiving Request Activity is to configure the HTTP EndPoint to listening to that IP Address.

    I have no problem in configuring sending request part which is the "Remote Server" part, as we can always specify an IP Address. The problem is the Receiving Request part, if I choose to listen to "Integration Appliance", then the HTTP Post Utility will be the only choice to trigger the orchestration. Like I said before, if the project is published to the Integration Appliance, and run from the WMC, another orchestration can use a Post Request Activity to the Integration Appiance by specifying the IP Address of the Integration Appliance to trigger this Receive Request Activity. But in Studio, I can't find a way to trigger this activity from another orchestration.

    Please let me know which section in the document can answer my question, as I really can't figure out by reading this document.
  • PingLu
    PingLu
    44 Posts

    Re: Verify Post Request Activity

    ‏2012-06-05T13:53:40Z  
    If you select "Integration Appliance Receives Request", it means that Cast Iron will receive the requests (so it means that cast iron will start the required HTTP listener for receiving these requests). Please refer to http://publib.boulder.ibm.com/infocenter/wci/v6r1m0/topic/com.ibm.websphere.cast_iron.doc/http_create_edit_endpoint.html.
    So in order to start an orchestration "locally" (i.e. where studio is installed), you need to select the above mentioned settings.

    Please let me know if it still does not work. This shouldn't be a problem.

    Regards,
    Magali
    If you choose "Integration Appiance Receive Request" and choose "Integration Appliance".

    the URL part is fixed, "https:// Integration Appliance : 80 /Setup in Activity"
    You can't specify the IP address. From my perspective, that's why in Studio we can only use the HTTP Post Utility to trigger this Receive Request Activity.
  • SystemAdmin
    SystemAdmin
    1250 Posts

    Re: Verify Post Request Activity

    ‏2012-06-13T15:00:55Z  
    • PingLu
    • ‏2012-06-05T13:53:40Z
    If you choose "Integration Appiance Receive Request" and choose "Integration Appliance".

    the URL part is fixed, "https:// Integration Appliance : 80 /Setup in Activity"
    You can't specify the IP address. From my perspective, that's why in Studio we can only use the HTTP Post Utility to trigger this Receive Request Activity.
    Define a first HTTP Endpoint (A) as Integration Appliance Receives Request (for the first orchestration to be able to receive a request) and define a second HTTP Endpoint (B) as remote as specify your workstation name as the hostname (same value that uses the HTTP Post Utility from Studio).
    And in the first orchestration, use the Post Request Activity to send the request to Endpoint B.

    From Studio, start the two orchestrations (using the Verify Tab) and send an HTTP request to the first one.

    Regards,
    Magali
  • PingLu
    PingLu
    44 Posts

    Re: Verify Post Request Activity

    ‏2012-06-14T13:37:15Z  
    Define a first HTTP Endpoint (A) as Integration Appliance Receives Request (for the first orchestration to be able to receive a request) and define a second HTTP Endpoint (B) as remote as specify your workstation name as the hostname (same value that uses the HTTP Post Utility from Studio).
    And in the first orchestration, use the Post Request Activity to send the request to Endpoint B.

    From Studio, start the two orchestrations (using the Verify Tab) and send an HTTP request to the first one.

    Regards,
    Magali
    Thanks, I got it.
  • linnumberone
    linnumberone
    2 Posts

    Re: Verify Post Request Activity

    ‏2013-12-26T01:43:36Z  
    • PingLu
    • ‏2012-06-14T13:37:15Z
    Thanks, I got it.

    Hello PingLu,

    I see your post and I have the same question: How to set receive request on localhost:80? Could I ask you how to solve it?

    The attachment is my cast iron project for this case.

    Many thanks!

    Attachments