tnx. already found this post but it wasn't completed so it really
On 18 feb, 14:40, Walter Poch <
walter.p...@gmail.com> wrote:
> Hi Dave, I'm using this code in order to configure the proper URL on SL, so
> I don't have to change it between environments.
>
> var servicePath = Current.Host.Source.Scheme
> + "://" + Current.Host.Source.Host
> + ":" + Current.Host.Source.Port +
> CAPTURA_FIRMA_SERVICE_PATH; //Constant to my .svc
>
> if (servicePath.StartsWith("file")) return new
> CapturaFirmaServiceClient();
> return new
> CapturaFirmaServiceClient("CustomBinding_CapturaFirmaService", servicePath);
>
> Regards,
>
>
> > does someone has an example how i set the endpoint url in code. I
> > don't want to use the config file because it's diffuclt with
> > deployment and the silverlight applications comes with a
> > webapplication so when i know the url of the silverlight i also know
> > the url to the webservice.
>
> > in wcf i had this: new ServiceClient("configname",
> > "mineEndpointUrl")';
>
> --
> Saludos,
>
> Walter G. Poch
> Sr. .Net Developer
> --------------------------------------------
> Cell:
+54 (9 341) 3353273