473,383 Members | 1,739 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Accessing a webservice using VC++.Net

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.

Nov 17 '05 #1
1 1361
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
Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: dbradley | last post by:
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...
3
by: dbradley | last post by:
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...
1
by: Rob C | last post by:
We have a client/server application that is written in VC++/MFC. We are trying to integrate with a 3rd party product that exposes its data through a web service. I am trying to figure out the...
5
by: AliR | last post by:
Hi Everyone, I have a Visual C++ MFC program, and I am trying to use a webservice written in C#. When I add the webservice to my project using Add Web Reference the sproxy compiler complains...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.