Skip to main content
Home Forums Silverlight Programming Programming with .NET - General Config file issue...
1 replies. Latest Post by CarlBruiners on July 19, 2009.
(0)
CarlBrui...
Member
32 points
30 Posts
07-19-2009 6:44 AM |
Hi All,
I have a problem with a web service call from inside my Silverlight app. Basically its calling a sharepoint site list. Everything works fine with the exception that the user has to type in their username / password.
I want to specify the username / password either in code (*.xaml.vb) or in the config file of the web service, I have tried the code below, but it does not recongise the clientCredentialType (even though lots of people give this example).
1 <configuration> 2 <system.serviceModel> 3 <bindings> 4 <basicHttpBinding> 5 <binding name="ListsSoap" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647"> 6 <security mode="TransportCredentialOnly"> 7 <transport clientCredentialType="Ntlm" /> 8 </security> 9 </binding> 10 </basicHttpBinding> 11 </bindings> 12 <client> 13 <endpoint address="http://xxxxxxx/IT/App/_vti_bin/lists.asmx" binding="basicHttpBinding" 14 bindingConfiguration="ListsSoap" contract="WSSDirect.ListsSoap" 15 name="ListsSoap" /> 16 </client> 17 </system.serviceModel> 18 </configuration> 19
Am I correct in thinking that it is NTML authentication that I need?
Any help would be much appreiated,
Cheers
Carl
[::TILL THE END::]
07-19-2009 6:58 AM |
Do I specify the authentication in the config file of the web service or the web config in the application which is running the Silverlight App?