Web Service sample in .NET
To run this sample, you should first set up a web service with the following C# code:
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Services;
namespace TrabsEsicnece { [WebService(Namespace = "http://trabsescience.org/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] [System.ComponentModel.ToolboxItem(false)] public class Service1 : System.Web.Services.WebService {
[WebMethod] public string Trabs(string input1, string input2) { Random rand = new Random(); int error = rand.Next(1, 100);
if (error > (100-Convert.ToInt32(input2))) { throw new Exception("Unknown error!"); }
int slp = Convert.ToInt32(input1);
System.Threading.Thread.Sleep(slp*1000); return "I've " + slp + " seconds"; } } }
Then you should add its WSDL sample into workflow and link:
- The output from first XML-Splitter goes into the WSDL service; - The output from WSDL service goes into the second XML splitter; - CalcTime should be executed after the WSDL service finishes.
Preview
Run
Run this Workflow in the Taverna Workbench...
Option 1:
Copy and paste this link into File > 'Open workflow location...'
http://myexperiment.org/workflows/4742/download?version=1
[ More Info ]
Workflow Components
Reviews (0)
Other workflows that use similar services (0)
There are no workflows in myExperiment that use similar services to this Workflow.
Comments (0)
No comments yet
Log in to make a comment