Using external SOAP service in Workflow service

Posted by whirlwin on Stack Overflow See other posts from Stack Overflow or by whirlwin
Published on 2012-11-12T16:58:39Z Indexed on 2012/11/12 16:59 UTC
Read the original article Hit count: 180

Filed under:
|
|

I am using the .NET 4 framework and have made a WCF Workflow Service Application.

I want to use a SOAP web service (.NET 3.5) I have running in another instance of VS. The only method that is exposed is the following:

[WebMethod]
public string Reverse(string input)
{
    char[] chars = input.ToCharArray();
    Array.Reverse(chars);
    return new string(chars);
}

I have used the following steps to add the service in my Workflow:

  1. Add Service Reference
  2. Provided the WSDL (the operation shows in the Operations box as expected)
  3. Clicked OK
  4. Build the solution to ensure that the service shows in my toolbox
  5. Drag the service from the toolbox into the workflow

However, when I look at the properties of the service in the workflow, there is no way to specify the input argument or where to store the result of the invocation of the service.

I only have the option of specifying some obscure parameters such as Body:InArgument<ReverseRequestBody and outBody:OutArgument<ReverseResponseBody (none of which are strings).

Here is a screenshot depicting the properties of the service in the workflow:

enter image description here

My question is therefore:

Is it possible at all to use the SOAP service by specifying a string as the input argument (like it is meant to be used), and also assign the result to a workflow variable?

© Stack Overflow or respective owner

Related posts about wcf

Related posts about soap