Uploaded image for project: 'JBoss Web Services'
  1. JBoss Web Services
  2. JBWS-745

SAAJ:SOAPBodyElement.addNamespaceDeclaration should allow empty prefix

XMLWordPrintable

      Consider the following payload:

      ---------------------------------------------------------------------------------------------
      <?xml version="1.0" encoding="UTF-8"?>
      <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
      <SOAP-ENV:Body>
      <businessList xmlns="urn:uddi-org:api_v2" generic="2.0" operator="JBOSS">
      <businessInfos>
      <businessInfo businessKey="892ac280-c16b-11d5-85ad-801eef211111">
      <name xml:lang="en">
      Demi Credit
      </name>
      <description xml:lang="en">
      A smaller demo app used for illustrating UDDI inquiry.
      </description>
      <serviceInfos>
      <serviceInfo serviceKey="860eca90-c16d-11d5-85ad-801eef208714"
      businessKey="9a26b6e0-c15f-11d5-85a3-801eef208714">
      <name xml:lang="en">
      DCAmail
      </name>
      </serviceInfo>
      </serviceInfos>
      </businessInfo>
      </businessInfos>
      </businessList>
      </SOAP-ENV:Body>
      </SOAP-ENV:Envelope>
      -------------------------------------------------------------------------------------------------------------------------

      Here the namespace for the SOAPBodyElement has to have an empty prefix. But our current
      implementation throws a runtimeexception.

      SOAPBodyElement.addNamespaceDeclaration("",ns) where ns can be anyuri

              tdiesler@redhat.com Thomas Diesler
              anil.saldhana Anil Saldanha (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: