Bookshelf Home | Contents | Index | PDF |
Siebel Portal Framework Guide > Delivering Content to External Web Applications > Connecting to the XML Web Interface > Query StringYou can send HTTP requests to SWE using a query string. For example, the following code sample illustrates an Active Server Page that uses MSXML to make an HTTP request. The request logs in to the Siebel application and navigates to the Account List View. The XML response from SWE is transformed into HTML using XSLT. NOTE: For code snippets that demonstrate transforming an XML response from SWE into HTML, see Sample XSLT. '---------------------------------------------- 'Open HTTP connection and send XML command req '---------------------------------------------- strURL = "http://" & Request.form ("swe") & "/start.swe?SWECmd=ExecuteLogin&SWEDataOnly=1&SWEUserName=sadmin&SWEPassword=sadmin&SWESetMarkup=XML strCookie = xmlhttp.getResponseHeader ("Set-Cookie") End If strURL = "http://" & Request.form ("swe") & "/start.swe?SWECmd=GotoView&SWEView=Account+List+View&SWESetMarkup=XML&SWEDataOnly=1" & "&_sn=" & strSessionId Session ("SWESessionId") = strSessionId sXsl = "acctresponse.xsl" <TD colSpan=2><%Response.Write (oXmlDoc.transformNode(oXslDoc))%> </TD> |
Siebel Portal Framework Guide | Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |