Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Alessandro Mazzetti
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)
 
Amit G Piplani
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try setting up authentication for your web application when SSL layer is used as trasport layer.
 
John Landon
Ranch Hand
Posts: 228
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 220
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Saritha Raj
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
</code>
 
Saritha Raj
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<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
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic