Re: Web Reference

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Cyriel van 't End (nospam_at_anywhere.net)
Date: 10/07/04


Date: Thu, 07 Oct 2004 23:26:19 +0200

Eric.I.Feurich wrote:
> Hi there,
>
> We have setup Sharepoint as a 'server farm serving multiple host names'.
> This means that I have several sharepoint site under one IPadres like
> demo.sharepoint.nl, Development.sharepoint.nl
>
> To get information from a site from a remote client from within a
> application *.exe file or *.dll I have to add a web reference to the
> project. Now for the web reference to be referenced, i have to set the URL
> path to the _VTI_bin folder on the server of the site I want to reference in
> my project.
> But then the reference only works for that site
> .
> The question now is how can I select programmatically from wihch site I have
> to get the web reference.
>
> My program should first list the available sites and then after selecting a
> site it should list the available document libraries.
> Hope someone can help me.
>
> Best regards,
>
> Eric.I.Feurich
>
>

Why not create a c# or vb.net stub from the web service you require
using the wsdl tool, modify this stub a bit so you can decide what to
use for the url part dynamically and add this code to your project
instead of using a web reference?

Regards,

Cyriel



Relevant Pages

  • Re: Web Reference
    ... I'll look on the web to see what a stub is. ... Now for the web reference to be referenced, ... >> The question now is how can I select programmatically from wihch site I ... >> Best regards, ...
    (microsoft.public.sharepoint.portalserver.development)
  • Web Reference
    ... We have setup Sharepoint as a 'server farm serving multiple host names'. ... This means that I have several sharepoint site under one IPadres like ... Now for the web reference to be referenced, i have to set the URL ...
    (microsoft.public.sharepoint.portalserver.development)
  • Re: Web references
    ... Best regards, ... http://www.FOCUSPortals.com - Local franchises available ... "David" wrote: ... would like to configure the web reference location within web.config. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: how do u change the webservices url?
    ... You don't need to make a new web reference if the address is the only thing ... You can simply assign to the Url property of the web service proxy, ... >> I have a webservice client that needs to change which webservice server ... >> regards, ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: Returning a DataSet from Webservices
    ... I just simply added the web reference by going to the ... and I m also using other functions from that web service ... Dim obj As New LibraryFunctions ...
    (microsoft.public.dotnet.framework.aspnet.webservices)