Hi everyone, I've a rather curious situation whereby I'm getting a "Missing wsse:Security header in request" exception when I invoke a Rampart 1.4 enabled service with a client on Eclipse.
However, when I use TCPMON to intercept the SOAP request and response messages, I see that I have the the right data in the SOAP request message. I must have the client side configured in the correct manner because I'm getting the right SOAP request and response messages. Any idea why this is occuring? The code for the client is given below for reference. Cheers. public static void main(String[] args) throws Exception { ConfigurationContext ctx = ConfigurationContextFactory. createConfigurationContextFromFileSystem(confPath, null); GrouperServiceStub stub = new GrouperServiceStub(ctx,targetEPR); ServiceClient sc = stub._getServiceClient(); sc.engageModule("rampart"); sc.engageModule("addressing"); Options options = sc.getOptions(); options.setUserName("GrouperSystem"); options.setPassword("mypassword"); //load policy externally options.setProperty(RampartMessageData.KEY_RAMPART_POLICY,loadPolicy(con fPath + "/conf/policy.xml")); //invoke the service WsGetGroupsLiteResult wsGetGroupsLiteResult = stub.getGroupsLite("v1_3_000", "[EMAIL PROTECTED]", "", "", "All", "", "", "", "", "", "", "", "", "", ""); //tells whether its an overall success System.out.println(ToStringBuilder.reflectionToString(wsGetGroupsLiteRes ult)); WsGroup[] results = wsGetGroupsLiteResult.getWsGroups(); if (results != null) { for (WsGroup wsGroup : results) { System.out.println(ToStringBuilder.reflectionToString(wsGroup)); } } } private static Policy loadPolicy(String xmlPath) throws Exception { StAXOMBuilder builder = new StAXOMBuilder(xmlPath); return PolicyEngine.getPolicy(builder.getDocumentElement()); } } Regards -------------- Sanjay Vivek Web Analyst Middleware Team ISS Newcastle University