Siebel EAI > How to create an Inbound Web Service
Creating Inbound Webservices in Siebel
Web services are used to exchange data between applications over the intranet or internet using common standard protocols like http, https, XML and SOAP. We can also do this using FTP/SCP and EIM. You could pass a text /csv file by FTP/SCP and schedule an EIM job to load this data. So why should we use webservices?
Webservices are typically used when we need to transfer small amounts of data, typically less than 4 Mega bytes. These are easy to use and can be built across applications both ways. An EIM job can be used to import data into Siebel, but cannot be used to import data from Siebel into another application.
The second use of Webservices is in debugging. When a webservice method fails, Siebel sends out a response explaining the error. This process is not automatic for EIM imports and in some cases not possible to do.
Open Siebel Tools. In the Menu bar, go to File -> New Object -> EAI. Select Integration Object
Press OK
Select an existing Project and EAI Siebel Wizard Business Service
Select the Source Object. Here I have selected Opportunity. The third drop down (Name of Integration Object) will be filled automatically. Select Opportunity for Source Root of the new Integration Object
For the integration components that you would like to be activated, select a few that you want the connection for. If this is your first time test, select just one or two fields and deselect the rest.
Select next.
Click on Finish
Select yes. Our Integration object has been created. We now need to create a Business Service
Select Business Service in the Object Explorer in Siebel Tools. In the right panel, right click and select New. Add a Project Name (should be the same as the one for integration object). Also enter Class = CSSEAIDataSyncService and some comments (optional). In the Column - 'Display Name - String Override' field enter a name. This should also fill up the column Display Name automatically.
In the Object Explorer of Tools, select Business Service Method. In the right panel, select our Business Service (OptyTest). There will be a panel at the bottom - Business Service Method.
In this panel, add a new record , Add a name, Add a description in field Display Name - String Override
In Display Name - String Reference, select QueryById.
Pick and save.
We also need to add some arguments In the Business Service Method Arguments section , type these Name = RowID, Type = Input, Display Name - String Override = ID, Data Type = String and Name = SBLMessage, Type = Input, Display Name - String Override =Opty_Message, Data Type = String and Integration Object = Opportunity
Now we need to set up this Web Service in Siebel GUI
In the GUI go to Administration ? WebServices ? Inbound Service
Click on New in Inbound WebServices list applet. This is the top applet.
Enter the URL of the web server in the Namespace column. Normally the URL will be the URL of your Siebel server followed by the object manager group and then a name for your service.
e.g. for a webservice Asset in order management, the URL can be http://localhost/eComms_enu/OrderManagement/Asset
Enter Name of the WebService in the Name column.
Add Status as Active.
In the same screen, in the bottom applet -> Service Ports Click on New, select a name, keep the same name as in the top Applet. Type should be Business Service For Business Service, select the same Business Service that we created in Tools. Transport should be HTTP Address should be the address of your application, eai plus language code, some standard URL plus a userID and password.
e.g. for ENU language and localhost server, it should be
http://localhost/eai_enu/start.swe?SWEExtSource=WebService&SWEExtCmd=Execute&Username=wsarmuser&Password=wsarmuser123
The userID and password needs to be wsarmuser and wsarmuser123. You can also use the sadmin userid and password.
Enter SOAP_DOC_LITERAL in the Binding column
We are finished with this applet. Now go to the applet below called Operations
Click on New, add name, method display name and Authentication. Authetication should be None, You will get the name and Operations in the picklist to select.
That should create the inbound web service. You have to compile your new SRF in Tools and maybe restart EAI component in your Siebel Server.
|