This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Secure Web Service Client  RSS feed

Oha Moha
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I try to create a Web Service Proxy(client) using JDeveloper. The goal is to connect to a secured external web service.
The WSDL provided by the web service doesn't contain any information about the security policy.
I decided to give it a try, so from the "Client Policy Configuration" page from "Proxy Editor" window I choose "oracle/wss_username_token_client_policy".
The problem is that I didn't find a way to set the username and the password. So I receive a error like that:

SEVERE: WSM-00078 The configuration of the credentials in the policy is incorrect.
SEVERE: WSM-00016 The username/password credentials or certificates null are missing.
SEVERE: WSM-00005 Error in sending the request.
SEVERE: WSM-07607 Failure in execution of assertion {}wss-username-token executor class
SEVERE: WSM-07602 Failure in WS-Policy Execution due to exception.
SEVERE: WSM-07501 Failure in Oracle WSM Agent processRequest, category=security, function=agent.function.client, application=null, composite=null, modelObj=EVPQuery, policy=oracle/wss_username_token_client_policy, policyVersion=null, assertionName={}wss-username-token.
oracle.wsm.common.sdk.WSMException: WSM-00015 : The user name is missing.
at oracle.wsm.policyengine.impl.runtime.AssertionExecutor.execute(
at oracle.wsm.policyengine.impl.runtime.WSPolicyRuntimeExecutor.executeSimpleAssertion(
at oracle.wsm.policyengine.impl.runtime.WSPolicyRuntimeExecutor.executeAndAssertion(WSPolicyRuntime

The code is something like this:

private static EVPQuery_Service eVPQuery_Service;

public static void main(String [] args)
eVPQuery_Service = new EVPQuery_Service();
SecurityPolicyFeature[] securityFeatures =
new SecurityPolicyFeature[] { new SecurityPolicyFeature("oracle/wss_username_token_client_policy") };
EVPQuery eVPQuery = eVPQuery_Service.getEVPQuery(securityFeatures);
EVPPersonQueryCriteria crit=new EVPPersonQueryCriteria();
EVPPersonQueryResult res;
// Add your code to call the desired methods.
try {
res = eVPQuery.queryPerson(crit);
} catch (SableEVPQueryException e) {

I am looking for a solution to pass the username and the password to the web service.
I am here after six hours of searching, so if my question is stupid, please forgive me.

Thank you
Ivan Krizsan
Ranch Hand
Posts: 2198
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rather than trying to guess what security policy is used by the service, I suggest asking the developers of the web service.
This will save you a lot of time and effort, as well as make any questions regarding this issue much easier to answer.

By the way, this posting looks somewhat familiar:
Best wishes!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!