Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / March 2005

Tip: Looking for answers? Try searching our database.

Dealing with WSDL file in deifferent location than webservice

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
JerryK - 02 Mar 2005 19:24 GMT
Hi,

We have a Webservice we need to access.  Usually I would go to Visual Studio
and simply add a Web Reference and call this reference from my code.  But in
this case the Web Service is on a server which I cannot access at design
time.  However, they have provided me the WSDL file.  How can add a call to
this service to my app?

Thanks,

jerry
Manohar Kamath - 02 Mar 2005 20:08 GMT
It is the same as if you were to refer to an URL. Just do a "Add Web
Reference" in your VS.NET explorer, and point the address to the path of the
WSDL file (try to copy the entire file path), and the web service reference
will be added.

Hope that helps.

Signature

Manohar Kamath
Editor, .netWire
www.dotnetwire.com

> Hi,
>
[quoted text clipped - 7 lines]
>
> jerry
JerryK - 02 Mar 2005 21:20 GMT
You are correct this adds the web service reference but it point to my
system where the WSDL file resides, not the system where the web service
resides.  When I tehn check the Properties for the reference I cannot alter
the path to the web service.

jerry

> It is the same as if you were to refer to an URL. Just do a "Add Web
> Reference" in your VS.NET explorer, and point the address to the path of
[quoted text clipped - 19 lines]
>>
>> jerry
JerryK - 02 Mar 2005 21:48 GMT
I manged to figure this out.  I just modified the definition of the WSDL
file to point to the correct URL.  Hopefully everything will work.

jerry
> You are correct this adds the web service reference but it point to my
> system where the WSDL file resides, not the system where the web service
[quoted text clipped - 27 lines]
>>>
>>> jerry
Dan Rogers - 07 Mar 2005 18:57 GMT
You can also set the URL property on the generated proxy to "dynamic" - and
this will let you set the URL at runtime.
--------------------
>From: "JerryK" <jerryk@nospam.com>
>References: <#q80o11HFHA.1392@TK2MSFTNGP10.phx.gbl>
<e6VjPO2HFHA.2936@TK2MSFTNGP15.phx.gbl>
<#bTat22HFHA.2356@TK2MSFTNGP12.phx.gbl>
>Subject: Re: Dealing with WSDL file in deifferent location than webservice
>Date: Wed, 2 Mar 2005 13:48:36 -0800
[quoted text clipped - 7 lines]
>Newsgroups: microsoft.public.dotnet.framework.aspnet.webservices
>NNTP-Posting-Host: adsl-69-233-182-225.dsl.pltn13.pacbell.net
69.233.182.225
>Path:
TK2MSFTNGXA02.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFTNGP0
8.phx.gbl!TK2MSFTNGP12.phx.gbl
>Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet.webservices:28382
>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webservices
>
[quoted text clipped - 33 lines]
>>>>
>>>> jerry

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.