473,569 Members | 2,688 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

WebServices in .Net 2.0 vs. WebServices in .Net 1.1

Hi,
I'm currently developing a windows form application, which should be able to
communicate with a couple of WebServices. The Webservices are not created by
me or my company and also not in .net but WebMethods (Java I suppose).
The first Issue that I have is when instantiating one of webservices I get a
"Method myMethod can not be reflected" error message and when drilling down
the exception hierarchy I find: InnerException = {"'date' is an invalid
value for the SoapElementAttr ibute.DataType property. The property may only
be specified for primitive types."}.

Curios as I am I tried the exact same thing but this time I used VS 2003
instead of VS 2005 (above) and then it works... (At least this far.)
Can anyone explain this and point me to a resolution?

Regards Frederik
May 11 '06 #1
3 4471
Hi,
I'm currently developing a windows form application, which should be able to
communicate with a couple of WebServices. The Webservices are not created by
me or my company and also not in .net but WebMethods (Java I suppose).
The first Issue that I have is when instantiating one of webservices I get a
"Method myMethod can not be reflected" error message and when drilling down
the exception hierarchy I find: InnerException = {"'date' is an invalid
value for the SoapElementAttr ibute.DataType property. The property may only
be specified for primitive types."}.

Curios as I am I tried the exact same thing but this time I used VS 2003
instead of VS 2005 (above) and then it works... (At least this far.)
Can anyone explain this and point me to a resolution?

Regards Frederik
I am facing the same problem. Not a single search engine can get the answer. Where are all the MS folks?

Posted from http://www.topxml.com/renntp using reNNTP: the website based NNTP reader.
Aug 21 '06 #2
Hi,

I am not sure, but that problem may happen due an incompatibility between
the web service proxies generated in .NET 1.1 and the proxies generated in
..NET 2.0.
VS automaticallty generates some code to consume the web services, if that
code was compiled using .NET 1.1 (Using some valid xml serialization rules
that are no longer valid in .NET 2.0), you will have problems to use the
same code in a .NET 2.0 application.

Regards,
Pablo Cibraro.
"Tat Sean" <ta*****@school dude.comwrote in message
news:58******** *************** ***********@tex t.giganews.com. ..
>
>Hi,
I'm currently developing a windows form application, which should be able
to
communicate with a couple of WebServices. The Webservices are not created
by
me or my company and also not in .net but WebMethods (Java I suppose).
The first Issue that I have is when instantiating one of webservices I
get a
"Method myMethod can not be reflected" error message and when drilling
down
the exception hierarchy I find: InnerException = {"'date' is an invalid
value for the SoapElementAttr ibute.DataType property. The property may
only
be specified for primitive types."}.

Curios as I am I tried the exact same thing but this time I used VS 2003
instead of VS 2005 (above) and then it works... (At least this far.)
Can anyone explain this and point me to a resolution?

Regards Frederik

I am facing the same problem. Not a single search engine can get the
answer. Where are all the MS folks?

Posted from http://www.topxml.com/renntp using reNNTP: the website based
NNTP reader.

Aug 21 '06 #3
AKJ
I can't help you here, but I'm getting exactly the same error when trying to
connect to one of our own webservices (produced via Progress 4gl/openedge
running on HP-UX 11 box).

Worked fine with v1.1, but v2 gets the error shown above.

It seems that we get the error when the offending field is winthin a complex
type.

Previously it converted them to datetime before presenting them to Dot Net
c# client, but now goes pop.

AKJ.
Aug 22 '06 #4

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

Similar topics

0
1357
by: Jinashe | last post by:
what do i need to enable accessing of webservices from a clients PC i'm hosting some webservices from my server in VB.NET. i've got some client windows applications done in VB.NET. what have i got to install on the clients PC to be able to access these webservices?? Will just the .NET Framework suffice??? Or do i have to install SOAP??...
0
1712
by: Erik P. Vinther | last post by:
Hi This might be slightly OT, but I couldn't find a better NG for this question The question is regarding versioning of webservices. A webservice end point URL basically consists of a base company URL and a webservice name, e.g… webservices.MyCompany.com/MyService we want to be able to host several versions of a particular webservice...
8
1719
by: Allan Ebdrup | last post by:
I just had a discussion with one of my fellow programmers. We have a class for doing some logging and sending an email, it has 5 different scenarioes of loggin that are common enough to share a class and database tables. In the future there might be new scenarioes that require their own custom classes and database tables. Now we want to...
5
1918
by: Stephanie Stowe | last post by:
Imagine that I had this <webServices> <soapExtensionTypes> <add type="Microsoft.Web.Services.WebServicesExtension, Microsoft.Web.Services, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" priority="1" group="0" /> </soapExtensionTypes> </webServices>
1
1498
by: Diffident | last post by:
Hello Guys, I have a question with regards to the efficiency and best practices in .NET framework. We are currently using Webservices as normal classes. The way we are invoking methods in these Webservices is by instantiating objects of these Webservices and not by adding web references to these services... My question is "Would there...
5
1768
by: cyberstrike | last post by:
Hi guys, my company was wondering if it's possible to develop ASP.NET/Webservices easily using a IIS installed on a server instead of installing IIS locally on the development boxes. Can you develop for ASP.NET/Webservices without IIS installed on your local box without having to resort to more difficult debugging or using notepad for...
2
1961
by: Antuane | last post by:
any one have any idea how transactions could be enabled in webservices. i.e., suppose i've got 2 methods - one to add a contact, & the other to set some miscellaneous details for the contact, in a webservice. Now the client uses the above two methods & if the client is happy with the return values of the above two methdos, ONLY then are the...
1
2153
by: Mike | last post by:
Hi all, I have written a webservice which I am using in my smartphone applicaiton. I have tried the webservice with a WinForms client and it works time and time again perfectly. When I include it in my smartphone application, it will work the first time and return ther query set, however when i try it again i get the following error : ...
8
3999
by: Komandur Kannan | last post by:
We have a smart device application running on handhelds(Symbol MC9000G). The backend is Oracle and a middle tier web services development done in Vb.net. We use pessimistic Locking due to specific business needs When such a lock is made for a transaction (this code is in the web service) and the handhelds are terminated abnormally (cold...
5
1834
by: ChrisM | last post by:
Hi, I have written a stand alone WinForms application with an MS Access back-end for the (small)company I work for. They are now talking about moving a part of their operations into a second site 50 miles away from the main one. The second site will simply be a stores. They will need some software in order to do a few things here, but...
0
7703
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7618
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...
0
8138
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...
1
7679
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...
0
7983
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...
0
5223
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...
0
3657
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...
0
3647
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2117
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

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.