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. Accessing web service in native C++ application

Accessing web service in native C++ application

Scheduled Pinned Locked Moved ATL / WTL / STL
helpc++wcfcsharpcom
2 Posts 2 Posters 3 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.
  • V Offline
    V Offline
    vipin_nvk
    wrote on last edited by
    #1

    I need to access a .NET web service in a native C++ application. People have suggested to use gSOAP (which is costly for a commercial license) and I have found articles where the same can be done using SOAP tool kit (which is no longer supported by microsoft) To use SOAP toolkit method MSXML should be installed on the PC, and ours is a portable application we cannot afford it. I looked at other alternatives and found the following article - http://support.microsoft.com/kb/908574[^] But I am getting the following errors: error C2065: 'IHelloWorldPtr' : undeclared identifier error C2146: syntax error : missing ';' before identifier 'ptrHW' error C3861: 'ptrHW': identifier not found error C2065: 'ptrHW' : undeclared identifier error C2227: left of '->SayHelloWorld' must point to class/struct/union/generic type I am new to COM and .NET can somebody help to resolve the issue. And is this approach the write way to access .NET web services? Thanx in advance

    Y 1 Reply Last reply
    0
    • V vipin_nvk

      I need to access a .NET web service in a native C++ application. People have suggested to use gSOAP (which is costly for a commercial license) and I have found articles where the same can be done using SOAP tool kit (which is no longer supported by microsoft) To use SOAP toolkit method MSXML should be installed on the PC, and ours is a portable application we cannot afford it. I looked at other alternatives and found the following article - http://support.microsoft.com/kb/908574[^] But I am getting the following errors: error C2065: 'IHelloWorldPtr' : undeclared identifier error C2146: syntax error : missing ';' before identifier 'ptrHW' error C3861: 'ptrHW': identifier not found error C2065: 'ptrHW' : undeclared identifier error C2227: left of '->SayHelloWorld' must point to class/struct/union/generic type I am new to COM and .NET can somebody help to resolve the issue. And is this approach the write way to access .NET web services? Thanx in advance

      Y Offline
      Y Offline
      Yusuf
      wrote on last edited by
      #2

      Are you following that example literally? The MSDN how to is very old and the webservice it is pointing to http://apps.gotdotnet.com/QuickStart/HelloWorld/HelloWorld.asmx?WSDL[^] no longer exists. You need to follow the spirit of the example with different or webservice. try this http://www.w3schools.com/webservices/tempconvert.asmx[^] http://www.w3schools.com/webservices/tempconvert.asmx?WSDL[^]

      Yusuf May I help you?

      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