You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Han Hong Fang (JIRA)" <ji...@apache.org> on 2012/11/26 06:58:58 UTC
[jira] [Created] (CXF-4652) Additional namespace is added when web
servcie provider implements Provider
Han Hong Fang created CXF-4652:
----------------------------------
Summary: Additional namespace is added when web servcie provider implements Provider<DOMSource>
Key: CXF-4652
URL: https://issues.apache.org/jira/browse/CXF-4652
Project: CXF
Issue Type: Bug
Affects Versions: 2.6.2
Environment: win7 + oracle jdk 1.6.0_29-b11
Reporter: Han Hong Fang
Fix For: 2.6.4
In the invoke method of web service provider which implements Provider<DOMSource>, using the following code to return a response DOMSource,
DOMSource response = new DOMSource();
DocumentBuilderFactory documentFacory = DocumentBuilderFactory.newInstance();
DocumentBuilder documentBuilder = null;
try {
documentBuilder = documentFacory.newDocumentBuilder();
} catch (ParserConfigurationException e) {
throw new RuntimeException(e);
}
Document doc;
try {
doc = documentBuilder.parse(new InputSource(
new ByteArrayInputStream(message.getBytes("UTF-8"))));
} catch (Exception e) {
throw new RuntimeException("error parse: " + str, e);
}
response.setNode(doc);
In above code, if message string is:
"ns2:echoResponse xmlns:ns2="annotations.webserviceprovider.fq"><return>Hello world</return></ns2:echoResponse>",
but the soapMessage body will be:
"ns2:echoResponse xmlns:ns2="annotations.webserviceprovider.fq" xmlns="annotations.webserviceprovider.fq"><return>Hello world</return></ns2:echoResponse>"
Additional attribute xmlns="annotations.webserviceprovider.fq" is added by cxf. This additional attribute causes the unmarshal issue at client side.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CXF-4652) Additional namespace is added when web
service provider implements Provider
Posted by "Han Hong Fang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-4652?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Han Hong Fang updated CXF-4652:
-------------------------------
Attachment: W3CDOMStreamReader.java.patch
Patch is attached, please help to review. Thanks in advance.
> Additional namespace is added when web service provider implements Provider<DOMSource>
> --------------------------------------------------------------------------------------
>
> Key: CXF-4652
> URL: https://issues.apache.org/jira/browse/CXF-4652
> Project: CXF
> Issue Type: Bug
> Affects Versions: 2.6.2
> Environment: win7 + oracle jdk 1.6.0_29-b11
> Reporter: Han Hong Fang
> Fix For: 2.6.4
>
> Attachments: W3CDOMStreamReader.java.patch
>
>
> In the invoke method of web service provider which implements Provider<DOMSource>, using the following code to return a response DOMSource,
> DOMSource response = new DOMSource();
> DocumentBuilderFactory documentFacory = DocumentBuilderFactory.newInstance();
> DocumentBuilder documentBuilder = null;
> try {
> documentBuilder = documentFacory.newDocumentBuilder();
> } catch (ParserConfigurationException e) {
> throw new RuntimeException(e);
> }
> Document doc;
> try {
> doc = documentBuilder.parse(new InputSource(
> new ByteArrayInputStream(message.getBytes("UTF-8"))));
> } catch (Exception e) {
> throw new RuntimeException("error parse: " + str, e);
> }
> response.setNode(doc);
> In above code, if message string is:
> "<ns2:echoResponse xmlns:ns2="annotations.webserviceprovider.fq"><return>Hello world</return></ns2:echoResponse>",
> but the soapMessage body will be:
> "<ns2:echoResponse xmlns:ns2="annotations.webserviceprovider.fq" xmlns="annotations.webserviceprovider.fq"><return>Hello world</return></ns2:echoResponse>"
> Additional attribute xmlns="annotations.webserviceprovider.fq" is added by cxf. This additional attribute causes the unmarshal issue at client side.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Assigned] (CXF-4652) Additional namespace is added when web
service provider implements Provider
Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-4652?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Freeman Fang reassigned CXF-4652:
---------------------------------
Assignee: Freeman Fang
> Additional namespace is added when web service provider implements Provider<DOMSource>
> --------------------------------------------------------------------------------------
>
> Key: CXF-4652
> URL: https://issues.apache.org/jira/browse/CXF-4652
> Project: CXF
> Issue Type: Bug
> Affects Versions: 2.6.2
> Environment: win7 + oracle jdk 1.6.0_29-b11
> Reporter: Han Hong Fang
> Assignee: Freeman Fang
> Fix For: 2.6.4
>
> Attachments: W3CDOMStreamReader.java.patch
>
>
> In the invoke method of web service provider which implements Provider<DOMSource>, using the following code to return a response DOMSource,
> DOMSource response = new DOMSource();
> DocumentBuilderFactory documentFacory = DocumentBuilderFactory.newInstance();
> DocumentBuilder documentBuilder = null;
> try {
> documentBuilder = documentFacory.newDocumentBuilder();
> } catch (ParserConfigurationException e) {
> throw new RuntimeException(e);
> }
> Document doc;
> try {
> doc = documentBuilder.parse(new InputSource(
> new ByteArrayInputStream(message.getBytes("UTF-8"))));
> } catch (Exception e) {
> throw new RuntimeException("error parse: " + str, e);
> }
> response.setNode(doc);
> In above code, if message string is:
> "<ns2:echoResponse xmlns:ns2="annotations.webserviceprovider.fq"><return>Hello world</return></ns2:echoResponse>",
> but the soapMessage body will be:
> "<ns2:echoResponse xmlns:ns2="annotations.webserviceprovider.fq" xmlns="annotations.webserviceprovider.fq"><return>Hello world</return></ns2:echoResponse>"
> Additional attribute xmlns="annotations.webserviceprovider.fq" is added by cxf. This additional attribute causes the unmarshal issue at client side.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CXF-4652) Additional namespace is added when web
service provider implements Provider
Posted by "Han Hong Fang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-4652?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Han Hong Fang updated CXF-4652:
-------------------------------
Summary: Additional namespace is added when web service provider implements Provider<DOMSource> (was: Additional namespace is added when web servcie provider implements Provider<DOMSource>)
> Additional namespace is added when web service provider implements Provider<DOMSource>
> --------------------------------------------------------------------------------------
>
> Key: CXF-4652
> URL: https://issues.apache.org/jira/browse/CXF-4652
> Project: CXF
> Issue Type: Bug
> Affects Versions: 2.6.2
> Environment: win7 + oracle jdk 1.6.0_29-b11
> Reporter: Han Hong Fang
> Fix For: 2.6.4
>
>
> In the invoke method of web service provider which implements Provider<DOMSource>, using the following code to return a response DOMSource,
> DOMSource response = new DOMSource();
> DocumentBuilderFactory documentFacory = DocumentBuilderFactory.newInstance();
> DocumentBuilder documentBuilder = null;
> try {
> documentBuilder = documentFacory.newDocumentBuilder();
> } catch (ParserConfigurationException e) {
> throw new RuntimeException(e);
> }
> Document doc;
> try {
> doc = documentBuilder.parse(new InputSource(
> new ByteArrayInputStream(message.getBytes("UTF-8"))));
> } catch (Exception e) {
> throw new RuntimeException("error parse: " + str, e);
> }
> response.setNode(doc);
> In above code, if message string is:
> "<ns2:echoResponse xmlns:ns2="annotations.webserviceprovider.fq"><return>Hello world</return></ns2:echoResponse>",
> but the soapMessage body will be:
> "<ns2:echoResponse xmlns:ns2="annotations.webserviceprovider.fq" xmlns="annotations.webserviceprovider.fq"><return>Hello world</return></ns2:echoResponse>"
> Additional attribute xmlns="annotations.webserviceprovider.fq" is added by cxf. This additional attribute causes the unmarshal issue at client side.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CXF-4652) Additional namespace is added when
web service provider implements Provider
Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-4652?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13503761#comment-13503761 ]
Daniel Kulp commented on CXF-4652:
----------------------------------
While I don't object to the patch, I do want to point out that the bug is really in your code, not CXF. You are not setting the DocumentBuilder to be namespace aware. Thus, the resulting DOM doesn't have the namespaces properly parsed and processed. Most likely, if you add documentFactory.setNamespaceAware(true) it would work for you as the DOM would be properly constructed.
> Additional namespace is added when web service provider implements Provider<DOMSource>
> --------------------------------------------------------------------------------------
>
> Key: CXF-4652
> URL: https://issues.apache.org/jira/browse/CXF-4652
> Project: CXF
> Issue Type: Bug
> Affects Versions: 2.6.2
> Environment: win7 + oracle jdk 1.6.0_29-b11
> Reporter: Han Hong Fang
> Assignee: Freeman Fang
> Fix For: 2.4.11, 2.5.7, 2.6.4, 2.7.1
>
> Attachments: W3CDOMStreamReader.java.patch
>
>
> In the invoke method of web service provider which implements Provider<DOMSource>, using the following code to return a response DOMSource,
> DOMSource response = new DOMSource();
> DocumentBuilderFactory documentFacory = DocumentBuilderFactory.newInstance();
> DocumentBuilder documentBuilder = null;
> try {
> documentBuilder = documentFacory.newDocumentBuilder();
> } catch (ParserConfigurationException e) {
> throw new RuntimeException(e);
> }
> Document doc;
> try {
> doc = documentBuilder.parse(new InputSource(
> new ByteArrayInputStream(message.getBytes("UTF-8"))));
> } catch (Exception e) {
> throw new RuntimeException("error parse: " + str, e);
> }
> response.setNode(doc);
> In above code, if message string is:
> "<ns2:echoResponse xmlns:ns2="annotations.webserviceprovider.fq"><return>Hello world</return></ns2:echoResponse>",
> but the soapMessage body will be:
> "<ns2:echoResponse xmlns:ns2="annotations.webserviceprovider.fq" xmlns="annotations.webserviceprovider.fq"><return>Hello world</return></ns2:echoResponse>"
> Additional attribute xmlns="annotations.webserviceprovider.fq" is added by cxf. This additional attribute causes the unmarshal issue at client side.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (CXF-4652) Additional namespace is added when web
service provider implements Provider
Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-4652?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Freeman Fang resolved CXF-4652.
-------------------------------
Resolution: Fixed
Fix Version/s: 2.7.1
2.5.7
2.4.11
apply patch on behalf of Han Hong Fang with thanks
> Additional namespace is added when web service provider implements Provider<DOMSource>
> --------------------------------------------------------------------------------------
>
> Key: CXF-4652
> URL: https://issues.apache.org/jira/browse/CXF-4652
> Project: CXF
> Issue Type: Bug
> Affects Versions: 2.6.2
> Environment: win7 + oracle jdk 1.6.0_29-b11
> Reporter: Han Hong Fang
> Assignee: Freeman Fang
> Fix For: 2.4.11, 2.5.7, 2.6.4, 2.7.1
>
> Attachments: W3CDOMStreamReader.java.patch
>
>
> In the invoke method of web service provider which implements Provider<DOMSource>, using the following code to return a response DOMSource,
> DOMSource response = new DOMSource();
> DocumentBuilderFactory documentFacory = DocumentBuilderFactory.newInstance();
> DocumentBuilder documentBuilder = null;
> try {
> documentBuilder = documentFacory.newDocumentBuilder();
> } catch (ParserConfigurationException e) {
> throw new RuntimeException(e);
> }
> Document doc;
> try {
> doc = documentBuilder.parse(new InputSource(
> new ByteArrayInputStream(message.getBytes("UTF-8"))));
> } catch (Exception e) {
> throw new RuntimeException("error parse: " + str, e);
> }
> response.setNode(doc);
> In above code, if message string is:
> "<ns2:echoResponse xmlns:ns2="annotations.webserviceprovider.fq"><return>Hello world</return></ns2:echoResponse>",
> but the soapMessage body will be:
> "<ns2:echoResponse xmlns:ns2="annotations.webserviceprovider.fq" xmlns="annotations.webserviceprovider.fq"><return>Hello world</return></ns2:echoResponse>"
> Additional attribute xmlns="annotations.webserviceprovider.fq" is added by cxf. This additional attribute causes the unmarshal issue at client side.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CXF-4652) Additional namespace is added when web
servcie provider implements Provider
Posted by "Han Hong Fang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-4652?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Han Hong Fang updated CXF-4652:
-------------------------------
Description:
In the invoke method of web service provider which implements Provider<DOMSource>, using the following code to return a response DOMSource,
DOMSource response = new DOMSource();
DocumentBuilderFactory documentFacory = DocumentBuilderFactory.newInstance();
DocumentBuilder documentBuilder = null;
try {
documentBuilder = documentFacory.newDocumentBuilder();
} catch (ParserConfigurationException e) {
throw new RuntimeException(e);
}
Document doc;
try {
doc = documentBuilder.parse(new InputSource(
new ByteArrayInputStream(message.getBytes("UTF-8"))));
} catch (Exception e) {
throw new RuntimeException("error parse: " + str, e);
}
response.setNode(doc);
In above code, if message string is:
"<ns2:echoResponse xmlns:ns2="annotations.webserviceprovider.fq"><return>Hello world</return></ns2:echoResponse>",
but the soapMessage body will be:
"<ns2:echoResponse xmlns:ns2="annotations.webserviceprovider.fq" xmlns="annotations.webserviceprovider.fq"><return>Hello world</return></ns2:echoResponse>"
Additional attribute xmlns="annotations.webserviceprovider.fq" is added by cxf. This additional attribute causes the unmarshal issue at client side.
was:
In the invoke method of web service provider which implements Provider<DOMSource>, using the following code to return a response DOMSource,
DOMSource response = new DOMSource();
DocumentBuilderFactory documentFacory = DocumentBuilderFactory.newInstance();
DocumentBuilder documentBuilder = null;
try {
documentBuilder = documentFacory.newDocumentBuilder();
} catch (ParserConfigurationException e) {
throw new RuntimeException(e);
}
Document doc;
try {
doc = documentBuilder.parse(new InputSource(
new ByteArrayInputStream(message.getBytes("UTF-8"))));
} catch (Exception e) {
throw new RuntimeException("error parse: " + str, e);
}
response.setNode(doc);
In above code, if message string is:
"ns2:echoResponse xmlns:ns2="annotations.webserviceprovider.fq"><return>Hello world</return></ns2:echoResponse>",
but the soapMessage body will be:
"ns2:echoResponse xmlns:ns2="annotations.webserviceprovider.fq" xmlns="annotations.webserviceprovider.fq"><return>Hello world</return></ns2:echoResponse>"
Additional attribute xmlns="annotations.webserviceprovider.fq" is added by cxf. This additional attribute causes the unmarshal issue at client side.
> Additional namespace is added when web servcie provider implements Provider<DOMSource>
> --------------------------------------------------------------------------------------
>
> Key: CXF-4652
> URL: https://issues.apache.org/jira/browse/CXF-4652
> Project: CXF
> Issue Type: Bug
> Affects Versions: 2.6.2
> Environment: win7 + oracle jdk 1.6.0_29-b11
> Reporter: Han Hong Fang
> Fix For: 2.6.4
>
>
> In the invoke method of web service provider which implements Provider<DOMSource>, using the following code to return a response DOMSource,
> DOMSource response = new DOMSource();
> DocumentBuilderFactory documentFacory = DocumentBuilderFactory.newInstance();
> DocumentBuilder documentBuilder = null;
> try {
> documentBuilder = documentFacory.newDocumentBuilder();
> } catch (ParserConfigurationException e) {
> throw new RuntimeException(e);
> }
> Document doc;
> try {
> doc = documentBuilder.parse(new InputSource(
> new ByteArrayInputStream(message.getBytes("UTF-8"))));
> } catch (Exception e) {
> throw new RuntimeException("error parse: " + str, e);
> }
> response.setNode(doc);
> In above code, if message string is:
> "<ns2:echoResponse xmlns:ns2="annotations.webserviceprovider.fq"><return>Hello world</return></ns2:echoResponse>",
> but the soapMessage body will be:
> "<ns2:echoResponse xmlns:ns2="annotations.webserviceprovider.fq" xmlns="annotations.webserviceprovider.fq"><return>Hello world</return></ns2:echoResponse>"
> Additional attribute xmlns="annotations.webserviceprovider.fq" is added by cxf. This additional attribute causes the unmarshal issue at client side.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CXF-4652) Additional namespace is added when
web service provider implements Provider
Posted by "Han Hong Fang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-4652?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13504407#comment-13504407 ]
Han Hong Fang commented on CXF-4652:
------------------------------------
Yes, cxf can correctly deal with the DOMSource when documentFactory.setNamespaceAware(true) is configured. The patch is to tolerate the DOMSource if namespaceAware is not set.
> Additional namespace is added when web service provider implements Provider<DOMSource>
> --------------------------------------------------------------------------------------
>
> Key: CXF-4652
> URL: https://issues.apache.org/jira/browse/CXF-4652
> Project: CXF
> Issue Type: Bug
> Affects Versions: 2.6.2
> Environment: win7 + oracle jdk 1.6.0_29-b11
> Reporter: Han Hong Fang
> Assignee: Freeman Fang
> Fix For: 2.4.11, 2.5.7, 2.6.4, 2.7.1
>
> Attachments: W3CDOMStreamReader.java.patch
>
>
> In the invoke method of web service provider which implements Provider<DOMSource>, using the following code to return a response DOMSource,
> DOMSource response = new DOMSource();
> DocumentBuilderFactory documentFacory = DocumentBuilderFactory.newInstance();
> DocumentBuilder documentBuilder = null;
> try {
> documentBuilder = documentFacory.newDocumentBuilder();
> } catch (ParserConfigurationException e) {
> throw new RuntimeException(e);
> }
> Document doc;
> try {
> doc = documentBuilder.parse(new InputSource(
> new ByteArrayInputStream(message.getBytes("UTF-8"))));
> } catch (Exception e) {
> throw new RuntimeException("error parse: " + str, e);
> }
> response.setNode(doc);
> In above code, if message string is:
> "<ns2:echoResponse xmlns:ns2="annotations.webserviceprovider.fq"><return>Hello world</return></ns2:echoResponse>",
> but the soapMessage body will be:
> "<ns2:echoResponse xmlns:ns2="annotations.webserviceprovider.fq" xmlns="annotations.webserviceprovider.fq"><return>Hello world</return></ns2:echoResponse>"
> Additional attribute xmlns="annotations.webserviceprovider.fq" is added by cxf. This additional attribute causes the unmarshal issue at client side.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CXF-4652) Additional namespace is added when web
servcie provider implements Provider
Posted by "Han Hong Fang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-4652?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Han Hong Fang updated CXF-4652:
-------------------------------
Description:
In the invoke method of web service provider which implements Provider<DOMSource>, using the following code to return a response DOMSource,
DOMSource response = new DOMSource();
DocumentBuilderFactory documentFacory = DocumentBuilderFactory.newInstance();
DocumentBuilder documentBuilder = null;
try {
documentBuilder = documentFacory.newDocumentBuilder();
} catch (ParserConfigurationException e) {
throw new RuntimeException(e);
}
Document doc;
try {
doc = documentBuilder.parse(new InputSource(
new ByteArrayInputStream(message.getBytes("UTF-8"))));
} catch (Exception e) {
throw new RuntimeException("error parse: " + str, e);
}
response.setNode(doc);
In above code, if message string is:
"ns2:echoResponse xmlns:ns2="annotations.webserviceprovider.fq"><return>Hello world</return></ns2:echoResponse>",
but the soapMessage body will be:
"ns2:echoResponse xmlns:ns2="annotations.webserviceprovider.fq" xmlns="annotations.webserviceprovider.fq"><return>Hello world</return></ns2:echoResponse>"
Additional attribute xmlns="annotations.webserviceprovider.fq" is added by cxf. This additional attribute causes the unmarshal issue at client side.
was:
In the invoke method of web service provider which implements Provider<DOMSource>, using the following code to return a response DOMSource,
DOMSource response = new DOMSource();
DocumentBuilderFactory documentFacory = DocumentBuilderFactory.newInstance();
DocumentBuilder documentBuilder = null;
try {
documentBuilder = documentFacory.newDocumentBuilder();
} catch (ParserConfigurationException e) {
throw new RuntimeException(e);
}
Document doc;
try {
doc = documentBuilder.parse(new InputSource(
new ByteArrayInputStream(message.getBytes("UTF-8"))));
} catch (Exception e) {
throw new RuntimeException("error parse: " + str, e);
}
response.setNode(doc);
In above code, if message string is:
"ns2:echoResponse xmlns:ns2="annotations.webserviceprovider.fq"><return>Hello world</return></ns2:echoResponse>",
but the soapMessage body will be:
"ns2:echoResponse xmlns:ns2="annotations.webserviceprovider.fq" xmlns="annotations.webserviceprovider.fq"><return>Hello world</return></ns2:echoResponse>"
Additional attribute xmlns="annotations.webserviceprovider.fq" is added by cxf. This additional attribute causes the unmarshal issue at client side.
> Additional namespace is added when web servcie provider implements Provider<DOMSource>
> --------------------------------------------------------------------------------------
>
> Key: CXF-4652
> URL: https://issues.apache.org/jira/browse/CXF-4652
> Project: CXF
> Issue Type: Bug
> Affects Versions: 2.6.2
> Environment: win7 + oracle jdk 1.6.0_29-b11
> Reporter: Han Hong Fang
> Fix For: 2.6.4
>
>
> In the invoke method of web service provider which implements Provider<DOMSource>, using the following code to return a response DOMSource,
> DOMSource response = new DOMSource();
> DocumentBuilderFactory documentFacory = DocumentBuilderFactory.newInstance();
> DocumentBuilder documentBuilder = null;
> try {
> documentBuilder = documentFacory.newDocumentBuilder();
> } catch (ParserConfigurationException e) {
> throw new RuntimeException(e);
> }
> Document doc;
> try {
> doc = documentBuilder.parse(new InputSource(
> new ByteArrayInputStream(message.getBytes("UTF-8"))));
> } catch (Exception e) {
> throw new RuntimeException("error parse: " + str, e);
> }
> response.setNode(doc);
> In above code, if message string is:
> "ns2:echoResponse xmlns:ns2="annotations.webserviceprovider.fq"><return>Hello world</return></ns2:echoResponse>",
> but the soapMessage body will be:
> "ns2:echoResponse xmlns:ns2="annotations.webserviceprovider.fq" xmlns="annotations.webserviceprovider.fq"><return>Hello world</return></ns2:echoResponse>"
> Additional attribute xmlns="annotations.webserviceprovider.fq" is added by cxf. This additional attribute causes the unmarshal issue at client side.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira