Creating a sample flow service at webmethods developer
Jan 17, 2012 13:59 0 Comments Development Raj Kumar

TASK: create a sample service

OS: Windows

Platform: webMethods 7.1.2


 

Overview 

Create a sample serviceat webMethods Developer and execute or run the service 

1)      In the Acme package, in the acme.PurchaseOrder.wrok folder, create a flow service called customWriteToLog.

      2)  Add two string inputs to the new service, called inStr1 and inStr2.  


alt

 

3) Add three service steps to the new service, as follows:

 

alt

 

 

a) pub.flow:debugLog  

b) pub.string:toUpper

c) pub.string:concat

 

4) Using the shift up and shift down arrow icons, re-order the services to the following:

a) pub.string:concat

b) pub.string:toUpper

c) pub.flow:debugLog 

 

 

alt

 

 

5) Map the data flow of your input through the services, as follows:

a) pub.string:concat

i) inStr1 should map to inString1

ii) inStr2 should map to inString2 

 

 

alt

 

 

Drop the unused variables in every step, so not to carry these variables in the pipeline.

b) pub.string:toUpper

i) value should map to inString 

 

 

alt

 

 

c) pub.flow:debugLog

i) value should map to message 

 

alt

 

6) Save and run the service. Provide string inputs of your choice.  

alt

 

 

7) Check the results pane of the Developer, and then confirm that the service executed successfully by checking the server log. 

Execute the service using key F7 or through the Run button in Developer

 

alt

 

8) Unlock your service, as you are now done with your development on this service.

alt

 

alt

 

 

Prev Next
About the Author
Topic Replies (0)
Leave a Reply
Guest User

You might also like

Not sure what course is right for you?

Choose the right course for you.
Get the help of our experts and find a course that best suits your needs.


Let`s Connect