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.
peachy 270003B7VC76 Posts
Re: Invoke Local Web Service2013-10-03T13:44:19ZThis is the accepted answer. This is the accepted answer.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).