Accessing Web Service via sockets. Error ->

  • Thread starter Thread starter pronto
  • Start date Start date
P

pronto

Hi guys.

I made Web Service (C#) and running it on my localhost (Win2000). It does
work from IE and from C# client application. Now I'm trying to create
application with Visual C++ 6 and get access to the same WebService.

What VC++ application does is : get HTML page from the URL and print it out
to stdout. It does work with regular sites (like www.cnn.com), but when I
specify URL to get access to my Web Service, I've got 401 error saying
ACCESS DENIED.

1. How to make it work from VC++6 compiled code ?
2. Is it possible to make it working from Unixes ? (get HTML vial sockets
and process according to some my logic)


regards
pronto
 
pronto,

Are you sending the request with the proper calls for the web service?
Getting a result from a web service entails more than just requesting a URL.
You have to format a request (with XML) which indicates what you want to
call, and any parameters that you are passing. For unmanaged C++, you
probably want to use the SOAP toolkit to do this (it can create proxies for
you, etc, etc).

Hope this helps.
 
Back
Top