javaee / metro-jax-ws

https://javaee.github.io/metro-jax-ws/
Other
132 stars 68 forks source link

"xmlns" cannot be bound to any namespace explicitly; neither can the namespace for "xmlns" be bound to any prefix explicitly #1215

Closed teixeiras closed 6 years ago

teixeiras commented 6 years ago

Hi!

<?xml version="1.0" encoding="UTF-8"?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
  <S:Header xmlns="http://www.w3.org/2005/08/addressing" xmlns:ns1="http://absc/v1">
    <ns1:Source>
         </ns1:Source>
    <ns1:Correlation />
    <To>http://port/</To>
    <Action>http://inktoAction/</Action>
    <ReplyTo>
      <Address>http://www.w3.org/2005/08/addressing/anonymous</Address>
    </ReplyTo>
    <FaultTo>
      <Address>http://www.w3.org/2005/08/addressing/anonymous</Address>
    </FaultTo>
    <MessageID>uuid:65256064-ee39-4282-a1ab-3a2a1b477943</MessageID>
  </S:Header>
[ISS.0088.9112] An Exception was thrown in the server:com.wm.pkg.xslt.util.LocalizedTransformerException: [XSL.0002.9002] JAXP: Error during transformation - The prefix "xmlns" cannot be bound to any namespace explicitly; neither can the namespace for "xmlns" be bound to any prefix explicitly.; Line#: 2; Column#: 17 ____________________________________________________________________________________________________ I'm have an issue with a generated stubs, when I call this service using jax-ws I'm having this is error_ The prefix "xmlns" cannot be bound to any namespace explicitly; neither can the namespace for "xmlns" be bound to any prefix explicitly Probably is related with this: "xmlns="http://www.w3.org/2005/08/addressing", but I have no clue how to get it fixed. I tried to add: ```java @javax.xml.bind.annotation.XmlSchema(namespace = "http://www.w3.org/2005/08/addressing", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED, xmlns={ @XmlNs(prefix="wsa", namespaceURI="http://www.w3.org/2005/08/addressing") }) ``` at package-info. This didn't made any difference.
teixeiras commented 6 years ago

I added addressing fields manually at an handler since could not get it working with right way.