473,404 Members | 2,187 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,404 software developers and data experts.

SSL and web Services

I have a web Service that is accessing an Oracle back-end
database through a Forte layer via SOAP and XML. The
clients access the web service through SSL and it returns
the data it has recieved from the Forte layer. On test
machines (Windows 2000 Pro) there is no problem. The SSL
works fine, the web service returns the pages and data
without any problems. When I deployed the application to
the server (Win2K Server) the page returns with no data.
Somewhere, there is a problem retriving data from the
Forte layer to the Web Service. can this be an SSL
issue? Has anyone had any experience with anything such
as this? Any help or ideas would be greatly appreciated.
Brainstorm ideas welcome also!!!

Thanks in advance,
Tom
Nov 17 '05 #1
5 2749
Steve,
I really appreciate your reply. As I am a novice at SSL,
can you give some more detail? For example, namespaces to
add, where this code goes and what it does, etc.

Again, thank you.

Tom
-----Original Message-----
I don't believe IIS in windows Pro supports true SSL. Only Windows Server does.You may need some code like this to support the web service call with SSL enabled:

'Set the web service's Credentials to Windows credentials of the user calling this application
wsProxy.Credentials = CredentialCache.DefaultCredentials

'Set the client's certificate

If sCertName.Length <> 0 Then

Dim x509 As X509Certificate = X509Certificate.CreateFromCertFile(sCertName)
wsProxy.ClientCertificates.Add(x509)

End If
--
I hope this helps,
Steve C. Orr, MCSD
http://Steve.Orr.net

"Thomas Connolly" <th*************@us.ssiworldwide.com>

wrote in message news:042801c35548$71346010
$a*******@phx.gbl...
I have a web Service that is accessing an Oracle back- end database through a Forte layer via SOAP and XML. The
clients access the web service through SSL and it returns the data it has recieved from the Forte layer. On test
machines (Windows 2000 Pro) there is no problem. The SSL works fine, the web service returns the pages and data
without any problems. When I deployed the application to the server (Win2K Server) the page returns with no data. Somewhere, there is a problem retriving data from the
Forte layer to the Web Service. can this be an SSL
issue? Has anyone had any experience with anything such as this? Any help or ideas would be greatly appreciated. Brainstorm ideas welcome also!!!

Thanks in advance,
Tom

Nov 17 '05 #2
This code goes right before you call the web service. In this example the
web service reference is named wsProxy.
The namespace you need is System.Security.Cryptography.X509Certificates
This code takes care of the client certificate "stuff" that is needed on the
client side for secure communication. Normally, when surfing the web, the
web browser would take care of this. But in this case the web service
client is not a web browser so you must do it manually.

--
I hope this helps,
Steve C. Orr, MCSD
http://Steve.Orr.net
"Thomas Connolly" <th*************@us.ssiworldwide.com> wrote in message
news:36****************************@phx.gbl...
Steve,
I really appreciate your reply. As I am a novice at SSL,
can you give some more detail? For example, namespaces to
add, where this code goes and what it does, etc.

Again, thank you.

Tom
-----Original Message-----
I don't believe IIS in windows Pro supports true SSL.

Only Windows Server does.
You may need some code like this to support the web

service call with SSL enabled:


'Set the web service's Credentials to Windows credentials

of the user calling this application

wsProxy.Credentials = CredentialCache.DefaultCredentials

'Set the client's certificate

If sCertName.Length <> 0 Then

Dim x509 As X509Certificate =

X509Certificate.CreateFromCertFile(sCertName)

wsProxy.ClientCertificates.Add(x509)

End If
--
I hope this helps,
Steve C. Orr, MCSD
http://Steve.Orr.net

"Thomas Connolly" <th*************@us.ssiworldwide.com>

wrote in message news:042801c35548$71346010
$a*******@phx.gbl...
I have a web Service that is accessing an Oracle back- end database through a Forte layer via SOAP and XML. The
clients access the web service through SSL and it returns the data it has recieved from the Forte layer. On test
machines (Windows 2000 Pro) there is no problem. The SSL works fine, the web service returns the pages and data
without any problems. When I deployed the application to the server (Win2K Server) the page returns with no data. Somewhere, there is a problem retriving data from the
Forte layer to the Web Service. can this be an SSL
issue? Has anyone had any experience with anything such as this? Any help or ideas would be greatly appreciated. Brainstorm ideas welcome also!!!

