Hi Jonathan, Silverlight 2 Beta 1 doesn't care about your client configuration file. It's simply not read. Will be implemented in Beta 2.
Eugene Osovetsky has a good talk titled "Working with Data and Web Services in Silverlight 2" from MIX08 that covers working with services really well. So even tough you have access to the HTTP headers on the HttpWebRequest object you can ONLY set headers on HTTP GET, on same domain. So there is currently no way you can set authentication headers on your requests... But, we worked around it by hosting the silverlight app on the same domain as the oracle services. Okay for now. Cheers, Jonas On Wed, May 14, 2008 at 1:19 AM, Jonathan Parker <[EMAIL PROTECTED]> wrote: > I think BasicHttpSecurityMode.TransportCredentialOnly is what you need. > > > > Try puting this inside the binding element of your client config file > > > > <security mode="TransportCredentialOnly" /> > > > > > > > > *From:* [EMAIL PROTECTED] [mailto: > [EMAIL PROTECTED] *On Behalf Of *Jonas Follesø > *Sent:* Monday, 12 May 2008 12:40 PM > *To:* [email protected] > *Subject:* [OzSilverlight] Basic Http Authentication on Cross Domain SOAP > service calls in Silverlight 2 > > > > Hi, > > > I have a question regarding Silverlight authentication. The scenario is as > follow: > > I need to call an Oracle Soap Service, protected using basic http > authentication, from a Silverlight client. The client will not be hosted on > the same server, but the server will have a crossdomain.xml file allowing my > Silverlight client to call the service. > > In my auto-generated service client I can't access the HttpHeader > collection to add the basic http authentication header.. However, if I use > the "raw" HttpWebRequest class I can add the authentication header before > making the request. > > Do I really have to use the HttpWebRequest class and parse the returned > XML my self, or is there a way to set basic http credentials on the web > service proxy? > > cheers, > Jonas Follesø > > > > ------------------------------------------------------------------- > OzSilverlight.com - to unsubscribe from this list, send a message back to > the list with 'unsubscribe' as the subject. > Powered by mailenable.com - List managed by www.readify.net > ------------------------------------------------------------------- > OzSilverlight.com - to unsubscribe from this list, send a message back to > the list with 'unsubscribe' as the subject. > Powered by mailenable.com - List managed by www.readify.net ------------------------------------------------------------------- OzSilverlight.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com - List managed by www.readify.net
