views:

289

answers:

2

Hi,

I am trying to develop a mobile application which can interact with a MOSS Site via web services. i expect it to be be able to;

1) retrieve documents (pdf, doc, docx, excel) 2) retrieve reporting services reports in a PDF or excel form.

i will be using either phonegap or rhomobile to develop this app and i know that i can consume web services using jquery.

My question revolves around MOSS Web Services Security. How will i handle authentication?

Thanks

A: 

How does the authentication work on your MOSS site collection? Is it windows authentication? If it is, then you can use impersonation when you create the Soap Client to access the web service :

EndpointAddress endpointAddress = new EndpointAddress("http://site/_vti_bin/Lists.asmx");

//Just create a basicHttpBinding with standard web services settings
SoapClient soapClient = new SoapClient(basicHttpBinding, endpointAddress);

soapClient.ClientCredentials.Windows.AllowedImpersonationLevel = System.Security.Principal.TokenImpersonationLevel.Impersonation;

Just make sure that impersonation is allowed in your web.config. Look for the node

<identity impersonate="true" />
Hugo Migneron
authentication is windows AD ..i will try this out..thanks..
femi
A: 
Shiraz Bhaiji