1. First Define Schema
a. Drag XML Schema from XML Tools palette
b. Double click to open schema
c. Change the root element name to what ever the application name
d. Select the content column and change it to elements
e. Create another element called request
f. Repeat the step d for request element
g. Create another element called reply
h. Repeat the step d for request element
i. Open a notepad create element string as follows element_child1?, element_child1? element_child3?
j. Copy these elements in the content model colum (make sure you placed between (–elements–) to either request or reply, and choose globally defined option, it should like as follows. (element_child1? , element_child2?)
k. Add what ever the elements that you require for reply, or choose from the earlier created list
2. Create Abstract WSDL
a. Drag WSDL activity from WSDL palette
b. Open that WSDL (double click), Add two messages to the list and name as operation_request and operation_reply
c. Select operation_request, add a element in part table
d. Choose element instead of type, Click on the schema lookup and choose request element that was created on Step1.
e. Select operation_reply, add a element in part table
f. Choose element instead of type, Click on the schema lookup and choose reply element that was created on Step1.
g. Apply and save
h. Drag port type to the wsdl
i. Open port type (double click) and add operation
j. select operation, add two elements on in the message table.
k. for input choose, request and for output choose reply
l. apply and save
3. Create a HTTP connection
a. Drag HTTP activity from HTTP palette
b. specify the host and port name
4. Create Webservice
a. Drag a process from process palette
b. Open the process, Drag Soap event source and Soap Send Reply from SOAP palette
c. Select Soap Event Source, In configuration Tab, Link the WSDL - Operation created in Step 2,Link HTTP connection created in step 3
d. Add any business logic in between soap event source and soap send reply
e. apply and save
5. Creating Concrete WSDL
a. This is the WSDL is being used by third party application or clients.
b. Select SOAP event source, click on WSDL source tab
c. Right click (mouse) on that body , and select save as and store the WSDL in file directory.
6. To Invoke by third party applications
a. Send this WSDL created in step5
7. To Test (In Designer)
a. Choose Import Resources or file in Project Tab,
b. Choose the format to file type, and click on lookup button to impost the WSDL created in Step 5,and import the WSDL to designer.
c. Create a process
d. Drag Soap Request And Reply from SOAP Palette
e. Choose the WSDL that imported in step b in this Step 7.
g. link all three activities, and test according to your need. (Make sure to pass the details in Soap Request Reply for the operation)
Note: Things to remember and learned
1. Common schema, one place to change all the elements
2. Make sure all host and port variables are part of global variables
3. Follow the naming conventions as per the company standards or guide lines.
Tuesday, March 16, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment