Uploaded image for project: 'Spring Web Services'
  1. Spring Web Services
  2. SWS-442

Generated WSDL file does not contain xmime attribute "expectedContentTypes" present in xsd files.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.4
    • Fix Version/s: 1.5.6
    • Component/s: None
    • Labels:
      None
    • Environment:
      Spring Web Services 1.5.4
      Apache Maven 2.0.9
      Eclipse 3.3.2,Windows XP SP2

      Description

      The attachment contains the following files,
      1)Normal0.xsd-- schema file containing "xmime:expectedContentTypes" attribute.
      2)Normal1.xsd-- schema file.
      3)MyService.wsdl-- WSDL file generated using "org.springframework.ws.wsdl.wsdl11.DefaultWsdl11Definition" class.
      4)spring-ws-servlet.xml-- Servlet config file used for generation of wsdl.

      In spring-ws-servlet.xml file,
      "org.springframework.ws.wsdl.wsdl11.DefaultWsdl11Definition" bean generates the wsdl file from the schemaCollection bean which uses the "org.springframework.xml.xsd.commons.CommonsXsdSchemaCollection" class.

      The Normal0.xsd file,
      uses the xmime:expectedContentTypes="application/octet-stream" attribute to specify binary data, but the wsdl generated by "org.springframework.ws.wsdl.wsdl11.DefaultWsdl11Definition" class does not contain the xmime attribute.The generated wsdl file "MyService.wsdl" is attached.

      Without xmime attribute in generated wsdl file the client code generation will not have Datahandler class.

      It is also observed that when i use "org.springframework.xml.xsd.SimpleXsdSchema" class for specifying xsd file, the xmime attribute is reflected in wsdl file.But this class cannot be used for multiple xsd files.

      Kindly let me know if more info is required,

      Thanks in advance ,
      Navin Bhat

        Activity

        Hide
        arjen.poutsma Arjen Poutsma added a comment -

        I am pretty sure this is a Commons Xml Schema bug, though I will investigate further.

        Show
        arjen.poutsma Arjen Poutsma added a comment - I am pretty sure this is a Commons Xml Schema bug, though I will investigate further.
        Hide
        arjen.poutsma Arjen Poutsma added a comment -

        Actually, it wasn't a Commons Xml schema bug, but a SWS bug.

        Could you please try a recent (as of tonight) snapshot and try again?

        Show
        arjen.poutsma Arjen Poutsma added a comment - Actually, it wasn't a Commons Xml schema bug, but a SWS bug. Could you please try a recent (as of tonight) snapshot and try again?
        Hide
        arjen.poutsma Arjen Poutsma added a comment -

        Closing old issues

        Show
        arjen.poutsma Arjen Poutsma added a comment - Closing old issues

          People

          • Assignee:
            arjen.poutsma Arjen Poutsma
            Reporter:
            navinbhat navin bhat
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 3d
              3d
              Remaining:
              Remaining Estimate - 3d
              3d
              Logged:
              Time Spent - Not Specified
              Not Specified