Wei Hao
Wei Hao

Reputation: 2856

Expose process definition as a web service in tibco designer

I'm trying to expose a process definition in TIBCO BW Designer 5.7 as a web service, but I've run into some snags. For some reason, I cannot start the Generate Web Service Wizard, because my process does not appear in the "Add More Processes to interface" list.

I've been searching online but to not much avail. What I've gathered is that I need to reference external schemas (using XML Element Reference) in my input (Start) and output (End), which I have done so. So what could be possibly wrong?

Do I need to include any Process Variables or Partners under the Process Definition?

I'm very new to Designer so would appreciate some help here!

Upvotes: 2

Views: 6116

Answers (2)

TecnoOfertas Web
TecnoOfertas Web

Reputation: 21

the most common mistake in this case is that you don't use a XML schema for the input and output, make sure that you have one for every process you have in your project and then you can continue with your web service generation.

Kind Regards

Upvotes: 2

erikxiv
erikxiv

Reputation: 4075

To expose a BusinessWorks process as a web service you need to use a WSDL message as input and output (and optionally error output). If you already have a process that is used by other processes and do not want to change input/output schema you could create another process that essentially wraps your initial process but expose input/output as WSDL messages. My suggestion would be to follow these approximate steps

  1. Create a XML schema containing the input and output formats
  2. Create a WSDL resource
    1. Add two Message resources (input/output), reference the above XML schema
    2. Add a PortType resource
      1. Add an Operation resource referencing the two Message resources as input and output
  3. Set input/output of the process to expose to the WSDL messages defined above
  4. Create a Service resource
    1. Add the WSDL operation to the Service interface
    2. Set the implementation of the operation to your process definition
    3. Add a SOAP endpoint with a HTTP transport
  5. Add the Service resource to your Process Archive

For more details on the parameters that can be used, see the BusinessWorks Palette Reference documentation.

Upvotes: 3

Related Questions