ant elder wrote:
For the new Axis2 based WS binding we need to get WSDL defined to SDO so
that the SOAP Body XML can be (de)serialized to DataObjects correctly. Could
that happen when the import.wsdl in the sca.module is being processed? Thats
done by org.apache.tuscany.model.assembly.impl.AggregateImpl in the
initialize method. Adding the following line just after the
getAssemblyLoader().loadDefinition call seems to work:

                    XSDHelper.INSTANCE.define(url.openStream(), null);

Would this be ok?

Thanks,

   ...ant

Yes I think this is OK. If your service is flowing complex types and you have generated SDO classes then you just need one of the components in your application module to reference the generated SDO Factory to trigger the initialization of the metadata for your complex types. But in scenarios flowing elements of simple types e.g. <element name="getGreetings" type="xsd:string"> you won't have generated SDO classes so you definitely need to invoke XSDHelper.INSTANCE.define(url.openStream(), null) to get the metadata for your elements in place.

--
Jean-Sebastien

Reply via email to