Uploaded image for project: 'Tuscany'
  1. Tuscany
  2. TUSCANY-2002

SDO databinding doesn't have access to the SDO factories which are not referenced by an component service/reference interface

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Java-SCA-1.x
    • Java-SDO-Next
    • SCA Java Runtime
    • None

    Description

      In a doc-lit-wrapped WSDL (a.wsdl), we define the wrapper element (http://ns1) in the inline schema which imports other XSD types (http://ns2) from an XSD file (b.xsd), Running the SDO XSD2Java codegen on a.wsdl and b.xsd will generate two SDO factories, one for http://ns1 and one for http://ns2.

      Now let's assume a java interface is used by the component, and it has the following method.

      Quote getQuote(String symbol); // Quote is a generated SDO class/interface, getQuote and getQuoteResponse are the wrapper elements.

      The SDO databinding gains access to the fatory for http://ns2 but not http://ns1 since the getQuote/getQuoteResponse is not referenced on this method. As a result, the SDO wrapping/unwrapping data transformation will be broken as the SDO factory for http://ns2 is not registered.

      The workaround is to use import.sdo.

      Attachments

        Activity

          People

            rfeng Zhaohui Feng
            rfeng Zhaohui Feng
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: