473,499 Members | 1,669 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

WebServiceBinding

Hi all .Net lovers,
I am working of a .Net webservices project. Evry thing is done except one
issue ;)
While binding the web seviceses using WebServiceBinding API we have to
specify the Location which I am hardcoded right now. Now the problem we are
shipping only the .dlls and .asmx files. But the location is hardcoded.
Can .net provides any other solution from which at the run time will bind
the wsdl location.
Please help me out in this.
Thanks,
Pet Matrix.
Nov 21 '05 #1
2 6987
can you put them into a config file? Maybe in your web.config file?

"Pet Matrix." <Pet Matrix.@discussions.microsoft.com> wrote in message news:3B**********************************@microsof t.com...
Hi all .Net lovers,
I am working of a .Net webservices project. Evry thing is done except one
issue ;)
While binding the web seviceses using WebServiceBinding API we have to
specify the Location which I am hardcoded right now. Now the problem we are
shipping only the .dlls and .asmx files. But the location is hardcoded.
Can .net provides any other solution from which at the run time will bind
the wsdl location.
Please help me out in this.
Thanks,
Pet Matrix.

Nov 21 '05 #2
Hi,

I'm not sure what you mean by using the web service binding API - used in
this context it isn't making sense to me. I am going to assume you mean
you are using a proxy that you generated via the add-web-reference menu
selection instead. In this case, there is a property on the proxy called
"dynamic", and you need to set this to true. After you do that you can
programatically change the URL the proxy connects to by setting the URL
property on the proxy class instance.

I hope this helps

Dan Rogers
Microsoft Corporation
--------------------
Thread-Topic: WebServiceBinding
thread-index: AcTQdbYZon9mBxXPQAKBn48nyJM2rA==
X-WBNR-Posting-Host: 61.95.164.75
From: "=?Utf-8?B?UGV0IE1hdHJpeC4=?=" <Pet Matrix.@discussions.microsoft.com>
Subject: WebServiceBinding
Date: Mon, 22 Nov 2004 01:29:05 -0800
Lines: 11
Message-ID: <3B**********************************@microsoft.co m>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.dotnet.framework.webservices
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFT NGXA03.phx.gbl
Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.webservices:7586
X-Tomcat-NG: microsoft.public.dotnet.framework.webservices

Hi all .Net lovers,
I am working of a .Net webservices project. Evry thing is done except one
issue ;)
While binding the web seviceses using WebServiceBinding API we have to
specify the Location which I am hardcoded right now. Now the problem we are
shipping only the .dlls and .asmx files. But the location is hardcoded.
Can .net provides any other solution from which at the run time will bind
the wsdl location.
Please help me out in this.
Thanks,
Pet Matrix.

Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
1506
by: Norm Dotti | last post by:
In VS 2002 I could specify Dim x As System.Windows.Forms.Form() or Dim x As System.Windows.Forms.Form and everything was ok. Since upgrading to VS 2003 it won't let me put in the...
4
2802
by: Allen McGuire | last post by:
Any ideas would be great - I hope I provide enough information here. I'm getting a bit frustrated - I'm a newbie in the .NET programming arena. Full Error returned from VWD 2005 Express Beta:...
1
1852
by: oldVB3r | last post by:
I would like to create a set of web services that share a common set of types (classes, structures, enums). I know I can create a VS 2005 web service based on the Interface statement to contain...
23
1619
by: Jonathan Wood | last post by:
I was wondering if some of you could advise me on the following issue. I ported my code that generates shareware licenses to a C# class. I'd like to get to the point where this is done online...
0
1017
by: mehdi | last post by:
Hi folks, I've been lately trying to expose an object graph (with circular references) through a web method, however, this was not possible since the XmlSerializer has got no idea how to address...
0
978
by: Clive-S | last post by:
Hi, I am trying to learn ASp.Net. My page, connecting to SQL Server (ECTSERVER\SQLEXPRESS) has the following line continuation error????? I do not understand the error & solution. Any help...
20
6706
by: =?Utf-8?B?cmtibmFpcg==?= | last post by:
I was executing the steps given in http://suppor.microsoft.com/kb/308359 for testing a sample web service application. However, the following line gives a compilation error: localhost.Service1...
11
2975
by: cj | last post by:
Perhaps someone knows how to do this. When I open a new ASP.NET web service application in VS 2008, it opens with a simple Hello World web service already written. I want to see this work. ...
2
2102
by: cj | last post by:
<System.Web.Services.WebService(Name:="CJ's Service", Description:="Testing 123", Namespace:="http://myco.com/cj/one")_...
0
7134
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7014
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7180
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7229
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6905
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7395
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5485
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4921
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
1429
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.