The current TCPMon trunk supports forwarding from HTTP to HTTPS and
the necessary infrastructure is in place to accept incoming SSL
connections. What is missing is the UI part that would load a server
key/certificate and set up the SSLServerSocketFactory. Note that you
could use org.apache.ws.commons.tcpmon.core.engine.Interceptor to
build a small Java program that intercepts requests sent over HTTPS.

Andreas

On Fri, Jul 17, 2009 at 10:08, Chinmoy Chakraborty<[email protected]> wrote:
> Hi,
>
> I got the error while invoking a call with policy based WS-Security enabled
> call. Following is my client side code:
>
> System.setProperty("javax.net.ssl.trustStore", "D:/wskey.jks");
>       System.setProperty("javax.net.ssl.trustStorePassword", "password");
>       ConfigurationContext ctx = null;
>       Policy clientPolicy = null;
>       try {
>           ctx =
> ConfigurationContextFactory.createConfigurationContextFromFileSystem("D:\\Codes\\weblims3\\exploded\\WEB-INF",
> "D:\\Codes\\weblims3\\axis2.xml");
>           StAXOMBuilder builder = new
> StAXOMBuilder("D:\\Codes\\weblims3\\policy.xml");
>           clientPolicy =
> PolicyEngine.getPolicy(builder.getDocumentElement());
>       } catch (Exception axisFault) {
>           axisFault.printStackTrace();
>       }
>       ServiceClient client = new ServiceClient(ctx,
> ctx.getAxisConfiguration().getService("ABS"));
>       Options options = new Options();
>       options.setAction("invoke");
>       options.setUserName("system");
>       options.setPassword("password");
>       options.setTo(new EndpointReference("https://localhost:8888/"; +
> "services/ABS"));
>       options.setProperty(RampartMessageData.KEY_RAMPART_POLICY,
> clientPolicy);
>       client.setOptions(options);
>       System.out.println("before engaging module rampart");
>       client.engageModule("rampart");
>       OMElement response = client.sendReceive(getPayload(args));
>
> Please find attached policy.xml, services.xml, and axis2.xml using which I
> am creating configurationcontext. One more question, does TCPMon intercept
> 'https' requests? I am TCPMon for ws-security based webservice and I am
> seeing some encrypted message that I can not understsnd.
>
> Chinmoy
>
>

Reply via email to