Topic
3 replies Latest Post - ‏2013-10-03T13:44:19Z by peachy
JKKC_Terri_Ilaria
JKKC_Terri_Ilaria
3 Posts
ACCEPTED ANSWER

Pinned topic Invoke Local Web Service

‏2011-10-28T18:48:47Z |
Hi,
I have created a Project in Cast Iron Studio that has an orchestration with a Provide Service starter activity. The Web Service endpoint for the Provide Service activity is set to use the "Local" transport method.
The service contains common functionality that I want all of my projects to be able to consume. I don't want the services exposed to the Internet, which is why I've used the Local transport.

I know that an "Invoke Service" activity can invoke a local web service, but thus far, it seems that the local service must be an orchestration within the Project that is consuming it. Not what I want...

Is there a way to invoke a local service that is not in the same project?
I have downloaded the WSDL from the project that provides local web services. I then added the WSDL to a different project and I'm using that for the Web Service endpoint. Everything seems to look ok, but I get errors when an attempt to invoke the service is made. I have the Invoke service set to "Remote" because "Local" only allows me to select an orchestration within the same project (at least from what I can tell).
I have tried setting the location of the Invoke Service activity to http://localhost/ServiceName, but that is returning an error of "Connection refused".
I have also tried setting the location of the Invoke Service activity to local:///ServiceName, but the appliance prefixes the location with http:// when it attempts to consume the service and I end up with a location of http://local:///ServiceName, which is obviously no good.

I've come to the conclusion that a "Local" Provide Service activity can only be consumed locally from within the same project. I wanted to pose the question here before I take that as a final answer.

Any help would be appreciated.
Updated on 2011-11-01T02:25:44Z at 2011-11-01T02:25:44Z by GregWilhelm
  • GregWilhelm
    GregWilhelm
    19 Posts
    ACCEPTED ANSWER

    Re: Invoke Local Web Service

    ‏2011-11-01T02:25:44Z  in response to JKKC_Terri_Ilaria
    Try using your computer's hostname instead of localhost in the HTTP URL. For some reason Studio doesn't like localhost on Windows 7.
    • JuanCarlosRojas
      JuanCarlosRojas
      1 Post
      ACCEPTED ANSWER

      Re: Invoke Local Web Service

      ‏2013-09-30T14:26:57Z  in response to GregWilhelm

      Hi,

      Was this solved? two years later I am having the same issue.

       

      Thanks

  • peachy
    peachy
    54 Posts
    ACCEPTED ANSWER

    Re: Invoke Local Web Service

    ‏2013-10-03T13:44:19Z  in response to JKKC_Terri_Ilaria
    I haven't tried this in a few years but this is what used to work:
    To invoke a web service that uses local transport from an orchestration in another project (as the provided service), add the WSDL to the project that contains the orchestration that will invoke the web service. Then, create a Web "invoke" Endpoint that uses Remote "Invoke Location"; browse for the WSDL.
    Use the Location value to create a Configuration Property. The resulting string will begin with http://.
    When the project is published, use the WMC to edit the Configuration Property and modify the value so that it matches the value shown on the original provide endpoint (e.g., local:///ErrorLogger).