473,385 Members | 2,028 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,385 software developers and data experts.

C# web services used by VB.NET application

Hi,

I am developing Pocket PC application in VB.NET.
Within the application we are using web services developed by outsourced team.
They developed the services in C#.

After adding a web reference to web services in my Pocket PC app, I am not
able to compile Smart device solution.
The same web services are used by web application and they work fine there.

Any ideas. I am kind of new to the subject.
The possible problems I can think of:
- some of the objects used in web services are not supported by .NET Compact
Framework
- Can it be caused by the fact that web services are developed in C#, and
Pocket PC app in VB.NET

I’ve got one more question. When I am adding a web reference (I am using
wizard available in VS .NET 2003), can I specify which functions I want to
add (I do need to use maybe 25% of all functions available)

I am going to research Microsoft documentation, but maybe I can get some
hints from here.

Any suggestions would be really appreciated.
Thank you,
Greg

Nov 23 '05 #1
4 3008
On Fri, 10 Dec 2004 06:41:02 -0800, Greg wrote:
I am developing Pocket PC application in VB.NET.
Within the application we are using web services developed by outsourced team.
They developed the services in C#.

After adding a web reference to web services in my Pocket PC app, I am not
able to compile Smart device solution.
The same web services are used by web application and they work fine there.

Any ideas. I am kind of new to the subject.
A critical piece of information is missing - what errors do you get when
you compile? Saying "I am not able to compile" is almost meaningless
without specific details and specific lines of code that are causing the
compile error.
The possible problems I can think of:
- some of the objects used in web services are not supported by .NET Compact
Framework
This is a possibility, but without details that is only speculation.
- Can it be caused by the fact that web services are developed in C#, and
Pocket PC app in VB.NET
Not likely, but...
Ive got one more question. When I am adding a web reference (I am using
wizard available in VS .NET 2003), can I specify which functions I want to
add (I do need to use maybe 25% of all functions available)


This generates a proxy that you can then edit and remove any functionality
that you don't want. Keep in mind that if you refresh the web reference
that the generated proxy will be recreated with all methods found in the
web class. You may want to consider manually generating the proxy class
rather than using a web reference.
--
Tom Porterfield
Nov 23 '05 #2
Hi Tom,

Thank you for reply.
I am getting ‘Maximum number of errors has been exceeded”

One of the errors is: “Type 'SerializationInfo' is not defined.”
As far as I know SerializationInfo is not supported by .NET Compact Framework
The corresponding code to the error is:

*****************
Protected Sub New(ByVal info As SerializationInfo, ByVal context As
StreamingContext)
MyBase.New
.............................
...............
...............
End Sub
***********

Thanks again for reply,
Greg
"Tom Porterfield" wrote:
On Fri, 10 Dec 2004 06:41:02 -0800, Greg wrote:
I am developing Pocket PC application in VB.NET.
Within the application we are using web services developed by outsourced team.
They developed the services in C#.

After adding a web reference to web services in my Pocket PC app, I am not
able to compile Smart device solution.
The same web services are used by web application and they work fine there.

Any ideas. I am kind of new to the subject.


A critical piece of information is missing - what errors do you get when
you compile? Saying "I am not able to compile" is almost meaningless
without specific details and specific lines of code that are causing the
compile error.
The possible problems I can think of:
- some of the objects used in web services are not supported by .NET Compact
Framework


This is a possibility, but without details that is only speculation.
- Can it be caused by the fact that web services are developed in C#, and
Pocket PC app in VB.NET


Not likely, but...
Iʼve got one more question. When I am adding a web reference (I am using
wizard available in VS .NET 2003), can I specify which functions I want to
add (I do need to use maybe 25% of all functions available)


This generates a proxy that you can then edit and remove any functionality
that you don't want. Keep in mind that if you refresh the web reference
that the generated proxy will be recreated with all methods found in the
web class. You may want to consider manually generating the proxy class
rather than using a web reference.
--
Tom Porterfield

Nov 23 '05 #3
On Fri, 10 Dec 2004 08:05:04 -0800, Greg wrote:
Hi Tom,

Thank you for reply.
I am getting Maximum number of errors has been exceeded

One of the errors is: Type 'SerializationInfo' is not defined.
As far as I know SerializationInfo is not supported by .NET Compact Framework

The corresponding code to the error is:

*****************
Protected Sub New(ByVal info As SerializationInfo, ByVal context As
StreamingContext)
MyBase.New
.............................
..............
..............
End Sub
***********


You are correct that the SerializationInfo class is not supported by the
..NET Compact Framework. If the webservice requires an object of that type,
then you will not be able to use that webservice with the compact
framework.
--
Tom Porterfield
Nov 23 '05 #4
Thank you,
It's appreciated,

Greg

"Tom Porterfield" wrote:
On Fri, 10 Dec 2004 08:05:04 -0800, Greg wrote:
Hi Tom,

Thank you for reply.
I am getting ‘Maximum number of errors has been exceeded”

One of the errors is: “Type 'SerializationInfo' is not defined.”
As far as I know SerializationInfo is not supported by .NET Compact Framework

The corresponding code to the error is:

*****************
Protected Sub New(ByVal info As SerializationInfo, ByVal context As
StreamingContext)
MyBase.New
.............................
..............
..............
End Sub
***********


You are correct that the SerializationInfo class is not supported by the
..NET Compact Framework. If the webservice requires an object of that type,
then you will not be able to use that webservice with the compact
framework.
--
Tom Porterfield

Nov 23 '05 #5

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

Similar topics

4
by: rbt | last post by:
How does one associate a "Description" with a Windows service written in Python? I've just started experimenting with Python services. Here's my code... copied straight from Mr. Hammond's "Python...
0
by: Amol Shambharkar | last post by:
Hello Everyone, I am hoping someone could help me out with this.I am using Visual Studio .NET 2003 to create a web application on a remote IIS 5.0 server using the File Share web access method.The...
1
by: Chris Dunaway | last post by:
A quick scan of the group did not immediately reveal an answer to my questions so here goes. First let me describe my app and then I'll ask the questions. I am writing a Windows Forms App (not...
3
by: Matt D | last post by:
I've got two web services that use the same data types and that clients will have to consume. I read the msdn article on sharing types...
1
by: rmk | last post by:
How can I get the 2000 and 2005 versions of SQL Server Reporting Services both working on my development laptop ????? I have ASP.NET 1.1 and 2.0 installed on my laptop. I have Visual Studio...
23
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...
5
by: =?Utf-8?B?dmlzaHJ1dGg=?= | last post by:
This code works fine in Windows Application. In Windows Application, I am able to zip the image files properly and it totally contains 900MB My problem is the same code which I used in my Windows...
3
by: Sylvie | last post by:
My Windows Application has two forms, one form contains a grid (lets say Stock Listing), and the other is a form of one stock, contains some edit boxes for one stock's fields.. Is it possible to...
1
by: =?Utf-8?B?QnJhZA==?= | last post by:
Generally on a Windows system the services file (located in Windows\System32\Drviers\Etc\Services) would specify port allocation to different applications. It contains registered ports and...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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?
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
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
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...

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.