NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Consuming secured WCF service from Netbeans

 
Post new topic   Reply to topic    NetBeans Forums -> SOA Users
View previous topic :: View next topic  
Author Message
bbelovic



Joined: 15 Nov 2012
Posts: 1

PostPosted: Thu Nov 15, 2012 11:33 am    Post subject: Consuming secured WCF service from Netbeans Reply with quote

Hello
I am trying to consume secured WCF service from Java client using Netbeans IDE. Service's WSDL contains certificate enclosed in elements. I am trying to create Netbeans client. Here's what I've done:

1) I cropped text between X509 certificate and stored it into truststore. I used following command

keytool -import -noprompt -trustcacerts -alias mycert -file .\selfsignedetr2.cer -keystore sample.jks -storepass ****

2) I have created Java project in Netbeans
3) I have added webservice client to this project and setup WSDL url for the client
4) I have right-clicked on web service references, chose edit webservice attributes
5) on security tab I clicked Trustore... button and specified truststore created in step 1
6) I have specified Default username and Default password for the webservice
7) I clicked OK and run my client and I got following message:

SEVERE: WSS1533: Validation of self signed certificate failed followed by information about certificate.

My question is how to make it running?
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> SOA Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo