Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. ATL / WTL / STL
  4. C++ compile error C3358: CSoapHandler symbol not found

C++ compile error C3358: CSoapHandler symbol not found

Scheduled Pinned Locked Moved ATL / WTL / STL
c++securitywcfsysadminxml
2 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    nativespirits
    wrote on last edited by
    #1

    I have the code exactly like the sample OnlineAddressBook from the MSDN library yet I get the error whereas that app does not. Such simple things can stop a programmer for hours. Here is the code I am using. Note that the Web Service this code is in compiles fine, it's when I compile the SRF (ATL Server) project that the error occurs, let me know if you need to see more code. // DataConsumerWS.h : Defines the ATL Server request handler class // #pragma once namespace DataConsumerWSService { const wchar_t MYDATASOURCE[] = L"Provider=SQLOLEDB.1ersist Security Info=False;User ID=me;Initial Catalog=mine;Data Source=SERVER;Use Procedure for Prepare=1;Auto Translate=Trueacket Size=4096;Use Encryption for Data=False;Tag with column collation when possible=False"; // all struct, enum, and typedefs for your webservice should go inside the namespace // IDataConsumerWSService - web service interface declaration // [ uuid("2E179D71-E436-42EE-A1D6-00758BF3D7AA"), object ] __interface IDataConsumerWSService { // HelloWorld is a sample ATL Server web service method. It shows how to // declare a web service method and its in-parameters and out-parameters [id(1)] HRESULT GetStudents([out] int *arrSize,[out,size_is(*arrSize)] BSTR **NameList,[out,size_is(*arrSize)] LONG **IDList); // TODO: Add additional web service methods here }; // DataConsumerWSService - web service implementation // [ request_handler(name="Default", sdl="GenDataConsumerWSWSDL"), soap_handler( name="DataConsumerWSService", namespace="urn:DataConsumerWSService", protocol="soap" ) ] class CDataConsumerWSService : public IDataConsumerWSService { public: // uncomment the service declaration(s) if you want to use // a service that was generated with your ISAPI extension CDataConnection m_dc; HTTP_CODE InitializeHandler(AtlServerRequest *pRequestInfo, IServiceProvider *pProvider) { if (HTTP_SUCCESS != CSoapHandler::InitializeHandler(pRequestInfo, pProvider)) return HTTP_FAIL;

    N 1 Reply Last reply
    0
    • N nativespirits

      I have the code exactly like the sample OnlineAddressBook from the MSDN library yet I get the error whereas that app does not. Such simple things can stop a programmer for hours. Here is the code I am using. Note that the Web Service this code is in compiles fine, it's when I compile the SRF (ATL Server) project that the error occurs, let me know if you need to see more code. // DataConsumerWS.h : Defines the ATL Server request handler class // #pragma once namespace DataConsumerWSService { const wchar_t MYDATASOURCE[] = L"Provider=SQLOLEDB.1ersist Security Info=False;User ID=me;Initial Catalog=mine;Data Source=SERVER;Use Procedure for Prepare=1;Auto Translate=Trueacket Size=4096;Use Encryption for Data=False;Tag with column collation when possible=False"; // all struct, enum, and typedefs for your webservice should go inside the namespace // IDataConsumerWSService - web service interface declaration // [ uuid("2E179D71-E436-42EE-A1D6-00758BF3D7AA"), object ] __interface IDataConsumerWSService { // HelloWorld is a sample ATL Server web service method. It shows how to // declare a web service method and its in-parameters and out-parameters [id(1)] HRESULT GetStudents([out] int *arrSize,[out,size_is(*arrSize)] BSTR **NameList,[out,size_is(*arrSize)] LONG **IDList); // TODO: Add additional web service methods here }; // DataConsumerWSService - web service implementation // [ request_handler(name="Default", sdl="GenDataConsumerWSWSDL"), soap_handler( name="DataConsumerWSService", namespace="urn:DataConsumerWSService", protocol="soap" ) ] class CDataConsumerWSService : public IDataConsumerWSService { public: // uncomment the service declaration(s) if you want to use // a service that was generated with your ISAPI extension CDataConnection m_dc; HTTP_CODE InitializeHandler(AtlServerRequest *pRequestInfo, IServiceProvider *pProvider) { if (HTTP_SUCCESS != CSoapHandler::InitializeHandler(pRequestInfo, pProvider)) return HTTP_FAIL;

      N Offline
      N Offline
      nativespirits
      wrote on last edited by
      #2

      Never mind. The problem with using MSDN samples is not being clear on Wizard options selected. Anyway, as I was perusing the process of running sproxy.exe for Console App linkage to ATL Web Services, I came across the .wsdl file that needed to be generated. .NET Studio does this under the Add Rerferences utility, however you first have to open the .disco file to get the http path to your web service. Studio then generates the XML document to link your client to the soap handlers ( .wsdl file). Tis done and tis works. Whew!

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups