Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / September 2005

Tip: Looking for answers? Try searching our database.

Accessing a webservice using VC++.Net

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
dbradley@kinsale-capital.com - 14 Sep 2005 12:59 GMT
Hi, I am trying to access a webservice using VC++.Net. When I try and
add a webservice using Project/Add Webservice I get to messages: "No
Web References were found on this page" and "the request failed with
HTTP status 407:Proxy Access Denied"      Can anybody "baby step" me
through the procedure I need to follow in order to remedy this problem.

I just use C++ for its computational speed and am not a professional
programmer.
www.fruitfruit.com - 15 Sep 2005 01:58 GMT
I prefer to write webserivce server and client via gSOAP toolkit.
Here is the steps to run its calc sample project.

steps to build the calc server:
compile the header to generate stubs with soapcpp2.exe
D:\3rd\gsoap-win32-2.7\soapcpp2.exe
D:\3rd\gsoap-win32-2.7\samples\calc\calc.h
create an empty VC project, rename calcserver.c to calcserver.cpp, add
calc.h, calcserver.cpp, soapC.cpp, soapServer.cpp,stdsoap2.cpp to this
project.
add a line to calcserver.cpp #pragma comment(lib,"wsock32.lib")
add path of stdsoap2.h to include directory of the project.
build the project.
start the server:
calcserver 1010

steps to build the cacl client:
compile the header to generate stubs with soapcpp2.exe
D:\3rd\gsoap-win32-2.7\soapcpp2.exe
D:\3rd\gsoap-win32-2.7\samples\calc\calc.h
create an empty VC project, rename calcclient.c to calcclient.cpp, add
calc.h, calcclient.cpp, soapC.cpp, soapClient.cpp,stdsoap2.cpp to this
project.
add a line to calcclient.cpp #pragma comment(lib,"wsock32.lib")
add path of stdsoap2.h to include directory of the project.
modify server string in calcclient.cpp
const char server[] = "http://127.0.0.1:1010/calcserver";
build the project.
start the client
calcclient add 1 2
start the client

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.