Using Metro as client for Weblogic Web Services
I'm creating a client for some services running in Weblogic.
I've done the client using Netbeans 7 and METRO stack.
The service is running under HTTP with basic authentication and the SOAP messages are signed using the server public key and encrypted using the same key. To achieve this, I only had to configure the keystore with the server certificate and metro already knew how to use it.
I've used Authenticator to send Basic authentication credentials.
Now I'm facing two problems: I'm trying to use a client certificate to sign the messages and still use the server certificate to encrypt the message. I've tried setting the "keyStore" configuration manually in my wsit config file without success.
The second problem is, I can call the web Service operation, but as the message comes with no security, metro throws an exception saying that there was no security on the incoming message.
In the WSDL the security for incoming messages is marked as wsdl:required="false", witch leads me to think that metro should not enforce the use of security in the response.
Using Wireshark I could see the outgoing and incoming messages and its all ok in the response, it comes without security as expected.
Is there a way I can disable the validation of this security?
The WSDL and my Wsit are listed above.
Thank you very much!