Uploaded image for project: 'SwitchYard'
  1. SwitchYard
  2. SWITCHYARD-303

Transformation code should allow for type conversion as a backup if an explicit transformation by type name is not defined

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate Issue
    • 0.1
    • 0.2
    • transformation
    • None

    Description

      Follow on to JIRA switchyard-301:

      If the work-around to the WSDL issue described in switchyard-301 is used, this error is then seen when the service is invoked:

      <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
      <SOAP-ENV:Header/>
      <SOAP-ENV:Body>
      <SOAP-ENV:Fault>
      <faultcode>SOAP-ENV:Server</faultcode>
      <faultstring>Transformations not applied. Required payload type of 'java:java.lang.String'. Actual payload type is '

      {http://webservices.samples.jboss.org/}

      sayHello'. You must define and register a Transformer to transform between these types.</faultstring>
      </SOAP-ENV:Fault>
      </SOAP-ENV:Body>
      </SOAP-ENV:Envelope>

      Note from Keith:

      No transformer has been defined, but I think we need to make it easy to accept XML input as a String in your POJO without defining a transformer. Our transformation code needs to be tweaked to allow for type conversion as a backup if an explicit transformation by type name is not defined.

      Attachments

        Issue Links

          Activity

            People

              tfennelly_jira Tom Fennelly (Inactive)
              ldimaggi@redhat.com Len DiMaggio
              Archiver:
              ranumula@redhat.com Raju Anumula

              Dates

                Created:
                Updated:
                Resolved:
                Archived: