Bookshelf Home | Contents | Index | PDF |
Integration Platform Technologies: Siebel Enterprise Application Integration > Web Services > Consuming External Web Services Using Siebel Web Services > Integration Objects as Input Arguments to Outbound Web ServicesIt is recommended that the property set used as an input argument to the outbound Web service have the same name as the input argument's outbound Web service proxy. You can do this using one of the following options:
The following Siebel eScript example shows how to pass an integration object and a session token to a proxy business service using the integration object as an input argument. The script is written on the Service_PreInvokeMethod event of the proxy business service. function Service_PreInvokeMethod (MethodName, Inputs, Outputs) { for (var i = 0; i < Inputs.GetChildCount(); i++) { if(Inputs.GetChild(i).GetType() == "SiebelMessage") { childPS.SetType("myBusSvcMethod:myIntegrationObject"); newInputPS = TheApplication().NewPropertySet(); newInputPS.SetProperty("myBusSvcMethod:sessionToken:string", Inputs.GetProperty("token")); svc = TheApplication().GetService("myBusSvc"); svc.InvokeMethod("myBusSvcMethod", newInputPS, Outputs); return (CancelOperation); // must use CancelOperation with custom methods |
Integration Platform Technologies: Siebel Enterprise Application Integration | Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |