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

Using a WebService from VC++

Hi Everyone,

I have a Visual C++ MFC program, and I am trying to use a webservice written
in C#. When I add the webservice to my project using Add Web Reference the
sproxy compiler complains about one of the object wanting to extend
MarshalByRefObject object, and I get an error SDL1030.

I can use the webservice in a C# project just fine but not the C++.

Can anyone help me out with this?

Thanks
AliR.
Nov 23 '05 #1
5 3767
Hi Alir,

Welcome to MSDN newsgroup.
From your description, when you use the VS.NET IDE(sproxy.exe) to add
webreference for a c# created webservice in MFC application, you got some
error on "one of the object wanting to extendMarshalByRefObject object".

Based on my experience, this is likelye due to the sproxy.exe can not
generate client type for some certain complex types in the webservice which
is specific to .NET framework. Since sproxy.exe is used for generating
native c++ proxy class, it supports limited types, see:

http://msdn.microsoft.com/library/en...rverSPROXYType
Mapping.asp?frame=true

In your problem, seems the webservice contains some paramter or return
object which derived from MarshalByRefObject, yes? Would you provide the
detailed serverside webservice 's webmethod signature? Also, you can try
change the webmethod's paramter or return type to some simple types to see
whether the problem will go away.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security

--------------------
From: "AliR" <Al**@online.nospam>
Newsgroups: microsoft.public.dotnet.framework.webservices
Subject: Using a WebService from VC++
Date: Thu, 6 Oct 2005 10:46:44 -0500
Lines: 15
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1506
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
NNTP-Posting-Host: 216.128.74.207
Message-ID: <43**********@alt.athenanews.com>
X-Trace: alt.athenanews.com 1128613678 216.128.74.207 (6 Oct 2005 11:47:58
-0400)
X-Complaints-To: ab***@athenanews.com
Path:
TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfee d00.sul.t-online.de!t-onli
ne.de!border2.nntp.dca.giganews.com!nntp.giganews. com!nx01.iad01.newshosting
..com!newshosting.com!38.144.126.115.MISMATCH!feed 7.newsreader.com!feed4.news
reader.com!newsreader.com!alt.athenanews.com!not-for-mail
microsoft.public.dotnet.framework.webservices:8131
X-Tomcat-NG: microsoft.public.dotnet.framework.webservices

Hi Everyone,

I have a Visual C++ MFC program, and I am trying to use a webservice written
in C#. When I add the webservice to my project using Add Web Reference the
sproxy compiler complains about one of the object wanting to extend
MarshalByRefObject object, and I get an error SDL1030.

I can use the webservice in a C# project just fine but not the C++.

Can anyone help me out with this?

Thanks
AliR.

Nov 23 '05 #2
Hi Steven,

Thanks for the replay. Your assumptions are correct about something
extending MarshalByRefObject. I am not very good at .Net yet, so what I am
going to do is send you the ip address of the webservice and let you
experiment with it (http://216.60.35.251/webService.asmx).
As of right not I can't change the code of the web service, but I might have
to find a way if it won't work the way it is.

AliR.

"Steven Cheng[MSFT]" <st*****@online.microsoft.com> wrote in message
news:gb**************@TK2MSFTNGXA01.phx.gbl...
Hi Alir,

Welcome to MSDN newsgroup.
From your description, when you use the VS.NET IDE(sproxy.exe) to add
webreference for a c# created webservice in MFC application, you got some
error on "one of the object wanting to extendMarshalByRefObject object".

Based on my experience, this is likelye due to the sproxy.exe can not
generate client type for some certain complex types in the webservice which is specific to .NET framework. Since sproxy.exe is used for generating
native c++ proxy class, it supports limited types, see:

http://msdn.microsoft.com/library/en...rverSPROXYType Mapping.asp?frame=true

In your problem, seems the webservice contains some paramter or return
object which derived from MarshalByRefObject, yes? Would you provide the
detailed serverside webservice 's webmethod signature? Also, you can try
change the webmethod's paramter or return type to some simple types to see
whether the problem will go away.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security

--------------------
From: "AliR" <Al**@online.nospam>
Newsgroups: microsoft.public.dotnet.framework.webservices
Subject: Using a WebService from VC++
Date: Thu, 6 Oct 2005 10:46:44 -0500
Lines: 15
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1506
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
NNTP-Posting-Host: 216.128.74.207
Message-ID: <43**********@alt.athenanews.com>
X-Trace: alt.athenanews.com 1128613678 216.128.74.207 (6 Oct 2005 11:47:58
-0400)
X-Complaints-To: ab***@athenanews.com
Path:
TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfee d00.sul.t-online.de!t-onli ne.de!border2.nntp.dca.giganews.com!nntp.giganews. com!nx01.iad01.newshosting ..com!newshosting.com!38.144.126.115.MISMATCH!feed 7.newsreader.com!feed4.news reader.com!newsreader.com!alt.athenanews.com!not-for-mail
Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.webservices:8131
X-Tomcat-NG: microsoft.public.dotnet.framework.webservices

Hi Everyone,

I have a Visual C++ MFC program, and I am trying to use a webservice written in C#. When I add the webservice to my project using Add Web Reference the sproxy compiler complains about one of the object wanting to extend
MarshalByRefObject object, and I get an error SDL1030.

I can use the webservice in a C# project just fine but not the C++.

Can anyone help me out with this?

Thanks
AliR.

Nov 23 '05 #3
Hi Alir,

Thanks for your response.
After view the wsdl description and creating a local proxy (.net) of the
webservice you exposed, I think I've got the point of this issue. In the
webservice, we can find a webmethod named "SaveFile", its method signature
is

public bool SaveFile(string path, Stream contents)

and the "Stream contents" is just the cause of the problem. It is a .net
specific class which derived from MarshalByRef object and when consuming it
through .net client program, that's ok. However, when creating it through
pure native C++, the sproxy tool don't how to represent such class in
native c++( infact, there is no means to represent a .net specific
MarshalByRef class in native c++).

I'm sure the actual purpose of the "SaveFile" method is let the client
upload a file and save on the serverside, yes? In such scenario, I'd
strongly recommend that we use some basic type to represent the file
stream, for example, a byte array should be the proper one. As you've
mentioned that you can not modify the serverside code, I'm afraid that'll
be very hard to workaround it, can you contact the service's developer so
that they can consider on this? If that's really impossible, I think we
may need to consider use managed c++(or other .net language) to consume the
webservice.

Please feel free to let me know if you have any other concerns or ideas.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security

--------------------
From: "AliR" <Al**@online.nospam>
Newsgroups: microsoft.public.dotnet.framework.webservices
References: <43**********@alt.athenanews.com>
<gb**************@TK2MSFTNGXA01.phx.gbl>
Subject: Re: Using a WebService from VC++
Date: Fri, 7 Oct 2005 10:22:42 -0500
Lines: 92
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1506
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
NNTP-Posting-Host: 216.128.74.207
Message-ID: <43**********@alt.athenanews.com>
X-Trace: alt.athenanews.com 1128698637 216.128.74.207 (7 Oct 2005 11:23:57
-0400)
X-Complaints-To: ab***@athenanews.com
Path:
TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfee d00.sul.t-online.de!t-onli
ne.de!border2.nntp.dca.giganews.com!nntp.giganews. com!nx02.iad01.newshosting
.com!newshosting.com!novia!feed4.newsreader.com!ne wsreader.com!alt.athenanew
s.com!not-for-mail
microsoft.public.dotnet.framework.webservices:8157
X-Tomcat-NG: microsoft.public.dotnet.framework.webservices

Hi Steven,

Thanks for the replay. Your assumptions are correct about something
extending MarshalByRefObject. I am not very good at .Net yet, so what I am
going to do is send you the ip address of the webservice and let you
experiment with it (http://216.60.35.251/webService.asmx).
As of right not I can't change the code of the web service, but I might have
to find a way if it won't work the way it is.

AliR.

"Steven Cheng[MSFT]" <st*****@online.microsoft.com> wrote in message
news:gb**************@TK2MSFTNGXA01.phx.gbl...
Hi Alir,

Welcome to MSDN newsgroup.
From your description, when you use the VS.NET IDE(sproxy.exe) to add
webreference for a c# created webservice in MFC application, you got some
error on "one of the object wanting to extendMarshalByRefObject object".

Based on my experience, this is likelye due to the sproxy.exe can not
generate client type for some certain complex types in the webservice which is specific to .NET framework. Since sproxy.exe is used for generating
native c++ proxy class, it supports limited types, see:

http://msdn.microsoft.com/library/en...rverSPROXYType Mapping.asp?frame=true

In your problem, seems the webservice contains some paramter or return
object which derived from MarshalByRefObject, yes? Would you provide the
detailed serverside webservice 's webmethod signature? Also, you can try
change the webmethod's paramter or return type to some simple types to see
whether the problem will go away.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security

--------------------
From: "AliR" <Al**@online.nospam>
Newsgroups: microsoft.public.dotnet.framework.webservices
Subject: Using a WebService from VC++
Date: Thu, 6 Oct 2005 10:46:44 -0500
Lines: 15
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1506
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
NNTP-Posting-Host: 216.128.74.207
Message-ID: <43**********@alt.athenanews.com>
X-Trace: alt.athenanews.com 1128613678 216.128.74.207 (6 Oct 2005 11:47:58
-0400)
X-Complaints-To: ab***@athenanews.com
Path:
TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfee d00.sul.t-online.de!t-onli ne.de!border2.nntp.dca.giganews.com!nntp.giganews. com!nx01.iad01.newshosting .com!newshosting.com!38.144.126.115.MISMATCH!feed7 .newsreader.com!feed4.news reader.com!newsreader.com!alt.athenanews.com!not-for-mail
Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.webservices:8131
X-Tomcat-NG: microsoft.public.dotnet.framework.webservices

Hi Everyone,

I have a Visual C++ MFC program, and I am trying to use a webservice written in C#. When I add the webservice to my project using Add Web Reference the sproxy compiler complains about one of the object wanting to extend
MarshalByRefObject object, and I get an error SDL1030.

I can use the webservice in a C# project just fine but not the C++.

Can anyone help me out with this?

Thanks
AliR.


Nov 23 '05 #4
Thanks Steven,

We got rid of the SaveFile method.

AliR.

"Steven Cheng[MSFT]" <st*****@online.microsoft.com> wrote in message
news:QV**************@TK2MSFTNGXA02.phx.gbl...
Hi Alir,

Thanks for your response.
After view the wsdl description and creating a local proxy (.net) of the
webservice you exposed, I think I've got the point of this issue. In the
webservice, we can find a webmethod named "SaveFile", its method signature
is

public bool SaveFile(string path, Stream contents)

and the "Stream contents" is just the cause of the problem. It is a .net
specific class which derived from MarshalByRef object and when consuming it through .net client program, that's ok. However, when creating it through
pure native C++, the sproxy tool don't how to represent such class in
native c++( infact, there is no means to represent a .net specific
MarshalByRef class in native c++).

I'm sure the actual purpose of the "SaveFile" method is let the client
upload a file and save on the serverside, yes? In such scenario, I'd
strongly recommend that we use some basic type to represent the file
stream, for example, a byte array should be the proper one. As you've
mentioned that you can not modify the serverside code, I'm afraid that'll
be very hard to workaround it, can you contact the service's developer so
that they can consider on this? If that's really impossible, I think we
may need to consider use managed c++(or other .net language) to consume the webservice.

Please feel free to let me know if you have any other concerns or ideas.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security

--------------------
From: "AliR" <Al**@online.nospam>
Newsgroups: microsoft.public.dotnet.framework.webservices
References: <43**********@alt.athenanews.com>
<gb**************@TK2MSFTNGXA01.phx.gbl>
Subject: Re: Using a WebService from VC++
Date: Fri, 7 Oct 2005 10:22:42 -0500
Lines: 92
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1506
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
NNTP-Posting-Host: 216.128.74.207
Message-ID: <43**********@alt.athenanews.com>
X-Trace: alt.athenanews.com 1128698637 216.128.74.207 (7 Oct 2005 11:23:57
-0400)
X-Complaints-To: ab***@athenanews.com
Path:
TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfee d00.sul.t-online.de!t-onli ne.de!border2.nntp.dca.giganews.com!nntp.giganews. com!nx02.iad01.newshosting com!newshosting.com!novia!feed4.newsreader.com!new sreader.com!alt.athenanew s.com!not-for-mail
Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.webservices:8157
X-Tomcat-NG: microsoft.public.dotnet.framework.webservices

Hi Steven,

Thanks for the replay. Your assumptions are correct about something
extending MarshalByRefObject. I am not very good at .Net yet, so what I am going to do is send you the ip address of the webservice and let you
experiment with it (http://216.60.35.251/webService.asmx).
As of right not I can't change the code of the web service, but I might have to find a way if it won't work the way it is.

AliR.

"Steven Cheng[MSFT]" <st*****@online.microsoft.com> wrote in message
news:gb**************@TK2MSFTNGXA01.phx.gbl...
Hi Alir,

Welcome to MSDN newsgroup.
From your description, when you use the VS.NET IDE(sproxy.exe) to add
webreference for a c# created webservice in MFC application, you got some error on "one of the object wanting to extendMarshalByRefObject object".

Based on my experience, this is likelye due to the sproxy.exe can not
generate client type for some certain complex types in the webservice

which
is specific to .NET framework. Since sproxy.exe is used for generating
native c++ proxy class, it supports limited types, see:

http://msdn.microsoft.com/library/en...rverSPROXYType
Mapping.asp?frame=true

In your problem, seems the webservice contains some paramter or return
object which derived from MarshalByRefObject, yes? Would you provide the
detailed serverside webservice 's webmethod signature? Also, you can try
change the webmethod's paramter or return type to some simple types to see whether the problem will go away.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security

--------------------
From: "AliR" <Al**@online.nospam>
Newsgroups: microsoft.public.dotnet.framework.webservices
Subject: Using a WebService from VC++
Date: Thu, 6 Oct 2005 10:46:44 -0500
Lines: 15
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1506
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
NNTP-Posting-Host: 216.128.74.207
Message-ID: <43**********@alt.athenanews.com>
X-Trace: alt.athenanews.com 1128613678 216.128.74.207 (6 Oct 2005 11:47:58 -0400)
X-Complaints-To: ab***@athenanews.com
Path:

TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfee d00.sul.t-online.de!t-onli

ne.de!border2.nntp.dca.giganews.com!nntp.giganews. com!nx01.iad01.newshosting

com!newshosting.com!38.144.126.115.MISMATCH!feed7. newsreader.com!feed4.news
reader.com!newsreader.com!alt.athenanews.com!not-for-mail
Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.webservices:8131
X-Tomcat-NG: microsoft.public.dotnet.framework.webservices

Hi Everyone,

I have a Visual C++ MFC program, and I am trying to use a webservice

written
in C#. When I add the webservice to my project using Add Web Reference

the
sproxy compiler complains about one of the object wanting to extend
MarshalByRefObject object, and I get an error SDL1030.

I can use the webservice in a C# project just fine but not the C++.

Can anyone help me out with this?

Thanks
AliR.


Nov 23 '05 #5
You're welcome Alir,

Good luck!

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
--------------------
From: "AliR" <Al**@online.nospam>
Newsgroups: microsoft.public.dotnet.framework.webservices
References: <43**********@alt.athenanews.com>
<gb**************@TK2MSFTNGXA01.phx.gbl> <43**********@alt.athenanews.com>
<QV**************@TK2MSFTNGXA02.phx.gbl>
Subject: Re: Using a WebService from VC++
Date: Tue, 11 Oct 2005 15:08:06 -0500
Lines: 181
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1506
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
NNTP-Posting-Host: 216.128.74.207
Message-ID: <43**********@alt.athenanews.com>
X-Trace: alt.athenanews.com 1129061362 216.128.74.207 (11 Oct 2005 16:09:22
-0400)
X-Complaints-To: ab***@athenanews.com
Path:
TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA03.phx.gbl!TK2MSF TNGP08.phx.gbl!newsfeed00.
sul.t-online.de!t-online.de!border2.nntp.dca.giganews.com!border1.nn tp.dca.g
iganews.com!nntp.giganews.com!feed4.newsreader.com !newsreader.com!alt.athena
news.com!not-for-mail
microsoft.public.dotnet.framework.webservices:1234 4
X-Tomcat-NG: microsoft.public.dotnet.framework.webservices

Thanks Steven,

We got rid of the SaveFile method.

AliR.

"Steven Cheng[MSFT]" <st*****@online.microsoft.com> wrote in message
news:QV**************@TK2MSFTNGXA02.phx.gbl...
Hi Alir,

Thanks for your response.
After view the wsdl description and creating a local proxy (.net) of the
webservice you exposed, I think I've got the point of this issue. In the
webservice, we can find a webmethod named "SaveFile", its method signature
is

public bool SaveFile(string path, Stream contents)

and the "Stream contents" is just the cause of the problem. It is a .net
specific class which derived from MarshalByRef object and when consuming it through .net client program, that's ok. However, when creating it through
pure native C++, the sproxy tool don't how to represent such class in
native c++( infact, there is no means to represent a .net specific
MarshalByRef class in native c++).

I'm sure the actual purpose of the "SaveFile" method is let the client
upload a file and save on the serverside, yes? In such scenario, I'd
strongly recommend that we use some basic type to represent the file
stream, for example, a byte array should be the proper one. As you've
mentioned that you can not modify the serverside code, I'm afraid that'll
be very hard to workaround it, can you contact the service's developer so
that they can consider on this? If that's really impossible, I think we
may need to consider use managed c++(or other .net language) to consume the webservice.

Please feel free to let me know if you have any other concerns or ideas.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security

--------------------
From: "AliR" <Al**@online.nospam>
Newsgroups: microsoft.public.dotnet.framework.webservices
References: <43**********@alt.athenanews.com>
<gb**************@TK2MSFTNGXA01.phx.gbl>
Subject: Re: Using a WebService from VC++
Date: Fri, 7 Oct 2005 10:22:42 -0500
Lines: 92
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1506
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
NNTP-Posting-Host: 216.128.74.207
Message-ID: <43**********@alt.athenanews.com>
X-Trace: alt.athenanews.com 1128698637 216.128.74.207 (7 Oct 2005 11:23:57
-0400)
X-Complaints-To: ab***@athenanews.com
Path:
TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfee d00.sul.t-online.de!t-onli ne.de!border2.nntp.dca.giganews.com!nntp.giganews. com!nx02.iad01.newshosting com!newshosting.com!novia!feed4.newsreader.com!new sreader.com!alt.athenanew s.com!not-for-mail
Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.webservices:8157
X-Tomcat-NG: microsoft.public.dotnet.framework.webservices

Hi Steven,

Thanks for the replay. Your assumptions are correct about something
extending MarshalByRefObject. I am not very good at .Net yet, so what I am going to do is send you the ip address of the webservice and let you
experiment with it (http://216.60.35.251/webService.asmx).
As of right not I can't change the code of the web service, but I might have to find a way if it won't work the way it is.

AliR.

"Steven Cheng[MSFT]" <st*****@online.microsoft.com> wrote in message
news:gb**************@TK2MSFTNGXA01.phx.gbl...
Hi Alir,

Welcome to MSDN newsgroup.
From your description, when you use the VS.NET IDE(sproxy.exe) to add
webreference for a c# created webservice in MFC application, you got some error on "one of the object wanting to extendMarshalByRefObject object".

Based on my experience, this is likelye due to the sproxy.exe can not
generate client type for some certain complex types in the webservice

which
is specific to .NET framework. Since sproxy.exe is used for generating
native c++ proxy class, it supports limited types, see:

http://msdn.microsoft.com/library/en...rverSPROXYType
Mapping.asp?frame=true

In your problem, seems the webservice contains some paramter or return
object which derived from MarshalByRefObject, yes? Would you provide the
detailed serverside webservice 's webmethod signature? Also, you can try
change the webmethod's paramter or return type to some simple types to see whether the problem will go away.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security

--------------------
From: "AliR" <Al**@online.nospam>
Newsgroups: microsoft.public.dotnet.framework.webservices
Subject: Using a WebService from VC++
Date: Thu, 6 Oct 2005 10:46:44 -0500
Lines: 15
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1506
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
NNTP-Posting-Host: 216.128.74.207
Message-ID: <43**********@alt.athenanews.com>
X-Trace: alt.athenanews.com 1128613678 216.128.74.207 (6 Oct 2005 11:47:58 -0400)
X-Complaints-To: ab***@athenanews.com
Path:

TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfee d00.sul.t-online.de!t-onli

ne.de!border2.nntp.dca.giganews.com!nntp.giganews. com!nx01.iad01.newshosting

com!newshosting.com!38.144.126.115.MISMATCH!feed7. newsreader.com!feed4.news
reader.com!newsreader.com!alt.athenanews.com!not-for-mail
Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.webservices:8131
X-Tomcat-NG: microsoft.public.dotnet.framework.webservices

Hi Everyone,

I have a Visual C++ MFC program, and I am trying to use a webservice

written
in C#. When I add the webservice to my project using Add Web Reference

the
sproxy compiler complains about one of the object wanting to extend
MarshalByRefObject object, and I get an error SDL1030.

I can use the webservice in a C# project just fine but not the C++.

Can anyone help me out with this?

Thanks
AliR.



Nov 23 '05 #6

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

Similar topics

3
by: dbradley | last post by:
Hi, I am trying to access a webservice using VC++.Net. When I try and add a webservice using Project/Add Webservice I get to messages: "No Web References were found on this page" and "the request...
0
by: Thijs | last post by:
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...
7
by: Kristof Thys via .NET 247 | last post by:
Post a new message to microsoft.public.dotnet.languages.vc http://www.dotnet247.com/247reference/default.aspx Hello, I've been struggling for weeks with this problem, I hope I find some...
1
by: dbradley | last post by:
Hi, I am trying to access a webservice using VC++.Net. When I try and add a webservice using Project/Add Webservice I get to messages: "No Web References were found on this page" and "the request...
0
by: Nalla | last post by:
Hi, I have a requirement to call webservices from my old C++ application.So first I tried with Vc++.net as follows.....There are 2 approach Dotnet frame work and soaptoolkit 3.0 I am not able to...
2
by: Call Web service dynamically. | last post by:
I have VC++.NET application which takes the Webservice URL at the runtime from the user and it should call the webservice method based on what the user has supplied.
1
by: Eric | last post by:
I need to call a function in a WebService from a VC++ 7.1 project. The WebService requires NTLM authentication and should be the user of the calling program. How should this be done? I have...
0
by: Sathya | last post by:
Hi, I have a vb.net webservice which takes XMLDocument as a parameter and returns bool. Signature of the method is some thing like this AddXmlEmpDetails(xmlEmp as XMLDocument) as Boolean. I...
0
by: Rob C | last post by:
I have several methods implemented in a webservice written in C#. The methods execute SQL against a SQL Server 2005 db and returns a Dataset (as XML). I am utilizing the webservice from a VC++...
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: 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: 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
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...
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
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
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,...
0
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...

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.