473,320 Members | 1,977 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,320 software developers and data experts.

Accessing Web Service via sockets. Error ->

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
Nov 16 '05 #1
1 1426
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.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"pronto" <pr****@hotmail.com> wrote in message
news:ek*************@TK2MSFTNGP11.phx.gbl...
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

Nov 16 '05 #2

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

Similar topics

1
by: Eirik Brattbakk | last post by:
Hi I have some problems accessing a soap service made in c# using an ATL/MFC client over SSL. I have tried both CSoapMSXMLInetClient and CSoapWininetClient as template arguments with my stub...
3
by: Jim Lewis | last post by:
I have read several things that state accessing a Web Service through a Query String should work. However, when I try to execute http://localhost/webservice1/service1.asmx/HelloWorld I get the...
7
by: David Laub | last post by:
I've also posted this issue to a Sun/java formum, but since it appears to be an integration issue, this may be the better place to posr: I have written a dot net/c# Web Services doesn't fully...
0
by: whizpop | last post by:
Hi, First of all, thanks for a great starter kit, now If I could just get it to work (fully). I am trying to compile and run the solution/services all on a local dev box. I am able to...
0
by: Orbit | last post by:
Hi, I hope someone could help me. I have a simple web service that I developed on my laptop that resides within a large web application. It queries Northwind & presents the data in a grid in the...
7
by: GD | last post by:
Hi, I am trying to call a webservice from a windows service application. It works only if I launch the windows service app from VS.Net 2005 (Worked around from Main()) or from a winform test...
1
by: mdhaman | last post by:
hi, I have a windows service written in VB.Net and framework 2.0. It is a multithread service and it is using threadpool to manage threads. Recently I have started getting...
2
by: =?Utf-8?B?U2Vhbk1hYw==?= | last post by:
I am familiar with how to use winsock in vb6 to create a network app. I'm trying to find a way to take the current vb6 app and create a windows service using system.net.sockets. How do you create...
0
by: sbsrulz | last post by:
Hi all... I am using the parlay x third party call web service in my c# application. I coded a little and called the main functionality for making a call. Now when i test the service... Its there,...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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...

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.