Error on verifying message against security policy Error codes: 1001 1021 Error codes: 1001 1021
Getting Error on verifying message against security policy Error codes: 1001 1021 Error codes: 1001 1021 when trying to post the request to SOAP API using java.
But it is working fine in SOAP UI.
Also tried setting password type myMap.put(WSHandlerConstants.PASSWORD_TYPE,WSConstants.PASSWORD_TEXT);
but no Luck.
Below is the sample code
JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();
factory.getInInterceptors().add(new LoggingInInterceptor());
factory.getOutInterceptors().add(new LoggingOutInterceptor());
factory.setServiceClass(InvAdjustPublishingPortType.class);
factory.setAddress("https://rex.retail.us-ashburn-1.ocs.oraclecloud.com:443/rgbu-rex-hott-stg1-rics/igs/InvAdjustPublishingBean/InvAdjustPublishingService");
factory.setUsername("user");
factory.setPassword("password");
Map<String,Object> myMap = new HashMap<String, Object>();
myMap.put("WS-Addressing","false");