473,657 Members | 2,572 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Setting URL Behaviour to Dynamic in C++ Project

Hello,

I have an existing MFC C++ project which I need to add the ability of
sending WSDL calls out to a web service. When this project is deployed the
web service URL will always change depending on the user's local setup.

I can use the "Add a Web Reference" wizard to do this, however when the
project is in C++ the option to set the URL Behaviour to Dynamic is not in
the property list. I noticed if I create a C# project however, that the
option is always there, allowing the property to be toggled between
static/dynamic.

I'm not too sure why I can't change the web reference to dynamic through the
IDE. Perhaps there is a way to accomplish what I need to do by using
WSDL.exe directly but I'm not really sure how.

Thanks for any thoughts.
May 30 '06 #1
2 2528
After some further research, it appears that it is possible to set the URL at
runtime by setting URL property of the web service proxy. I.e.:

WebService ws = new WebService();
ws.Url = <webserviceurl> ; // read <webserviceur l> from registry or config
etc...

I wonder if this approach would work, despite the fact that my web proxy has
been created with it's URL Behavior property set to static, because the IDE
won't let me change it. (see previous post).

Thanks.

"James" wrote:
Hello,

I have an existing MFC C++ project which I need to add the ability of
sending WSDL calls out to a web service. When this project is deployed the
web service URL will always change depending on the user's local setup.

I can use the "Add a Web Reference" wizard to do this, however when the
project is in C++ the option to set the URL Behaviour to Dynamic is not in
the property list. I noticed if I create a C# project however, that the
option is always there, allowing the property to be toggled between
static/dynamic.

I'm not too sure why I can't change the web reference to dynamic through the
IDE. Perhaps there is a way to accomplish what I need to do by using
WSDL.exe directly but I'm not really sure how.

Thanks for any thoughts.

May 31 '06 #2
> I wonder if this approach would work, despite the fact that my web proxy
has


Yes.

--
Happy Hacking,
Gaurav Vaish
http://www.mastergaurav.org
http://webservices.edujini.in
-------------------
Jun 1 '06 #3

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

Similar topics

5
3749
by: swarsa | last post by:
Hi All, I realize this is not a Palm OS development forum, however, even though my question is about a Palm C program I'm writing, I believe the topics are relevant here. This is because I believe the problem centers around my handling of strings, arrays, pointers and dynamic memory allocation. Here is the problem I'm trying to solve: I want to fill a list box with a list of Project Names from a database (in Palm this is more...
5
7857
by: Glen Richards | last post by:
I've had no success in trying to dynamically set images at runtime in a Crystal Reports 9 report using C# 2005 Beta. I've been doing research along these lines & all the posts I've read say this can't be done. I was wondering if I've missed anything or if Crystal Reports 10 has added this feature? I downloaded a sample VB6 project (cr9_vb_rdc_loadpic.exe) from
0
1416
by: theintrepidfox | last post by:
Dear Group I came accross a very annoying behaviour of Visual Studio, giving me six hours of headache till I found the solution. This post is mainly for fellow developers for reference as it took me ages reading through tons of posts till I found an answer. However, I'm also interested why Visual Studio behaves that way. If anyone has a theorie on it please let me know.
4
2029
by: Tom | last post by:
Hi .Net Professional : In recent , I starting to learn about dynamic call .net object in vb.net. Before, some IT people teach me use the following method and its work !! Dim asm As = .LoadFrom("D:\vb7Project\dynamicCall\prj01\prj01\bin\prj01.dll") Dim ty As Type = asm.GetType("prj01.dbLib")
0
2065
by: Pascal Costanza | last post by:
Dynamic Languages Day @ Vrije Universiteit Brussel ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Monday, February 13, 2006, VUB Campus Etterbeek The VUB (Programming Technology Lab, System and Software Engineering Lab), ULB (deComp) and the Belgian Association for Dynamic Languages (BADL) are very pleased to invite you to a whole day of presentations about the programming languages Self, Smalltalk and Common Lisp by experts in...
1
6476
by: laredotornado | last post by:
Hi, I'm using PHP 4.4.4 on Apache 2 on Fedora Core 5. PHP was installed using Apache's apxs and the php library was installed to /usr/local/php. However, when I set my "error_reporting" setting to be "E_ALL", notices are still not getting reported. The perms on my file are 664, with owner root and group root. The php.ini file is located at /usr/local/lib/php/php.ini. Any ideas why the setting does not seem to be having an effect? ...
24
1821
by: temper3243 | last post by:
Hi, Many people have used this code in my project. It works because b is using the extra memory for other 4 variables.I access obj max. well here are a few questions 1) Where does it fail. I mean is there any exception where it willnot work assuming malloc works fine. 2) someone told me in C99 we have declar b obj , so that it can be declared at runtime. How do we do that. Do we have to malloc again .
1
1743
by: progressdll | last post by:
I'm trying to change the behaviour of setting the DataSource property of combobox. Here is the behaviour I now see. Setting the DataSource property of combobox to an ArrayList will visual display the first value in the Text field of the combobox. ( or setting the Text property ).
0
819
by: gnrgattadi | last post by:
HI All, I HAve Added Web Reference to A VC.Net (VisualC++/CLR) Project. After I Have added Successfully a Web Reference.I Have to Change the URL Behaviour Property to "Dynamic" but I Havent Found Such Property of Web reference. IF we Add A web reference to C# project & Open The Propertied Dialog Box of Web reference ,It will Show U A property "URL Behaviour" Where we can Change Dynamic or Static. But for CLR Projects I Havent seen...
0
8326
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8845
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
7355
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6177
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5647
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4173
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4333
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2745
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 we have to send another system
2
1736
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.