This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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
Author

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

Alessandro Mazzetti
Greenhorn

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
com.sun.xml.ws.client.ClientTransportException: The server sent HTTP status code 403: Forbidden

Why?
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.


SCJP,SCWCD,SCBCD,SCDJWS1.4, SCDJWS1.5
John Landon
Ranch Hand

Joined: Sep 25, 2008
Posts: 227
Forget any specific ide. You should understand how it works. Here is one for tomcat:
http://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html
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
Greenhorn

Joined: Oct 21, 2008
Posts: 3
</code>
Saritha Raj
Greenhorn

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

</code>
utpal das
Greenhorn

Joined: Aug 27, 2009
Posts: 1
match the port number in both the generated WSDL file..it 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..


enjoy..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Using Transport Security (SSL) in Web Service (CalulatorApp)
 
Similar Threads
Using Transport Security (SSL) in Web Service (CalulatorApp)
axis2/webshpere response != axis2/glassfish response........ why?
web service security and data encryption
J2me help: can i use j2me as Client?
Help regarding Metro