Вы находитесь на странице: 1из 5

SIEBEL OUTBOUND WEBSERVICE

Requirement:
Siebel needs to get the latest Currency Conversion Rates, example INR vs USD.
Solution:
We will use a third party Web Service to do this conversion and get the converted currency rate in Siebel.
WSDL: http://www.webservicex.net/CurrencyConvertor.asmx?wsdl
Implementation:
1. Import the given WSDL file given above in Siebel Tools using the wizard: New Object -> EAI -> Web Services. If you are not
able to import the WSDL directly from web url, just save the WSDL as a local xml file: CurrencyConvertor.asmx.xml on your
desktop and then try to import it using the wizard.

Wsdl Import Wizard.


2. This will generate two file as below Runtime file: CurrencyConvertor.asmx
Log file: CurrencyConvertor.asmx.log
Runtime file: This file contains the Outbound Web Service parameters which can be imported in Outbound Web Service Screen
Log File: This file contains the logs generated in case the WSDL import in Siebel Tools fails. If there are warnings, they should
not create any issues, and can be ignored.
3. Importing WSDL in Siebel Tools will also create a new Business Service and a few new Integration Objects to be created. In
this case new
Proxy Business Service: CurrencyConvertorSoap
Integration Objects: ConversionRate <This is Input Integration Object> and ConversionRateResponse <This is Output
Integration Object>

Proxy BS After Import of WSDL.

Integration Objects Created After WSDL Import


4. You will see that the Base Object Type property of these IOs is XML, which suggests that these are External Integration
Objects.
5. Compile your new Business Service and Integration Objects and Launch Siebel application from your dedicated client.
6. Navigate to Sitemap -> Outbound Web Service screen. Click on Import button and browse for the Runtime
file[ CurrencyConvertor.asmx ] generated by the wizard earlier.
7. This will create a proxy Outbound Web Service in your Outbound Web Services Screen by. In the Operations applet, you will
see the proxy Business Service Method Name.

Outbound Web Service Screen


8. Click on the Clear Cache button at the top applet. This completes your Web Service Creation. Now, Re-launch your dedicated
client for testing.

Invoking Outbound Web Service


You can invoke the proxy Business Service from anywhere in application, and that will in turn call the Outbound Web Service
and bring the response in the Siebel Message based on the Output Integration Object : ConversionRateResponse
1. Lets Create Request Message which is needed to Invoke the Web Service.
Navigate to Business Service Simulator, Create a new record in the top list applet and give the business service as: PRM ANI
Utility Service and method as CreateEmptyPropSet.
Or Alternatively: Import this file using Load From File option. Load it in Top List Applet
In the middle, Inputs list applet, create a new record and add the below values:
Type: PropertySet
PropertyName Mvg Click it and create a new record as below
Property Name: Hierarchy Name
Value: ConversionRate <This Integration Object is same as which is there in the Input Arguments of the BS:
CurrencyConvertorSoap>
Or Alternatively: Import this file using Load From File option. Load it in Middle List Applet
3. Click the RUN button at top in Business Service Simulator applet and you will see the output message at the bottom most
applet.
4. Click on Save To File in the bottom most applet to save the PropertySets to a xml file. This file [WebService-Inputs.xml] will
be your input xml message to Invoke the Outbound Web Service.

Testing Outbound WS:


1. Create a new record and give the business service name as the name of Proxy Business Service: CurrencyConvertorSoap, pick
its method.
2. In the middle Input applet, click Load From File button to browse the Inputs file [WebService-Inputs.xml] which we created in
the above process. This will load input Siebel message. Navigate inside the mvg at Child Type and give the From and To
Currency names like USD and INR
Inputs From and To Conversion Currencies.jpg
IMPORTANT:
Now you need to modify this message a bit, Click the Child Type mvg and modify the Type from SiebelMessage to
ConversionRateSoapIn:parameters. You can get this value from our proxy Business Service Method Arguments.

Shows how to give Inputs


3. Go to the top list applet and run the Business Service Simulation. You will see the response message in the bottom applet in the
Response Property Set: ConversionRateSoapOut:parameters
4. You can navigate inside the Child Type mvg and see the converted rate in the parameter: ConversionRateResult

Outputs

Вам также может понравиться