Adding a Service Reference to SL 2.0 creates a http://web/myService.svc in the Reference.cs
Last post 04-29-2008 5:37 AM by thierry.bouquain. 1 replies.
Sort Posts:
04-28-2008 6:08 PM
Adding a Service Reference to SL 2.0 creates a http://web/myService.svc in the Reference.cs

When I first create the reference it defaults to http://web/myService.svc. I then go into ServiceReferences.ClientConfig and change the value there from.

<client>

<endpoint address=http://web/myService.svc binding="basicHttpBinding"

bindingConfiguration="BasicHttpBinding_IkeyWords" contract="home.keyWordsRef.IkeyWords"

name="BasicHttpBinding_IkeyWords" />

</client>

 

To the correct endpoint

<client>

<endpoint address=http://www.mysite.com/myService.svc binding="basicHttpBinding"

bindingConfiguration="BasicHttpBinding_IkeyWords" contract="home.keyWordsRef.IkeyWords"

name="BasicHttpBinding_IkeyWords" />

</client>

The configuration.svcinfo ,configuration91.svcinfo,  Reference.cs and service.wsdl  in My Documents\Visual Studio 2008\Projects\....\service references\myServiceRef.......

 

Spin

 

spinoza

Joined on 12-20-2006
Posts 13
04-29-2008 5:37 AM
Marked as Answer
Re: Adding a Service Reference to SL 2.0 creates a http://web/myService.svc in the Reference.cs

In beta1 silverlight doesn't read ServiceReferences.ClientConfig. The uri is generated in the proxy class.

Thierry Bouquain
Ucaya
http://www.ucaya.com

thierry.bouquain

Joined on 05-06-2007
Nantes, France
Posts 224