The moose likes Web Services and the fly likes JAX-WS and Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "JAX-WS and" Watch "JAX-WS and" New topic

JAX-WS and

Ong Vua
Ranch Hand

Joined: Jan 24, 2008
Posts: 69
I got the error using JDeveloper [Security:090504]Certificate chain received from - failed hostname verification check. Certificate contained but check expected

This WS uses policy Wssp1.2-2007-Https-UsernameToken-Plain.xml and the certificate was issued by Verisign. Below is my code

In the service class, I added the annotation.

@Policy(uri = "policy:Wssp1.2-2007-Https-UsernameToken-Plain.xml")
public class IntegrationEventWS
extends Service {


In my client class, here's my code to call the WS

ArrayList credentialproviders = new ArrayList();
CredentialProvider cp = new ClientUNTCredentialProvider(username.getBytes(),password.getBytes());

IntegrationEventWS service = new IntegrationEventWS()
DefaultBindingIntegrationEventWS port = service.getDefault();
BindingProvider bp = (BindingProvider)port;
Map<String, Object> ctx = bp.getRequestContext();

In Weblogic 10.3.2, under Keystores, I selected "Custom Identity and Java Standard Trust" and leave everything default

Do you have any ideas how to fix this?

I agree. Here's the link:
subject: JAX-WS and
It's not a secret anymore!