Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-5949

missing or late namespace declarations

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.7.8
    • None
    • wsdl
    • None
    • debian stable

    Description

      A client built with v2-1.6.2 worked well with a server based on jaxws in the past.

      Now the server side took the latest jaxws libraries and no longer accepts what v2.-1.7.8. wsdl2java produced from the attached wsdl.

       

      Oxygen or their SAXParser complain:

      [org.xml.sax.SAXParseException; lineNumber: 0; columnNumber: 0; cvc-complex-type.4: Attribute 'contentType' must appear on element 'ns3:fileRefs'.]

       

      if I look at the generated xml, Axis produces

              <fileRefs contentType="application/pdf" filename="Test.pdf" ..

       

      while they expect / soapUI produces

               <ns5:files xmime:contentType="application/pdf" filename="Test.pdf"

       

      Any wsdl2java command-line parameter that fixes this ?

       

      ------------ Further details --------

      Also the declaration by Axis at the beginning of the xml are

      <ns8:deliverRequest xmlns:ns8="http://schemas.juspace.ch/xmlns/cr/deliverSvc/1/0">
      <ns8:crDataContainer>
              <crHeader xmlns="http://schemas.juspace.ch/xmlns/cr/1/0">
              <process>

      ...

       

      while they expect

       

      <deliverRequest xsi:noNamespaceSchemaLocation="/app/domains/appdomain/applications/juspace/WEB-INF/classes/META-INF/wsdl/juspace-crDeliverSvc-1-0.xsd" xmlns="http://schemas.juspace.ch/xmlns/cr/deliverSvc/1/0" xmlns:ns6="http://www.ech.ch/xmlns/eCH-0044/2" xmlns:ns5="http://schemas.juspace.ch/xmlns/1/0" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:ns7="http://www.ech.ch/xmlns/eCH-0046/2" xmlns:ns9="http://schemas.juspace.ch/xmlns/cr/log/1/0" xmlns:ns2="http://schemas.juspace.ch/xmlns/versioning/1/0" xmlns:ns4="http://www.ech.ch/xmlns/eCH-0010/4" xmlns:ns3="http://schemas.juspace.ch/xmlns/cr/1/0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

      ...

       

      See also: AXIS2-5449

      Attachments

        1. juspace-1-0.xsd
          8 kB
          Ralf Hauser
        2. versioning-1-0.xsd
          4 kB
          Ralf Hauser
        3. juspace-cr-1-0.xsd
          24 kB
          Ralf Hauser
        4. juspace-crDeliverSvc-1-0.wsdl
          5 kB
          Ralf Hauser
        5. juspace-crDeliverSvc-1-0.xsd
          7 kB
          Ralf Hauser
        6. juspace-crLog-1-0.xsd
          5 kB
          Ralf Hauser

        Activity

          People

            Unassigned Unassigned
            hauser@acm.org Ralf Hauser
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: