2 Replies Latest reply on Nov 16, 2006 8:15 AM by Thomas Diesler

    define namespace in soap response

    dim elef Newbie

      I have developed a web service using the jsr-181 annotations that produces a response like:

      <env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>
      <ns1:getTestsResponse xmlns:ns1='http://company.my/jaws'>
      <result xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
      <ns_id:id xmlns:ns_qid='http://company.my/jaws'>5A2B010EF056BFC695B400D23941</ns_id:id>
      <ns_tests:tests xmlns:ns_tests='http://company.my/jaws'>
      <ns_tests:test1>test1 response</ns_tests:test1>
      <ns_tests:test2>test2 response</ns_tests:test2>


      The response is an object. The web service uses also a GenericHandler.
      The problem is that i want to have control and change the namespace values in the response. For example I want to change the namespace ns_tests to ns_1 or ns1.

      As I see in the log output jbossws uses the JAXBSerializer to create the response message, but it does not give control on that.

      Are there any ways to change the namespace value in the xml soap response?