eclipse-ee4j / eclipse-ee4j/metro-wsit

Metro does not support multiple policy alternatives.

Open
#247 0 comments 0 reactions 0 assignees View on GitHub
Component: policy ERR: Assignee Priority: Major Type: New Feature
Dominant language
Java
Stars
6
Forks
21
Avg merge
10h 2m
Merged PRs (30d)
1

Description

When using a wsit-*.xml configuration with multiple policy alternatives, metro
reports "WSP0035: Policy "null" contains more than one policy alternative.
Please reconfigure the service with only one policy alternative." in an exception.

See for more details
[https://metro.dev.java.net/servlets/ReadMsg?list=users&msgNo=3478](https://metro.dev.java.net/servlets/ReadMsg?list=users&msgNo=3478)

Since many WS-* specifications are not yet widely supported, using policy
alternatives allows one to use the appropriate WS-* specifications and to also
provide failbacks for clients that don't support them. For instance, in our Web
Services, we are using thh WS-Reliable Messaging session mechanism. Since many
client stacks (eg. workflow engines) does not support WS-RM, we opted to support
HTTP session as failback for them. Without support for policy alternatives, it
add a lot of complexity to our deployment.
#### Environment
Operating System: All
Platform: All
#### Affected Versions
[current]

Source: [https://github.com/javaee/metro-wsit/issues/830](https://github.com/javaee/metro-wsit/issues/830)
Author: glassfishrobot

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the WSP0035 exception with a wsit-*.xml configuration containing multiple policy alternatives, using the linked discussion for context. Trace where the policy is rejected and identify the relevant Metro implementation and tests; done means alternatives are accepted and the existing single-alternative behavior remains covered.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, backend-api-design
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.