Based on http://webservices20.blogspot.com/search/label/Web%20Services%20Interoperability
The problem is: to call WCP endpoint from java client being identified via certificate by both parties.
- Set up the environment: You should have NetBeans 7 (or higher).
- Download and extract somewhere metro of 2.1 version (or higher) via http://metro.java.net
- Establish a vpn connection to quansis if needed
- Install "Soap Web Services" plugin (Tools -> plugings -> available plugins)
- Create a new project of type Java Application:
- Right click the package in the project view and add a new "web service client":
- Paste that Wsdl URL in opened window and click "finish".
- Development server of quansis uses self-signed certificates, so Netbeans IDE (as any other java application) will complain, just accept the certificate in warning window. Sometimes to force it to accept the certificate you could need to open the WSDL URL via web browser
- On success in your project some new elements will appear in META-INF folder
- Unforunatelly Netbeans use default metro library from glassfish, which is 2.0. That version has some bugs with istablishing secure connections to WCP IIS endpoints. To overcome this obstacle you need:
- Open the web service quality attribute form as you did in step 6. Uncheck the "use development defaults" check box. Now configure the keystore and trust store.
- write the client code.
- Now run the application (F6).