Thanks in advance,
Tom

Nov 17 '05 #3
Hello again Steve,
Can you please explain to me what sCertName is and where
it comes from?

Thank you,
Thomas
-----Original Message-----
This code goes right before you call the web service. In this example theweb service reference is named wsProxy.
The namespace you need is System.Security.Cryptography.X509CertificatesThis code takes care of the client certificate "stuff" that is needed on theclient side for secure communication. Normally, when surfing the web, theweb browser would take care of this. But in this case the web serviceclient is not a web browser so you must do it manually.

--
I hope this helps,
Steve C. Orr, MCSD
http://Steve.Orr.net
"Thomas Connolly" <th*************@us.ssiworldwide.com> wrote in messagenews:36****************************@phx.gbl...
Steve,
I really appreciate your reply. As I am a novice at SSL, can you give some more detail? For example, namespaces to add, where this code goes and what it does, etc.

Again, thank you.

Tom
>-----Original Message-----
>I don't believe IIS in windows Pro supports true SSL.

Only Windows Server does.
>You may need some code like this to support the web

service call with SSL enabled:
>
>
>'Set the web service's Credentials to Windows credentials
of the user calling this application
>
>wsProxy.Credentials =
CredentialCache.DefaultCredentials >
>
>
>'Set the client's certificate
>
>If sCertName.Length <> 0 Then
>
> Dim x509 As X509Certificate =

X509Certificate.CreateFromCertFile(sCertName)
>
> wsProxy.ClientCertificates.Add(x509)
>
>End If
>
>
>--
>I hope this helps,
>Steve C. Orr, MCSD
>http://Steve.Orr.net
>
>
>
>
>
>"Thomas Connolly" <th*************@us.ssiworldwide.com>

wrote in message news:042801c35548$71346010
$a*******@phx.gbl...
>> I have a web Service that is accessing an Oracle back- end
>> database through a Forte layer via SOAP and XML. The
>> clients access the web service through SSL and it

returns
>> the data it has recieved from the Forte layer. On
test >> machines (Windows 2000 Pro) there is no problem. The

SSL
>> works fine, the web service returns the pages and data >> without any problems. When I deployed the

application to
>> the server (Win2K Server) the page returns with no

data.
>> Somewhere, there is a problem retriving data from the
>> Forte layer to the Web Service. can this be an SSL
>> issue? Has anyone had any experience with anything

such
>> as this? Any help or ideas would be greatly

appreciated.
>> Brainstorm ideas welcome also!!!
>>
>> Thanks in advance,
>> Tom

.

Nov 17 '05 #4
Well, it's the name of your cert.
Here are some links that should help you with the process of setting up SSL
in your app:

Step-by-Step Guide to Managing Active Directory
http://www.microsoft.com/windows2000...manadsteps.asp

Step-by-Step Guide to Setting up a Certification Authority
http://www.microsoft.com/windows2000...setupsteps.asp

Step-by-Step Guide to Certificate Services Web Pages
http://www.microsoft.com/windows2000...cawebsteps.asp

Step-by-Step Guide to Advanced Certificate Management
http://www.microsoft.com/windows2000...vcertsteps.asp

Step-by-Step Guide to Mapping Certificates to User Accounts
http://www.microsoft.com/windows2000...ppingcerts.asp

--
I hope this helps,
Steve C. Orr, MCSD
http://Steve.Orr.net
"Thomas Connolly" <th*************@us.ssiworldwide.com> wrote in message
news:00****************************@phx.gbl...
Hello again Steve,
Can you please explain to me what sCertName is and where
it comes from?

Thank you,
Thomas
-----Original Message-----
This code goes right before you call the web service. In

this example the
web service reference is named wsProxy.
The namespace you need is

System.Security.Cryptography.X509Certificates
This code takes care of the client certificate "stuff"

that is needed on the
client side for secure communication. Normally, when

surfing the web, the
web browser would take care of this. But in this case

