DotNet Visual C: i wish to access web service

  • rafatsubhanvia_net247 / 206 / Sun, 31 Jan 2010 17:55:00 GMT / Comments (0)
  • (Type your message here)
    #include "stdafx.h"
    #using <mscorlib.dll>
    using namespace System;
    #import <msxml4.dll>
    using namespace MSXML2;
    using namespace MSXML2::ServerXMLHTTPClass;

    int _tmain()
    {
    // TODO: Please replace the sample code below with your own.
    ServerXMLHTTPClass *x = new ServerXMLHTTPClass();
    String *strQuery=S"https://www.maxmind.com/app/ccv2r?i=24.24.24.24&domain=yahoo.com&city=New+York®ion=NY&postal=10011&country=US&bin=549099"
    x->open("GET",strQuery,false);
    x->send();
    Console::WriteLine(x->responseText());
    Console::ReadLine();
    Console::ReadLine();
    }
    this is my code and i am getting error c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\ServProv.h(93) : error C2872: 'IServiceProvider' : ambiguous symbol
    could be 'c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\ServProv.h(48) : System::IServiceProvider IServiceProvider'
    or 'stdafx.cpp(0) : System::IServiceProvider'

    Please help me

    ----------
    From: Rafat Subhan

    --------
    Posted by a user from .NET 247 (http://www.dotnet247.com/)

    <Id>RjWpizbtz0eOYO7bAZME9A==</Id>

  • Keywords:

    wish, access, web, service, dotnet, visual, .net

  • http://dotnet.itags.org/visual-c/71187/«« Last Thread - Next Thread »»