By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,222 Members | 1,079 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,222 IT Pros & Developers. It's quick & easy.

C# web services used by VB.NET application

P: n/a
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
Share this Question
Share on Google+
4 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.