Invoking Web Services on the Siebel Mobile Web Client
You can invoke Web services on the Siebel Mobile Web Client by passing credentials in the URL, in the SOAP header, or in the WS-Security header.
Example of Passing User Credentials in the URL
The URL format is:
http://<host>:<port>?SWEExtSource=WebService&Username=<username>
&Password=<password>
For example:
http://localhost:2330?SWEExtSource=WebService&Username=<username>
&Password=<password>
The following is an example of a request:
soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:asi="http://siebel.com/asi/">
<soapenv:Header/>
<soapenv:Body>
<asi:SiebelAccountQueryById>
<PrimaryRowId>99-28B0A</PrimaryRowId>
</asi:SiebelAccountQueryById>
</soapenv:Body>
</soapenv:Envelope>
Example of Passing User Credentials in the SOAP Header
The URL format is:
http://<host>:<port>?SWEExtSource=WebService&WSSOAP=1
For example:
http://localhost:2330?SWEExtSource=WebService&WSSOAP=1
The following is an example of a request:
soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:asi="http://siebel.com/asi/">
<soapenv:Header>
<UsernameToken xmlns="http://siebel.com/webservices">SADMIN</UsernameToken>
<PasswordText xmlns="http://siebel.com/webservices">SADMIN</PasswordText>
<SessionType xmlns="http://siebel.com/webservices">None</SessionType>
</soapenv:Header>
<soapenv:Body>
<asi:SiebelAccountQueryById>
<PrimaryRowId>99-28B0A</PrimaryRowId>
</asi:SiebelAccountQueryById>
</soapenv:Body>
</soapenv:Envelope>
Example of Passing User Credentials in the WS-Security Header
The URL format is:
http://<host>:<port>?SWEExtSource=SecureWebService&WSSOAP=1
For example:
http://localhost:2330?SWEExtSource=SecureWebService&WSSOAP=1
The following is an example of a 2002 request:
<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://
schemas.xmlsoap.org/soap/envelope/" xmlns:asi="http://siebel.com/asi/">
<soapenv:Header>
<wsse:Security xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/07/secext">
http://schemas.xmlsoap.org/ws/2002/07/secext
<wsse:UsernameToken xmlns:wsu="http://schemas.xmlsoap.org/ws/2002/07/utility">
<wsse:Username>SADMIN</wsse:Username>
<wsse:Password Type="wsse:PasswordText">SADMIN</wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
</soapenv:Header>
<soapenv:Body>
<asi:SiebelContactQueryById soapenv:encodingStyle="http://schemas.xmlsoap.org/
soap/encoding/">
<PrimaryRowId xsi:type="xsd:string">04-LLSQ5</PrimaryRowId>
</asi:SiebelContactQueryById>
</soapenv:Body>
</soapenv:Envelope>
The following is an example of a 2004 request:
<wsse:Security mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/
01/oasis-200401-wss-wssecuritysecext-1.0.xsd">
<wsse:UsernameToken wsu:Id="UsernameToken-zsXRc97TujDINUug8ibD2Q22"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wsswssecurity-
utility-1.0.xsd">
<wsse:Username>SADMIN</wsse:Username>
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-
usernametoken-profile-1.0#PasswordText">SADMIN</wsse:Password>
<wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-
200401-wss-soap-message-security-1.0#Base64Binary">f61vAYvDD0t2sUFEmXSVU+FlOvA=</
wsse:Nonce>
<wsu:Created>2014-05-13T17:27:33Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>