Uploaded image for project: 'Savara'
  1. Savara
  2. SAVARA-379

JAXB marshalling problem in switchyard 0.8

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 2.2.0.Final
    • Component/s: None
    • Labels:
      None

      Description

      The purchasing example simulates and executes correctly on switchyard 0.7.

      However when executed on 0.8, there is a problem (as discussed https://community.jboss.org/message/807515#807515) with the jaxb transform:

      com.sun.istack.SAXException2: unable to marshal type "org.jboss.examples.creditagency.CreditCheckType" as an element because it is missing an @XmlRootElement annotation

      The WSDL is doclit style, so the messages use xsd elements (CreditCheckRequest) which has a type CreditCheckType. In the generated Java classes, the CreditCheckType class does not have any annotation relating to the XmlRootElement which I presumed should be CreditCheckRequest.

      Either additional annotations/classes need to be created, or switchyard needs to also support xsd types.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  objectiser Gary Brown
                  Reporter:
                  objectiser Gary Brown
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: