Store Inventory Management (MOSC)

MOSC Banner

Error on verifying message against security policy Error codes: 1001 1021 Error codes: 1001 1021

edited Jan 5, 2023 12:12PM in Store Inventory Management (MOSC) Question

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");

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center