File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes Using Transport Security (SSL) in Web Service (CalulatorApp) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Using Transport Security (SSL) in Web Service (CalulatorApp)" Watch "Using Transport Security (SSL) in Web Service (CalulatorApp)" New topic

Using Transport Security (SSL) in Web Service (CalulatorApp)

Alessandro Mazzetti

Joined: Oct 20, 2008
Posts: 2
Hi all
I am using NetBeans 6.1 with Glassfish V2-ur2.
I loaded the samples CalulatorApp and CalculatorClientApp (not secure).
I set the "Transport Security (SSL)" into the service CalculatorWS, with development defaults.
I applied the workaround for disabling Certificate Validation and HostnameVerifier, both on service and in client.
I refreshed the client, redeployed and run it.
The following message appears in the Glassfish output window:

StandardWrapperValve[ClientServlet]: PWC1406: Servlet.service() for servlet ClientServlet threw exception The server sent HTTP status code 403: Forbidden

Does anybody manage do develop secured web-services with Transport Security SSL (https) using NetBeans 6.1?
Does anybody have a working example to send me?

Many thanks in advance to anybody who can help me (after weeks of vain trials)

Alessandro Mazzetti<br />Sestri Levante<br />Italy
Amit G Piplani
Ranch Hand

Joined: Jul 21, 2004
Posts: 83
try setting up authentication for your web application when SSL layer is used as trasport layer.

John Landon
Ranch Hand

Joined: Sep 25, 2008
Posts: 228
Forget any specific ide. You should understand how it works. Here is one for tomcat:
greg stark
Ranch Hand

Joined: Aug 10, 2006
Posts: 220
This is not an SSL exception, so if SSL has been set up, then the exception means that the SSL part of the connection succeeded. The server received the URL over the SSL connection and then denied access based on its rules and the URL.

Nice to meet you.
Saritha Raj

Joined: Oct 21, 2008
Posts: 3
Saritha Raj

Joined: Oct 21, 2008
Posts: 3
May be your oracle port number and your server port numbers are same.
Try by stopping your oracle and run your application.

utpal das

Joined: Aug 27, 2009
Posts: 1
match the port number in both the generated WSDL will definitely work....Its not working because it could Not able to refer to the WSDL file location through the port Number.

i did the change ....and it worked for me..

I agree. Here's the link:
subject: Using Transport Security (SSL) in Web Service (CalulatorApp)
It's not a secret anymore!