473,748 Members | 10,058 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to make RPC calls in C++ .Net webservice


Hello,
Currenlty we use ISAPI DLLS on our site. These dlls are making rpc calls to
another NT services on that same machine. I am planning to use C++ web
service using .NET 2003 instead of ISAPI dlls. However i want to use existing
mechanisam defined in NT serives. So my question is how can we make rpc calls
(Way we can make from isapi dlls) from webservice.

I tried to add simple .idl file in C++ web service project. It compiles to
client and server stubs. Once i try to include client stub in webservice,
client stub does not compile. If i try to use precompile header (by changing
project settings ) i get follwoing errors during compil time:
error C2857: '#include' statement specified with the /Ycstdafx.h
command-line option was not found in the source file
OR
error D2016 : '/YXstdafx.h' and '/clr' command-line options are incompatible
If i do not include any precompile header, it compiles but i get following
error at link time:
error LNK2020: unresolved token (0A000013) MIDL_user_alloc ate
error LNK2020: unresolved token (0A000014) MIDL_user_free

What am i doing wrong??
Please help me.
Thanks in advance.
--
Bhavesh Padmani
Nov 17 '05 #1
1 4254
You need to define these 2 functions.

See:
http://msdn.microsoft.com/library/de...allocate_1.asp

If you want to use precompiled headers you need to switch to using the /Yc
and /Yu model instead of /YX.

Ronald Laeremans
Visual C++ team

"Bhavesh Padmani" <Bh************ @discussions.mi crosoft.com> wrote in
message news:33******** *************** ***********@mic rosoft.com...

Hello,
Currenlty we use ISAPI DLLS on our site. These dlls are making rpc calls
to
another NT services on that same machine. I am planning to use C++ web
service using .NET 2003 instead of ISAPI dlls. However i want to use
existing
mechanisam defined in NT serives. So my question is how can we make rpc
calls
(Way we can make from isapi dlls) from webservice.

I tried to add simple .idl file in C++ web service project. It compiles to
client and server stubs. Once i try to include client stub in webservice,
client stub does not compile. If i try to use precompile header (by
changing
project settings ) i get follwoing errors during compil time:
error C2857: '#include' statement specified with the /Ycstdafx.h
command-line option was not found in the source file
OR
error D2016 : '/YXstdafx.h' and '/clr' command-line options are
incompatible
If i do not include any precompile header, it compiles but i get
following
error at link time:
error LNK2020: unresolved token (0A000013) MIDL_user_alloc ate
error LNK2020: unresolved token (0A000014) MIDL_user_free

What am i doing wrong??
Please help me.
Thanks in advance.
--
Bhavesh Padmani

Nov 17 '05 #2

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

Similar topics

2
3387
by: Doug | last post by:
Hello, For a long time we've been told that you can't overload web service calls but recently we found a way to do it using the WebMethod attribute as in the example below. This will allow us as you can see to have two web service methods of the same name and will show them as such in intellisense. I am wondering if there is any concern in doing this? Is there any documentation anywhere that explains what might be happening with SOAP...
0
1092
by: ranga | last post by:
>> don't know if this is the right group to post this message. but trying anyway! >> the client i am developing using C# needs to call 3 WebMethods in a webservice together as a batch-- does XML Web Service have support for calling webmethods in a batch or transaction ?. case-1: say the 3 methods do an insert, update and delete respectively on a database. How can I call all the 3 of them transactionally case-2: say the 3 methods are...
3
1035
by: Ryan Moore | last post by:
Does anyone know if there is another method for making asynchronous client side calls to server methods (without page refreshing) besides JavaScript Remote Scripting? thnx
1
2433
by: Marc Eggenberger | last post by:
Hi there .. I have the following scenario. I have a Webservice which is running under Win2003/IIS6 with .Net1.1 The Service itselfs connects to a database which is a SQL 2000 on a Server in the same domain. Client is a Windows Form Client (no ASP.NET yet) which connects to the WebService. Before WebService I would make a SQL Server connection with
1
1107
by: MichaelY | last post by:
Looking for some best-practice advice.... Let's say I have an W2k3 / IIS 6.0 box that is running a website with 2 vdirs (seperate applications) underneath it. Each of these vdirs is in it's own application pool (so I have 2 w3 workers). What are the potential problems / issues / benefits with making ASMX calls between the workers??? (For example, app A is the web service that I want to call from app B). I've seen / heard many say...
5
4377
by: SenthilVel | last post by:
Hi Can any one let me know how i can perform a Asychronous calll in a web service ? or using a thread in Asmx a better solution than the async call ? pls send me any link to example, where i can get this answer.. Thanks
1
1182
by: SenthilVel | last post by:
Hi all i have a requirement in my application where in need to call a web service: 1. My client calls my webservice . 2. when i receive a call from my web servcie i need to notify my client that "Process started". 3. i need to return the Message "Process Started " and in the background i need to continue the work which the WebService method is intended to do . 4. once i complete the work in the webservice , i need to send a reault back
4
1292
by: Hao | last post by:
I developed a ASMX web service with empty boday (return immediately). The API has a few parameters, all .Net objects. The client application is a simple WCF client keep calling this ASMX web service API. I am measuring the performance of ASMX. What I found is that the first a few thousand calls are all getting through quickly as I expected. Then the call was blocked by IIS or ASP.Net because my break point does not get hit for a few...
1
1114
by: =?Utf-8?B?Sm9zZXBoIEsuIENvYmI=?= | last post by:
I was wondering if there is a simple way to persist a value between calls to a Webservice that would yield something similar to a Session variable or Query string? Specifically, I'm trying to pass a parameter to a Crystal Report webservice which requires binding during Instantiation. I need set the value of the string at this time. Thanks
0
8984
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9363
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9238
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6793
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6073
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4593
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4864
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3300
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
2
2775
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.