Is it legal to reject WSDLs where namespaces differs only in file extension (the part after the last dot)?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
I have a complicated web application which uses many web services. I have to start using a new one. The WSDL of this new service defines a target namespace which is almost the same as a namespace used in an older WSDL. Only the part after the last dot differs.
The package names deduced by JAXB are the same for them, and the ObjectFactory generated from the second one overwrites the other.
For example, one wsdl has a target namespace "http://foo.com/a.b.c", another one has "http://foo.com/a.b.c_2". Then the java package name will be com.foo.a.b for both namespaces which is a kind of collision.
I checked the JAXB spec and found this ( https://download.oracle.com/otn-pub/jcp/jaxb-2.0-fr-eval-oth-JSpec/jaxb-2_0-fr-spec.pdf?AuthParam=1542978637_f7c18a1892b0ff022071acdab6259bdd ) :
D.5.1 Mapping from a Namespace URI An XML namespace is represented by
a URI. Since XML Namespace will be mapped to a Java package, it is
necessary to specify a default mapping from a URI to a Java package
name. The URI format is described in [RFC2396]. The following steps
describe how to map a URI to a Java package name. The example URI,
http://www.acme.com/go/espeak.xsd, is used to illustrate each step.
Remove the scheme and ":" part from the beginning of the URI, if present. Since there is no formal syntax to identify the optional URI
scheme, restrict the schemes to be removed to case insensitive checks
for schemes “http” and “urn”.
//www.acme.com/go/espeak.xsd
Remove the trailing file type, one of .?? or .??? or .html.
//www.acme.com/go/espeak
...
Probably there are workarounds for this on my side, but I would like to have the provider of the web services to "correct" the situation by using "proper" namespaces which are not differing in only the last part (file name extension in JAXB parlance?).
I am looking for arguments for "my case".
java jaxb wsdl
add a comment |
I have a complicated web application which uses many web services. I have to start using a new one. The WSDL of this new service defines a target namespace which is almost the same as a namespace used in an older WSDL. Only the part after the last dot differs.
The package names deduced by JAXB are the same for them, and the ObjectFactory generated from the second one overwrites the other.
For example, one wsdl has a target namespace "http://foo.com/a.b.c", another one has "http://foo.com/a.b.c_2". Then the java package name will be com.foo.a.b for both namespaces which is a kind of collision.
I checked the JAXB spec and found this ( https://download.oracle.com/otn-pub/jcp/jaxb-2.0-fr-eval-oth-JSpec/jaxb-2_0-fr-spec.pdf?AuthParam=1542978637_f7c18a1892b0ff022071acdab6259bdd ) :
D.5.1 Mapping from a Namespace URI An XML namespace is represented by
a URI. Since XML Namespace will be mapped to a Java package, it is
necessary to specify a default mapping from a URI to a Java package
name. The URI format is described in [RFC2396]. The following steps
describe how to map a URI to a Java package name. The example URI,
http://www.acme.com/go/espeak.xsd, is used to illustrate each step.
Remove the scheme and ":" part from the beginning of the URI, if present. Since there is no formal syntax to identify the optional URI
scheme, restrict the schemes to be removed to case insensitive checks
for schemes “http” and “urn”.
//www.acme.com/go/espeak.xsd
Remove the trailing file type, one of .?? or .??? or .html.
//www.acme.com/go/espeak
...
Probably there are workarounds for this on my side, but I would like to have the provider of the web services to "correct" the situation by using "proper" namespaces which are not differing in only the last part (file name extension in JAXB parlance?).
I am looking for arguments for "my case".
java jaxb wsdl
add a comment |
I have a complicated web application which uses many web services. I have to start using a new one. The WSDL of this new service defines a target namespace which is almost the same as a namespace used in an older WSDL. Only the part after the last dot differs.
The package names deduced by JAXB are the same for them, and the ObjectFactory generated from the second one overwrites the other.
For example, one wsdl has a target namespace "http://foo.com/a.b.c", another one has "http://foo.com/a.b.c_2". Then the java package name will be com.foo.a.b for both namespaces which is a kind of collision.
I checked the JAXB spec and found this ( https://download.oracle.com/otn-pub/jcp/jaxb-2.0-fr-eval-oth-JSpec/jaxb-2_0-fr-spec.pdf?AuthParam=1542978637_f7c18a1892b0ff022071acdab6259bdd ) :
D.5.1 Mapping from a Namespace URI An XML namespace is represented by
a URI. Since XML Namespace will be mapped to a Java package, it is
necessary to specify a default mapping from a URI to a Java package
name. The URI format is described in [RFC2396]. The following steps
describe how to map a URI to a Java package name. The example URI,
http://www.acme.com/go/espeak.xsd, is used to illustrate each step.
Remove the scheme and ":" part from the beginning of the URI, if present. Since there is no formal syntax to identify the optional URI
scheme, restrict the schemes to be removed to case insensitive checks
for schemes “http” and “urn”.
//www.acme.com/go/espeak.xsd
Remove the trailing file type, one of .?? or .??? or .html.
//www.acme.com/go/espeak
...
Probably there are workarounds for this on my side, but I would like to have the provider of the web services to "correct" the situation by using "proper" namespaces which are not differing in only the last part (file name extension in JAXB parlance?).
I am looking for arguments for "my case".
java jaxb wsdl
I have a complicated web application which uses many web services. I have to start using a new one. The WSDL of this new service defines a target namespace which is almost the same as a namespace used in an older WSDL. Only the part after the last dot differs.
The package names deduced by JAXB are the same for them, and the ObjectFactory generated from the second one overwrites the other.
For example, one wsdl has a target namespace "http://foo.com/a.b.c", another one has "http://foo.com/a.b.c_2". Then the java package name will be com.foo.a.b for both namespaces which is a kind of collision.
I checked the JAXB spec and found this ( https://download.oracle.com/otn-pub/jcp/jaxb-2.0-fr-eval-oth-JSpec/jaxb-2_0-fr-spec.pdf?AuthParam=1542978637_f7c18a1892b0ff022071acdab6259bdd ) :
D.5.1 Mapping from a Namespace URI An XML namespace is represented by
a URI. Since XML Namespace will be mapped to a Java package, it is
necessary to specify a default mapping from a URI to a Java package
name. The URI format is described in [RFC2396]. The following steps
describe how to map a URI to a Java package name. The example URI,
http://www.acme.com/go/espeak.xsd, is used to illustrate each step.
Remove the scheme and ":" part from the beginning of the URI, if present. Since there is no formal syntax to identify the optional URI
scheme, restrict the schemes to be removed to case insensitive checks
for schemes “http” and “urn”.
//www.acme.com/go/espeak.xsd
Remove the trailing file type, one of .?? or .??? or .html.
//www.acme.com/go/espeak
...
Probably there are workarounds for this on my side, but I would like to have the provider of the web services to "correct" the situation by using "proper" namespaces which are not differing in only the last part (file name extension in JAXB parlance?).
I am looking for arguments for "my case".
java jaxb wsdl
java jaxb wsdl
edited Nov 23 '18 at 14:48
riskop
asked Nov 23 '18 at 14:23
riskopriskop
993824
993824
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Please see Namespaces in XML 1.0 §2.3 Comparing URI References:
URI references identifying namespaces are compared when determining whether a name belongs to a given namespace, and whether two names belong to the same namespace. [Definition: The two URIs are treated as strings, and they are identical if and only if the strings are identical, that is, if they are the same sequence of characters. ] The comparison is case-sensitive, and no %-escaping is done or undone.
If your namespaces "only differ in file extension", these are different namespaces. If your tools generate the same package for them, the problem is on your side, not on the side of the WSDL author.
So no, you do not have really good arguments for "your case", sorry.
The fix is trivial: simply config target package per namespace. See the following question, for instance:
CXF: How to change package of WSDL imported XML Schema using JAXB external binding file?
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53448433%2fis-it-legal-to-reject-wsdls-where-namespaces-differs-only-in-file-extension-the%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Please see Namespaces in XML 1.0 §2.3 Comparing URI References:
URI references identifying namespaces are compared when determining whether a name belongs to a given namespace, and whether two names belong to the same namespace. [Definition: The two URIs are treated as strings, and they are identical if and only if the strings are identical, that is, if they are the same sequence of characters. ] The comparison is case-sensitive, and no %-escaping is done or undone.
If your namespaces "only differ in file extension", these are different namespaces. If your tools generate the same package for them, the problem is on your side, not on the side of the WSDL author.
So no, you do not have really good arguments for "your case", sorry.
The fix is trivial: simply config target package per namespace. See the following question, for instance:
CXF: How to change package of WSDL imported XML Schema using JAXB external binding file?
add a comment |
Please see Namespaces in XML 1.0 §2.3 Comparing URI References:
URI references identifying namespaces are compared when determining whether a name belongs to a given namespace, and whether two names belong to the same namespace. [Definition: The two URIs are treated as strings, and they are identical if and only if the strings are identical, that is, if they are the same sequence of characters. ] The comparison is case-sensitive, and no %-escaping is done or undone.
If your namespaces "only differ in file extension", these are different namespaces. If your tools generate the same package for them, the problem is on your side, not on the side of the WSDL author.
So no, you do not have really good arguments for "your case", sorry.
The fix is trivial: simply config target package per namespace. See the following question, for instance:
CXF: How to change package of WSDL imported XML Schema using JAXB external binding file?
add a comment |
Please see Namespaces in XML 1.0 §2.3 Comparing URI References:
URI references identifying namespaces are compared when determining whether a name belongs to a given namespace, and whether two names belong to the same namespace. [Definition: The two URIs are treated as strings, and they are identical if and only if the strings are identical, that is, if they are the same sequence of characters. ] The comparison is case-sensitive, and no %-escaping is done or undone.
If your namespaces "only differ in file extension", these are different namespaces. If your tools generate the same package for them, the problem is on your side, not on the side of the WSDL author.
So no, you do not have really good arguments for "your case", sorry.
The fix is trivial: simply config target package per namespace. See the following question, for instance:
CXF: How to change package of WSDL imported XML Schema using JAXB external binding file?
Please see Namespaces in XML 1.0 §2.3 Comparing URI References:
URI references identifying namespaces are compared when determining whether a name belongs to a given namespace, and whether two names belong to the same namespace. [Definition: The two URIs are treated as strings, and they are identical if and only if the strings are identical, that is, if they are the same sequence of characters. ] The comparison is case-sensitive, and no %-escaping is done or undone.
If your namespaces "only differ in file extension", these are different namespaces. If your tools generate the same package for them, the problem is on your side, not on the side of the WSDL author.
So no, you do not have really good arguments for "your case", sorry.
The fix is trivial: simply config target package per namespace. See the following question, for instance:
CXF: How to change package of WSDL imported XML Schema using JAXB external binding file?
answered Nov 23 '18 at 21:17
lexicorelexicore
31.9k889158
31.9k889158
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53448433%2fis-it-legal-to-reject-wsdls-where-namespaces-differs-only-in-file-extension-the%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown