Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-3402

http://util.java in WSDL

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3.2
    • Fix Version/s: 2.4
    • Component/s: Aegis Databinding
    • Labels:
      None

      Description

      For SEI:

      @WebService
      public interface IStringSl {
        void storeStrings(@WebParam(name = "stringsToStore") List<DTOtra_string> stringToStore);
      }
      
      @XmlType ( name = "DtoString")
      public class DTOtra_string {
       ....
      }
      

      there is many http://util.java namespaces in WSDL.

      Maybe this is bug maybe not? I dont know.
      But I expect same wsdl as List<> is replaces with array.
      WSDL with array is more clean.

      Fortunately XML on-the-wire is almost same in booth cases.
      And our customers can consume booth without reimporting changed WSDL.

      Xml with array.

      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sl="http://sl.tra.modules.daisy.marbes.cz/" xmlns:dto="http://dto.tra.modules.daisy.marbes.cz">
         <soapenv:Header/>
         <soapenv:Body>
            <sl:storeStrings>
               <stringsToStore>
                  <dto:DtoString>
                     <dto:Anglicky>?</dto:Anglicky>
                     <dto:AnglickyPrelozeno>true</dto:AnglickyPrelozeno>
                  </dto:DtoString>
               </stringsToStore>
            </sl:storeStrings>
         </soapenv:Body>
      </soapenv:Envelope>
      

      Xml with List<>.

      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sl="http://sl.tra.modules.daisy.marbes.cz/" xmlns:util="http://util.java" xmlns:dto="http://dto.tra.modules.daisy.marbes.cz">
         <soapenv:Header/>
         <soapenv:Body>
            <sl:storeStrings>
               <stringsToStore>
                  <util:DtoString>
                     <dto:Anglicky>?</dto:Anglicky>
                     <dto:AnglickyPrelozeno>true</dto:AnglickyPrelozeno>
                  </util:DtoString>
               </stringsToStore>
            </sl:storeStrings>
         </soapenv:Body>
      </soapenv:Envelope>
      

        Attachments

          Activity

            People

            • Assignee:
              dkulp Daniel Kulp
              Reporter:
              cesnek Jara Cesnek

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment