473,569 Members | 2,542 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

webReference.Se tURL method with https connections

Basically we have a web method with a dynamic URL. The client is developed
in C++ and I've been using the webReference.Se tUrl(
"http://test.example.co m..." ) method successfully with various web method
URLs.

However, when we switched to using a secure connection, the call to
webReference.Se tUrl( "https://test.example.co m..." ) no longer functions.
The SetUrl() method is actually successful, but any following calls in to the
web reference fail.

I created a test app in C# and used the webRefence.URL property to
successfully set the url to both non-secure and secure URLs. Both work fine.
So the problem resides specifically with using https:// in the C++ client.
It's either a bug or I'm missing a step.

Any ideas?

Thank you very much,
Jason
Nov 23 '05 #1
4 6498
Hi Jason,

Welcome to webservice newsgroup.
From your description, you've creating webservice proxy in C++ application
to consume a certain webservice. It works well when through normal http
protocol. However, when the service switch to use https , the client side
will fail, yes?

As for the C++ application, is it a managed c++ application or pure
unmanaged c++ app? Based on my local test, the autogenerated unmanaged
proxy class seems hasn't provide the SetUrl function. Or maybe there has
something different from my setting?

In addition, have you tried cosuming some other webservice protected
through SSL? Just to confirm whether it is a service specific issue. Also,
we can try hard coding the https url in the proxy and compiled it and test
again.

Please feel free to let me know if there're anything else I missed.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

--------------------
Thread-Topic: webReference.Se tURL method with https connections
thread-index: AcXfJxcxIqIdX3G RRruJi930mi7alA ==
X-WBNR-Posting-Host: 66.237.208.195
From: "=?Utf-8?B?SmFzb24gUA= =?=" <lu******@onlin e.nospam>
Subject: webReference.Se tURL method with https connections
Date: Tue, 1 Nov 2005 12:59:03 -0800
Lines: 19
Message-ID: <32************ *************** *******@microso ft.com>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
NNTP-Posting-Host: TK2MSFTNGXA03.p hx.gbl 10.40.2.250
Path: TK2MSFTNGXA01.p hx.gbl!TK2MSFTN GXA03.phx.gbl
microsoft.publi c.dotnet.framew ork.webservices :8441
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.webservices

Basically we have a web method with a dynamic URL. The client is developed
in C++ and I've been using the webReference.Se tUrl(
"http://test.example.co m..." ) method successfully with various web method
URLs.

However, when we switched to using a secure connection, the call to
webReference.Se tUrl( "https://test.example.co m..." ) no longer functions.
The SetUrl() method is actually successful, but any following calls in to
the
web reference fail.

I created a test app in C# and used the webRefence.URL property to
successfully set the url to both non-secure and secure URLs. Both work
fine.
So the problem resides specifically with using https:// in the C++ client.

It's either a bug or I'm missing a step.

Any ideas?

Thank you very much,
Jason

Nov 23 '05 #2
Hi Steven,

We were able to debug further into the problem and ended up at line 2142 of
atlhttp.inl which says:

if ( currScheme != ATL_URL_SCHEME_ HTTP &&
!TSocketClass:S upportsScheme(c urrScheme) )
return false; // only support HTTP

On MSDN I found the following reference, which answers the question directly:

http://msdn.microsoft.com/library/de...ttpclientt.asp

"For this release, ATL Server does not support the HTTPS protocol either, but
the SecureSoap Sample demonstrates how CAtlHttpClientT can be used with
a class that provides HTTPS support."

Thanks,
Jason
"Steven Cheng[MSFT]" wrote:
Hi Jason,

Welcome to webservice newsgroup.
From your description, you've creating webservice proxy in C++ application
to consume a certain webservice. It works well when through normal http
protocol. However, when the service switch to use https , the client side
will fail, yes?

As for the C++ application, is it a managed c++ application or pure
unmanaged c++ app? Based on my local test, the autogenerated unmanaged
proxy class seems hasn't provide the SetUrl function. Or maybe there has
something different from my setting?

In addition, have you tried cosuming some other webservice protected
through SSL? Just to confirm whether it is a service specific issue. Also,
we can try hard coding the https url in the proxy and compiled it and test
again.

Please feel free to let me know if there're anything else I missed.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

--------------------
Thread-Topic: webReference.Se tURL method with https connections
thread-index: AcXfJxcxIqIdX3G RRruJi930mi7alA ==
X-WBNR-Posting-Host: 66.237.208.195
From: "=?Utf-8?B?SmFzb24gUA= =?=" <lu******@onlin e.nospam>
Subject: webReference.Se tURL method with https connections
Date: Tue, 1 Nov 2005 12:59:03 -0800
Lines: 19
Message-ID: <32************ *************** *******@microso ft.com>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
NNTP-Posting-Host: TK2MSFTNGXA03.p hx.gbl 10.40.2.250
Path: TK2MSFTNGXA01.p hx.gbl!TK2MSFTN GXA03.phx.gbl
Xref: TK2MSFTNGXA01.p hx.gbl
microsoft.publi c.dotnet.framew ork.webservices :8441
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.webservices

Basically we have a web method with a dynamic URL. The client is developed
in C++ and I've been using the webReference.Se tUrl(
"http://test.example.co m..." ) method successfully with various web method
URLs.

However, when we switched to using a secure connection, the call to
webReference.Se tUrl( "https://test.example.co m..." ) no longer functions.
The SetUrl() method is actually successful, but any following calls in to
the
web reference fail.

I created a test app in C# and used the webRefence.URL property to
successfully set the url to both non-secure and secure URLs. Both work
fine.
So the problem resides specifically with using https:// in the C++ client.

It's either a bug or I'm missing a step.

Any ideas?

Thank you very much,
Jason

Nov 23 '05 #3
Thank you for your followup.

Glad that you've figured out the problem. If there're any further things we
can help, please feel free to post here.
Good Luck!

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
Thread-Topic: webReference.Se tURL method with https connections
thread-index: AcXfv8fE9I5reAZ ORsalS/nQcZtgWw==
X-WBNR-Posting-Host: 66.237.208.195
From: "=?Utf-8?B?SmFzb24gUA= =?=" <lu******@onlin e.nospam>
References: <32************ *************** *******@microso ft.com>
<Yw************ **@TK2MSFTNGXA0 1.phx.gbl>
Subject: RE: webReference.Se tURL method with https connections
Date: Wed, 2 Nov 2005 07:12:03 -0800
Lines: 104
Message-ID: <4E************ *************** *******@microso ft.com>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
NNTP-Posting-Host: TK2MSFTNGXA03.p hx.gbl 10.40.2.250
Path: TK2MSFTNGXA01.p hx.gbl!TK2MSFTN GXA03.phx.gbl
microsoft.publi c.dotnet.framew ork.webservices :8451
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.webservices

Hi Steven,

We were able to debug further into the problem and ended up at line 2142 of
atlhttp.inl which says:

if ( currScheme != ATL_URL_SCHEME_ HTTP &&
!TSocketClass:S upportsScheme(c urrScheme) )
return false; // only support HTTP

On MSDN I found the following reference, which answers the question
directly:

http://msdn.microsoft.com/library/de...us/vclib/html/
vclrfcatlhttpcl ientt.asp

"For this release, ATL Server does not support the HTTPS protocol either,
but
the SecureSoap Sample demonstrates how CAtlHttpClientT can be used with
a class that provides HTTPS support."

Thanks,
Jason
"Steven Cheng[MSFT]" wrote:
Hi Jason,

Welcome to webservice newsgroup.
From your description, you've creating webservice proxy in C++ application to consume a certain webservice. It works well when through normal http
protocol. However, when the service switch to use https , the client side
will fail, yes?

As for the C++ application, is it a managed c++ application or pure
unmanaged c++ app? Based on my local test, the autogenerated unmanaged
proxy class seems hasn't provide the SetUrl function. Or maybe there has
something different from my setting?

In addition, have you tried cosuming some other webservice protected
through SSL? Just to confirm whether it is a service specific issue. Also, we can try hard coding the https url in the proxy and compiled it and test again.

Please feel free to let me know if there're anything else I missed.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

--------------------
Thread-Topic: webReference.Se tURL method with https connections
thread-index: AcXfJxcxIqIdX3G RRruJi930mi7alA ==
X-WBNR-Posting-Host: 66.237.208.195
From: "=?Utf-8?B?SmFzb24gUA= =?=" <lu******@onlin e.nospam>
Subject: webReference.Se tURL method with https connections
Date: Tue, 1 Nov 2005 12:59:03 -0800
Lines: 19
Message-ID: <32************ *************** *******@microso ft.com>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
NNTP-Posting-Host: TK2MSFTNGXA03.p hx.gbl 10.40.2.250
Path: TK2MSFTNGXA01.p hx.gbl!TK2MSFTN GXA03.phx.gbl
Xref: TK2MSFTNGXA01.p hx.gbl
microsoft.publi c.dotnet.framew ork.webservices :8441
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.webservices

