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

Overriding CSoapHandler::InitializeHandler in ATL Server webservice ?

Hi There!

I have an ATL Server Webservice created with the VS
Wizard. In that service I wish to Initialize
an ISAPI service (through a call to the
m_spServiceProvider member) for that handler. I figure the
place to do it is in an override of the InitializeHandler
() member function but according to the documentation a
lot of initalization goes on in the
CSoapHandler::InitializeHAndler() so I thought I would do
my initialization and then call:

__super::InitializeHandler( pRequestInfo, pProvider );

to make sure I get all the initialization of the
CSoapHandler version. This however doesn't seem to work.
My webservice client times out waiting for the webservice
to initialize....

Why is that?

I have tried leaving out the call to "__super..." abd just
return HHTP_SUCCESS from my InitializeHAndler but the
result is the same.

Q2: Why is there no separate ATL Server newsgroup?

Any help much appreciated.
Nov 16 '05 #1
2 1145
Hello, John

Could you please provide a few more details on your ISAPI service? How do
you initialize it?
Based on your description, the problem seems to be in the ISAPI service
initialization.
You need to call __super::InitializeHandler( pRequestInfo, pProvider); ,
the Soap Handler will not work without this step.

Also, InitializeHandler is invoked for each request. If you want to
initialize your ISAPI service (which, most likely, is to be used by multiple
request handler instances)
you might need to move the initializzation code in the GetExtensionVersion
method of you CIsapiExtension derivative.

--
--
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Please do not send email directly to this alias. It is for newsgroup
purposes only.

thanks,
bogdan


"john sparrow" <an*******@discussions.microsoft.com> wrote in message
news:0a****************************@phx.gbl...
Hi There!

I have an ATL Server Webservice created with the VS
Wizard. In that service I wish to Initialize
an ISAPI service (through a call to the
m_spServiceProvider member) for that handler. I figure the
place to do it is in an override of the InitializeHandler
() member function but according to the documentation a
lot of initalization goes on in the
CSoapHandler::InitializeHAndler() so I thought I would do
my initialization and then call:

__super::InitializeHandler( pRequestInfo, pProvider );

to make sure I get all the initialization of the
CSoapHandler version. This however doesn't seem to work.
My webservice client times out waiting for the webservice
to initialize....

Why is that?

I have tried leaving out the call to "__super..." abd just
return HHTP_SUCCESS from my InitializeHAndler but the
result is the same.

Q2: Why is there no separate ATL Server newsgroup?

Any help much appreciated.

Nov 16 '05 #2
Hello Bogdan,

I guess I didn't express myself very clearly ;-). I have
an ISAPI service that I want to use from
several "soap_methods" in my handler. One approach I could
use is to call m_spServiceProvider->QueryService() for the
service in each "soap_method". Since one request maps to
an invocation of one "soap_method" and one only I guess
this would be okay. However, instead of having duplicate
code in all of my "soap_method" definitions I thought it
would be nicer to query for the service in
InitializeHandler().

I tried this and called __super::InitializeHandler(
pRequestInfo, pProvider); and my service stalled, but it
was because I messed up; I called the __super after I did
my own initialization instead of before. Pure stupidity on
my part. Now, when I call __super first thing everything
works like a charm.

Thanks for your response though, and thank you for a great
book on ATL Server!

BR

JS
-----Original Message-----
Hello, John

Could you please provide a few more details on your ISAPI service? How doyou initialize it?
Based on your description, the problem seems to be in the ISAPI serviceinitialization.
You need to call __super::InitializeHandler( pRequestInfo, pProvider); ,the Soap Handler will not work without this step.

Also, InitializeHandler is invoked for each request. If you want toinitialize your ISAPI service (which, most likely, is to be used by multiplerequest handler instances)
you might need to move the initializzation code in the GetExtensionVersionmethod of you CIsapiExtension derivative.

--
--
--
This posting is provided "AS IS" with no warranties, and confers no rights.Please do not send email directly to this alias. It is for newsgrouppurposes only.

thanks,
bogdan


"john sparrow" <an*******@discussions.microsoft.com> wrote in messagenews:0a****************************@phx.gbl...
Hi There!

I have an ATL Server Webservice created with the VS
Wizard. In that service I wish to Initialize
an ISAPI service (through a call to the
m_spServiceProvider member) for that handler. I figure the place to do it is in an override of the InitializeHandler () member function but according to the documentation a
lot of initalization goes on in the
CSoapHandler::InitializeHAndler() so I thought I would do my initialization and then call:

__super::InitializeHandler( pRequestInfo, pProvider );

to make sure I get all the initialization of the
CSoapHandler version. This however doesn't seem to work.
My webservice client times out waiting for the webservice to initialize....

Why is that?

I have tried leaving out the call to "__super..." abd just return HHTP_SUCCESS from my InitializeHAndler but the
result is the same.

Q2: Why is there no separate ATL Server newsgroup?

Any help much appreciated.

.

Nov 16 '05 #3

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

Similar topics

2
by: callmebill | last post by:
I'm having a tough time figuring this one out: class MyKBInterrupt( ..... ): print "Are you sure you want to do that?" if __name__ == "__main__": while 1: print "Still here..."
3
by: Muntz | last post by:
Hi - we are MSDN Enterprise subscribers, our no-spam address is munter@computershare.com We are currently trying to replace a SoapToolkit web-service with a .NET WebMethod implementation, but...
1
by: sun_hcl | last post by:
I am using windows RMS software which is based on .NET Web Service. Well it provides lot of functionality exposed in form of Web SERVICES. I want to know whether i can override the web service....
4
by: drb | last post by:
Hi, I'm hoping this is a stupid question, so I apologize in advance. After creating WSDL files from scratch for a new web service, I used the WSDL.exe tool to generate C# stubs for both the...
1
by: hawkeye.parker | last post by:
using .net 1.1 i think i might want to replace the xml serializer which my .Net webservice uses with a custom serializer. anyone know: a) is this possible? b) if so, is it terribly difficult...
7
by: Michael Peters | last post by:
I wish to change/set the namespace for a header in my web service. I have found the following code and it does not appear to work and my assumption is because I am using RPC encoding... ...
3
by: Mark | last post by:
I'm consuming a webservice that makes a simple object available. The object class is marked in the web service as . I have a web application that consumes and uses this web service's class. When...
6
by: Doug Ferguson | last post by:
I am using a webservice client that was created from a WSDL file in .Net 1.1. The client ALWAYS works the first time I call it. The second call returns one of two exceptions. It either returns...
1
by: showbizzansh | last post by:
Server Error in '/ExportReport' Application. -------------------------------------------------------------------------------- Method 'ISCREditableRTFExportFormatOptions_reserved5' on type...
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
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
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
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
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...

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.