eclipse-ee4j / eclipse-ee4j/metro-wsit

Wrong SOAP 1.2 namespace added in generated SOAP 1.1 Fault

Open
#326 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Component: jaxws-runtime ERR: Assignee Priority: Minor Type: Bug
Dominant language
Java
Stars
6
Forks
21
Avg merge
10h 2m
Merged PRs (30d)
1

Description

If in an SOAP 1.1 endpoint is generated a SOAP Fault (for example raising an
exception) in the Fault element is addedd a wrong SOAP 1.2 namespace.

For example this code:
@WebMethod(operationName = "operation")
public String operation()

{ throw new UnsupportedOperationException("not yet implemented"); }

will generate this response where the Envelope namespace is correct, but the
namespace declared in S:Fault is wrong (is the SOAP 1.2 namespace)

<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"><S:Body><S:Fault
xmlns:ns4="http://www.w3.org/2003/05/soap-envelope">S:Servernot
yet implemented</S:Fault></S:Body></S:Envelope>

as the namespace is not used I don't know if it could create problems in clients
other than metro.

Environment

Operating System: All
Platform: All

Affected Versions

[2.1]

Source: https://github.com/javaee/metro-wsit/issues/1486
Author: glassfishrobot

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Java @WebMethod endpoint shown in the report and reproduce the generated SOAP Fault from its UnsupportedOperationException. Trace how the SOAP 1.1 Envelope and Fault namespaces are selected. Done means a SOAP 1.1 Fault no longer declares the SOAP 1.2 namespace, while SOAP 1.2 responses remain correct.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.