|
#1
|
|||
|
|||
|
How to implement Basic Http Security(Pass Scurity headers) in smartclient (Webservice Data Source)?
For example i can use following in my java class Code:
//Create SOAP Message
SOAPMessage soap;
//Add Basic Http Authentication
MimeHeaders headers=soap.getMimeHeaders();
//Encode it authorization header to 64 Bit
headers.addHeader("Authorization", authorization);
|
|
#2
|
|||
|
|||
|
See rpcRequest.httpHeaders
|
|
#3
|
|||
|
|||
|
I have given like following
Code:
isc.WebService.create({
..............................Code...................
getHeaderData : function (dsRequest) {
var headerData = {};
headerData.Authorization = { Authorization:'cGh1YnVpOlIzcEFuVzVwQHNzIQ==' };
return headerData;
}
}
|
|
#4
|
|||
|
|||
|
Are you trying to set SOAP headers or HTTP headers? getHeaderData() is for SOAP headers.
If you're trying to set SOAP headers, getHeaderData() is the right override point, but your data may not be correct. If so, there are messages in the Developer Console that will tell you what's going wrong. |
|
#5
|
|||
|
|||
|
Infact i have to http headers only ...... How do we set httpHeaders in DataSource fetch operation .......
|
|
#6
|
|||
|
|||
|
Via rpcRequest.httpHeaders as previously indicated. Have you looked it up? a WSRequest and DSRequest extend rpcRequest, so the property is valid on those objects as well.
|
|
#7
|
|||
|
|||
|
Its working fine
dsRequest.httpHeaders={Authorization:'Basic 64BitEncodedString'}; in transformRequest. |