Basically we have a web method with a dynamic URL. The client is developed in C++ and I've been using the webReference.Se tUrl(
"http://test.example.co m..." ) method successfully with various web method URLs.

However, when we switched to using a secure connection, the call to
webReference.Se tUrl( "https://test.example.co m..." ) no longer functions. The SetUrl() method is actually successful, but any following calls in to
the
web reference fail.

I created a test app in C# and used the webRefence.URL property to
successfully set the url to both non-secure and secure URLs. Both work
fine.
So the problem resides specifically with using https:// in the C++ client.
It's either a bug or I'm missing a step.

Any ideas?

Thank you very much,
Jason


Nov 23 '05 #4
thebe14
1 New Member
Thank you for your followup.

Glad that you've figured out the problem. If there're any further things we
can help, please feel free to post here.
Good Luck!

Steven Cheng
Hello, I have the same problem. And it might be that Jason found the problem, but the solution is not so obvious. Not at all.

That sample is using some server-side DLL that is both the webservice handler, an ISAPI filter and whatnot. I need a simple way of calling a webservice, from C++, that will work over HTTPS.

Trying to use the service like this:

CServiceT<CSecu reSoapSocketCli ent> ws1;
CServiceT<CSoap MSXMLInetClient > ws2;
CServiceT<CSoap WininetClient> ws3;

None of these approaches work. The webservice can be accessed OK from C# in a test project, but I need it done in C++. Anyone could give me a pointer in the right direction?

Thanks,
Levente
Jun 22 '06 #5

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

Similar topics

0
1648
by: Grant Edwards | last post by:
In the program shown below, all of the connections to the servers are using port 443 and https (TLS protocol) -- both the initial connection to login.postini.com and subsequent connections to user-3.postini.com. It works, and I don't mind that it's encrypting the sessions as well as the login, but I'd like understand why the connections to...
16
60586
by: Paul Sweeney | last post by:
Does anyone know of a working (python) https proxy which allows viewing of unencrypted data being sent from my browser to an https site? I've worked my way through most on the list at http://xhaus.com/alan/python/proxies.html, but while many claim to support https, if you actually point your browser at the proxies, they work fine for http,...
6
17150
by: Todd Peterson | last post by:
I'm encountering some wierd behavior with a <link> tag over an HTTPS connection, vs. an HTTP connection... In an ASP/HTML page on my website, I've add a <link rel="shortcut icon"...> in order to allow the users to add a shortcut (with icon) on their desktop, as well as seeing the icon in the URL. Our development server allows both HTTP and...
5
1545
by: Søren Reinke | last post by:
Hi there I have 1 solution (visual studio 2005) within this solution i have many projects, they should all be able to have the same webreference to a webservice. But as far as i can figure out, i must have 1 webreference per project, and not 1 for the whole solution. How can i solve this ?
7
1845
by: Masahiro Ito | last post by:
I need to be login to several websites and download files that are https connections. I just tried IPWorks demo, but it does not seem to offer https. Does anyone know an https capable product, or a way I can do this myself? Thank you. Masahiro
3
5367
by: ghassett | last post by:
Hello, When I have a Quicktime object embedded in my web page, and I use Javascript to set its URL, the clip always starts playing immediately, even if I have the player's autoplay property set to false. Here is a code snippet: <EMBED width="100%" height="100%" TYPE="video/quicktime" PLUGINSPAGE="www.apple.com/quicktime/download"
5
6195
by: Kimba | last post by:
Hi. Using VStudio I have developed a WebService which I placed onto several servers. However my application can only access one on server. During runtime, I tried to change the URL of the webreference to the other server but that does not work -- the webreference still thinks it is the old one and errors out. I need to be able to...
4
2090
by: bkasmai | last post by:
My asp.net application (developed using vs2003) runs fine on a windows 2000 server using iis 5.0. Our network manager wants to do away with any http connections and only use https for services that are used by external users. I have not got a clue how to go about this. My users are authenticated directly by querying a sql table where the user...
0
2510
by: taylorjonl | last post by:
I am having a problem generating some soap proxies dynamically using almost the exact same code as in the MSDN sample. http://msdn2.microsoft.com/en-us/library/system.web.services.description.webreference(VS.80).aspx It has very few differences, mainly I had to manipulate the document to remove the Any tags that caused 400+ validation...
0
7700
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7924
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8125
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
6284
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5513
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5219
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3642
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2114
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
938
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.