473,785 Members | 2,249 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Bug in Visual C++.NET 2003 Webservice import?

Hi,

I am developing both a webservice and a Windows Forms webservice client.
After I've deployed my webservice to the webserver I update my webservice
reference in my client application, but the code generated by the webservice
import program (wsdl version 1.1.4322.573) does not compile. I have to edit
it manually to get it working.

My webservice looks something like this (cut-down):

namespace MyNamespace {
public __gc class MyWebService: public System::Web::Se rvices::WebServ ice
{
public:
__value struct MyDataStruct {
int id;
String *name;
};
// ...
private:
// ...
public:
// web methods go here...
[System::Web::Se rvices::WebMeth od(Description= "Gives some data
back")]
MyDataStruct GetData(void);
};
}

Now when I import this with VC++ in my client application, it generates a
header file that looks something like this:

namespace MyNamespace {
public __gc class MyWebService: public System::Web::Se rvices::WebServ ice
{
public:

[System::Xml::Se rialization::Xm lTypeAttribute( Namespace=S"htt p://mynamespace
")]
public __gc class MyDataStruct {
/// <remarks/>
public: System::Int32 id;
/// <remarks/>
public: System::String * name;
};
// ...
private:
// ...
public:
// web methods go here...
inline MyWebService::M yDataStruct * MyWebService::G etData(void)
{ // <-- Error here
System::Object * results[] = this->Invoke(S"GetDa ta", new
System::Object * [0]);
return (__try_cast<MyW ebService::MyDa taStruct * >(results[0]));
// <-- Error here
};
};
}

This code will not compile because MyWebService::M yDataStruct is not a valid
type when defined within class MyWebService. So I have to manually replace
all occurences of "MyWebService:: MyDataStruct" to "MyDataStru ct" for the
code to compile (and thus before I can use it).

This is rather annoying so I'd like to ask if anyone has experienced this
before and could tell me if I am doing something wrong or this is just a bug
and (hopefully) will be fixed soon.

Thanks in advance.

Best Regards,

Thijs


Nov 16 '05 #1
0 1301

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

Similar topics

2
5313
by: Markus Faust | last post by:
Hi, I'm trying to link Fortran files generated with “Compaq Visual Fortran Optimizing Compiler Version 6.6 (Update B)” under “Enthought Edition build 1028, Python 2.3 (#46, Aug 11 2003, 09:34:05) on win32” on Windows-XP”. I changed mingw32_support.py as proposed by Pearu Peterson on April 8 2003 (I changed `if 1:` block into `if 0:` block). When trying the following Python session:
6
6177
by: Martin Bless | last post by:
The good news: Along with Python-2.4 comes really good news to Windows users. Yes, you now CAN build extension modules yourself using the SAME C++ compiler and linker Python is built with itself. Everything you need is available at no costs (except download hassle and installation time). Once your system is set up properly its just a matter of running 'python setup.py build'. No longer waiting for someone else to build binaries and a...
10
2501
by: Jonathan Wilson | last post by:
Firstly, to get msvcrt.lib, install the .NET framework SDK. The version of msvcrt.lib included there is the exact same one as comes with Visual Studio ..NET 2003. There are some other things that might be usefull (e.g. the debug version of msvcrt.lib) but msvcrt.lib is the most usefull thing. Secondly, install the latest version of the Microsoft Platform SDK. The "64-bit" compiler will provide versions of undname.exe, nmake.exe,...
0
943
by: jim | last post by:
Hi Everyone, When I converted one visual .net project from 2002 to 2003, there is an error occursing during compiling under visual studio .net 2003 as followoing: Command Lines Creating temporary file "d:\Development\WebService\temp\ManagedSdk\Debug\RSP000008.rsp" with contents Creating command line "cl.exe @d:\Development\WebService\temp\ManagedSdk\Debug\RSP000008.rsp /nologo"
6
1443
by: Josh Angolano | last post by:
I have an application that uses webservices with SOAP attachements. In order to pass data to a webservice it uses the ATLSOAP_BLOB datastructre. This application works great on my PC where I have Visual Studio .net 2003 installed. However when I deploy the application to a pc that does not have visual studio, the application throws a fatal exception, when the user tries to call the webservice. Is there anything that I should be...
1
1229
by: kamig | last post by:
Hey! guys i have this annoying question i have upgrade my webService project from visual studion.NET 2003 to 2005 but the problem is tht i cant access my webService directly from iis mmc by click the .asmx and selecting browsing in old days of .net 2003.....it gives an error like that user initiated the asp.net process should have access to iis metabase....with Microsoft site i download mataacl.vbs with which i try to add my username say...
2
1161
by: acteon | last post by:
Hello, I recently updated a web service project that was originally created by a consultant with Visual Studio 2003 with Visual Studio 2005. The .MSI file told me I needed the 2.0 framework, so I installed it. When I converted the project I was warned that ASP 2.0 would be needed. I tried to install the webservice on a test webserver running Win2k. It has ASP 1.1 installed. I looked on the Microsoft site and although
0
788
by: jlawson | last post by:
I have written a WebService and it works fine on the machine that I wrote it on. I would like to place this WebService on another XP Pro machine (brand new install, out of the box). What do I need to install on this new machine that will allow the WebService to function without installing Visual Studios 2003? Rumor has it that I need WSE1, WSE2, and dotnetfx. So I installed all three. Didn't work. Need Help! John
3
5176
by: HistoricVFP | last post by:
Hello, I’ve been given the task of importing .dbf files from a very old version of Visual FoxPro (version 2.1) into Access (2003). When I import the data straight to Access it errors with: External table is not in the expected format. (Error 3274) I’ve tried the following but it did not work: “To import data from a FoxPro database, use the Microsoft Visual FoxPro ODBC driver. To do so, follow these steps: 1. Click Start, and then...
0
10161
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10098
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9958
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8986
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
7506
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
6743
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
5523
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4058
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
3
2890
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.