Mega Code Archive

 
Categories / Visual C++ .NET / Network
 

Web Service with C++ net

<%@ WebService Class=MyServiceClass %> using namespace System; using namespace System::Web; using namespace System::Web::Services; namespace MyService {   [WebService(Description="Web Service",Namespace="http://www.yourdomain.com")]     public ref class UltraMaxServiceClass : public WebService     {     public:       [WebMethod(EnableSession=false, CacheDuration=60,BufferResponse=true, Description="descr here")]     String^ Uppercase(String^ text)     {       return text->ToUpper();     }     [WebMethod(Description="Adds two integers")]     int Add(int a, int b)     {       return a + b;     }          [WebMethod]     void DoNothing() {}   }; }