Skip to main content

Microsoft Silverlight

Config file issue...RSS Feed

(0)

CarlBruiners
CarlBrui...

Member

Member

32 points

30 Posts

Config file issue...

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::]

CarlBruiners
CarlBrui...

Member

Member

32 points

30 Posts

Re: Config file issue...

Hi All,

 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?

 Cheers

 Carl

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities