473,396 Members | 2,013 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.

Exposing data from XML Web Services via C#

Hi There

I've been handed an XML Web Service that I am required to use. C# can build a CLIENT (consumer) of this Web service, apparently quite nicely, with the "Add Web Reference" feature. A resulting C# Forms application builds perfectly well

But .... actually, I'm sorry to say this, but I need to build an 'unmanaged' client of this web service. When I "Add Web Reference" in a C++ project, the operation fails. SPROXY errs all over the place. SDL1030 and SDL1000, for example. Hmmm, this is the same exact Web Service that works perfectly under C#

OK. Now, I really, really, truly do need to access this Web Service in a compiled C++ app. There should be nothing theoretically that would prevent this from working, yes

But... let's suppose for a moment that there's no way to get the tools to work successfully

Is there a strategy to expose API's easily from a C# application out to a C++ application

a) I've heard about putting a COM interface on things, but haven't found sample code for C# to expose a COM interface yet. (JrnlPost seems to use .cpp's to implement the COM interface?, yes?

b) Hand coding interfaces through COM sounds horribly time-consuming, anyway. Is there not some decent, efficient way to do this? Any support for DCE RPC? Any support for C# to export classes with C or C++ calling convetions

Wouldn't it be cool if the errors were corrected so a fast, compiled, 'unmanaged' C++ app could use Web Services

Please tell me I'm not really in for a miserable experience just because sproxy.exe is barfing


Nov 16 '05 #1
0 1852

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

Similar topics

1
by: David | last post by:
Hello. How can I expose some mehods from my Windows Servise application as Web Service and access thm from other application?
1
by: Jo Blow | last post by:
Hi folks, I have a client that has a distributed access disaster that I want to move to a central ASP.NET system. I'm new to web services but is it possible to expose the raw database tables...
3
by: bill | last post by:
I need to open a asp.net web form from a classic asp page, and pass a username and password to the asp.net page. The username and password exist as session variables in the classic asp...
5
by: M O J O | last post by:
Hi, I want to expose a enum from another class, is that possible and how? Here's an example Public Class ClassMaster Public Enum Colors
8
by: Dave A | last post by:
I have a class called 'PrimaryKey' that represents the primary key of a table. PrimaryKeys can only be created and the class only implements .ToString(). The PrimaryKey class internally stores...
0
by: Shaun | last post by:
I have read several articles that tell me that a COM+ application can expose its components as web services, but can't get things to work for me. I have the following class (slightly modified...
4
by: =?Utf-8?B?QkogU2FmZGll?= | last post by:
We have a class that has a public property that is of type List<T>. FXCop generates a DoNotExposeGenericLists error, indicating "System.Collections.Generic.List<Tis a generic collection designed...
2
by: =?Utf-8?B?SWJyYWhpbS4=?= | last post by:
Hello, I have a client c# application from which I want to Add/Edit/Delete & list records by connecting to Web Service. HOw can I write classes & methods in Web service projet that will : ...
1
by: bantunks | last post by:
Hello, I am trying to figure out the advantages and disadvantages of exposing interfaces through Opaque data types in C. I have figured/found out the following two advantages 1. Higher level of...
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: 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:
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
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...
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,...

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.