Works good for me.
Make sure COM is initialized. Call AfxOleInit();
Otherwise what error are you getting for hr

----- Original Message -----
From: "Tom Archer" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 12, 2002 7:29 PM
Subject: Re: [DOTNET] Beginner-level ATL Server question


> My code compiles, but obviously I'm still not doing something correct as
the
> service fails to work. Here's the code if you could look over it briefly:
>
>   CMyFirstATLServerWebServiceService Service;
>
>   BSTR bstrReturn;
>   HRESULT hr = Service.HelloWorld( L"Calling Web Service...",
&bstrReturn );
>   if (SUCCEEDED(hr))
>   {
>     CString strDisplay( bstrReturn );
>     ::SysFreeString( bstrReturn );
>     AfxMessageBox(strDisplay);
>   }
>   else
>   {
>     AfxMessageBox("Error connecting to Web Service");
>   }
>
>
>
> -----Original Message-----
> From: dotnet discussion [mailto:[EMAIL PROTECTED]]On Behalf Of
> Leon Finker
> Sent: Friday, April 12, 2002 4:14 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [DOTNET] Beginner-level ATL Server question
>
>
> You should see a typedef:
> typedef  CMyFirstATLServerWebServiceServiceT<>
> CMyFirstATLServerWebServiceService;
>
>
> ----- Original Message -----
> From: "Tom Archer" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, April 12, 2002 4:00 PM
> Subject: [DOTNET] Beginner-level ATL Server question
>
>
> > I'm trying to get started with ATL Server and evidently have an old demo
> > that was created with a beta version of Visual Studio.NET where I'm
having
> a
> > problem.
> >
> > The first step is to to create an ATL Server Web Service (done that)
> >
> > The next step then tells me to use the Add Web Reference from the
Project
> to
> > create the files necessary to interact with the service. That works ok.
> >
> > However, the last bit has me instantiate the service as follows :
> >
> > CMyFirstATLServerWebServiceService Service;
> >
> > The problee seems to be that the wizard generated class for the ATL
server
> > is now template based and defined as follows:
> >
> > template <typename TClient = CSoapSocketClientT<> >
> > class CMyFirstATLServerWebServiceServiceT :
> >         public TClient,
> >         public CSoapRootHandler
> > {
> > ...
> >
> > Therefore, I don't know where to get the values to satisfy the template
> > parameters in order to instantiate my service. Can someone help me here?
> >
> > Thanks!!!
> > Tom
> >
> > You can read messages from the DOTNET archive, unsubscribe from DOTNET,
or
> > subscribe to other DevelopMentor lists at http://discuss.develop.com.
>
> You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
> subscribe to other DevelopMentor lists at http://discuss.develop.com.
>
> You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
> subscribe to other DevelopMentor lists at http://discuss.develop.com.

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to