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.SetURL method with https connections
thread-index: AcXfJxcxIqIdX3GRRruJi930mi7alA==
X-WBNR-Posting-Host: 66.237.208.195
From: "=?Utf-8?B?SmFzb24gUA==?=" <lu******@online.nospam>
Subject: webReference.SetURL method with https connections
Date: Tue, 1 Nov 2005 12:59:03 -0800
Lines: 19
Message-ID: <32**********************************@microsoft.co m>
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.public.dotnet.framework.webservices
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
microsoft.public.dotnet.framework.webservices:8441
X-Tomcat-NG: microsoft.public.dotnet.framework.webservices
Basically we have a web method with a dynamic URL. The client is developed
in C++ and I've been using the webReference.SetUrl(
"http://test.example.com..." ) method successfully with various web method
URLs.
However, when we switched to using a secure connection, the call to
webReference.SetUrl( "https://test.example.com..." ) 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