the web service
client is not a web browser so you must do it manually.

--
I hope this helps,
Steve C. Orr, MCSD
http://Steve.Orr.net
"Thomas Connolly" <th*************@us.ssiworldwide.com>

wrote in message
news:36****************************@phx.gbl...
Steve,
I really appreciate your reply. As I am a novice at SSL, can you give some more detail? For example, namespaces to add, where this code goes and what it does, etc.

Again, thank you.

Tom
>-----Original Message-----
>I don't believe IIS in windows Pro supports true SSL.
Only Windows Server does.
>You may need some code like this to support the web
service call with SSL enabled:
>
>
>'Set the web service's Credentials to Windows credentials of the user calling this application
>
>wsProxy.Credentials = CredentialCache.DefaultCredentials >
>
>
>'Set the client's certificate
>
>If sCertName.Length <> 0 Then
>
> Dim x509 As X509Certificate =
X509Certificate.CreateFromCertFile(sCertName)
>
> wsProxy.ClientCertificates.Add(x509)
>
>End If
>
>
>--
>I hope this helps,
>Steve C. Orr, MCSD
>http://Steve.Orr.net
>
>
>
>
>
>"Thomas Connolly" <th*************@us.ssiworldwide.com>
wrote in message news:042801c35548$71346010
$a*******@phx.gbl...
>> I have a web Service that is accessing an Oracle back- end
>> database through a Forte layer via SOAP and XML. The
>> clients access the web service through SSL and it
returns
>> the data it has recieved from the Forte layer. On test >> machines (Windows 2000 Pro) there is no problem. The
SSL
>> works fine, the web service returns the pages and data >> without any problems. When I deployed the application to
>> the server (Win2K Server) the page returns with no
data.
>> Somewhere, there is a problem retriving data from the
>> Forte layer to the Web Service. can this be an SSL
>> issue? Has anyone had any experience with anything
such
>> as this? Any help or ideas would be greatly
appreciated.
>> Brainstorm ideas welcome also!!!
>>
>> Thanks in advance,
>> Tom

.

Nov 17 '05 #5
"Steve C. Orr, MCSD" spoke:
I don't believe IIS in windows Pro supports true SSL.


What's "true" SSL? Provided you have a certificate, you can run IIS on
Pro with SSL.

Cheers,
--
Joerg Jooss
jo*********@gmx.net
Nov 17 '05 #6

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

Similar topics

4
by: rbt | last post by:
How does one associate a "Description" with a Windows service written in Python? I've just started experimenting with Python services. Here's my code... copied straight from Mr. Hammond's "Python...
6
by: cs | last post by:
I noticed there is some .net services on my winxp. One or two mention the CLR. Does that mean that my .net apps/services wont run before those services start? I need to run my service as early on...
0
by: Diego F. | last post by:
I've been days with that. I'm trying to work with web services sending and returning objects, and the web service must store some objects. - My first try (the most obvious in my opinion) was to use...
26
by: Mr Newbie | last post by:
What do I need to run a web service on my PC ? I know I need the .NET Framework, but do I need IIS Running ?
3
by: Matt D | last post by:
I've got two web services that use the same data types and that clients will have to consume. I read the msdn article on sharing types...
7
by: Stu | last post by:
Hi, I have a web service which returns a record set and works well integrated with an asp dot net page. However if I decided to develop a unix app will i be able to read the dataset as it is...
3
by: Olivier BESSON | last post by:
Hello, I have a web service of my own on a server (vb.net). I must declare it with SoapRpcMethod to be used with JAVA. This is a simple exemple method of my vb source : ...
2
by: sdstraub | last post by:
I have created 5 services in my project, in the 1st service I set servicestorun = array of all 5 services, I have a project installer with 5 service installers, one for each service. I have code...
0
by: krishnaraju | last post by:
HI to all, please help me.its urgent requirement. my question is this is the wsdl file i got from our client.please see at bottom. when iam trying to access that webmethods iam getting...
1
by: Data Entry Outsourcing | last post by:
Data Entry plays vital role in every business area. Data Entry is one such aspects of any business that needs to be handled properly for expanding your business. Data Entry is one of the leading...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...

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.