473,396 Members | 1,891 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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::Services::WebService
{
public:
__value struct MyDataStruct {
int id;
String *name;
};
// ...
private:
// ...
public:
// web methods go here...
[System::Web::Services::WebMethod(Description="Give s 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::Services::WebService
{
public:

[System::Xml::Serialization::XmlTypeAttribute(Names pace=S"http://mynamespace
")]
public __gc class MyDataStruct {
/// <remarks/>
public: System::Int32 id;
/// <remarks/>
public: System::String * name;
};
// ...
private:
// ...
public:
// web methods go here...
inline MyWebService::MyDataStruct * MyWebService::GetData(void)
{ // <-- Error here
System::Object * results[] = this->Invoke(S"GetData", new
System::Object * [0]);
return (__try_cast<MyWebService::MyDataStruct * >(results[0]));
// <-- Error here
};
};
}

This code will not compile because MyWebService::MyDataStruct is not a valid
type when defined within class MyWebService. So I have to manually replace
all occurences of "MyWebService::MyDataStruct" to "MyDataStruct" 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 1260

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

Similar topics

2
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,...
6
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...
10
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...
0
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...
6
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...
1
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...
2
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,...
0
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...
3
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: ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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
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...

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.