Hi Kai,
Dynamic DataObjects should have dynamic types. I'm not sure I understand
exactly what is happening in your example, but DataObject.getType() should
be returning the appropriate types. If it isn't then my guess is that the
metadata wasn't registered/initialized properly.
Frank.
"Hudalla Kai (CI/TMP)" <[EMAIL PROTECTED]> wrote on 12/04/2007
09:48:12 AM:
> Hi,
>
> I am playing around with the several ways to implement a web service in
> Java. Currently I am trying to modify the HelloWorld Web Service SDO
> example to support Dynamic DataObjects instead of the generated static
> types. Therefore I have modified the HelloWorld interface to use generic
> DataObject as parameter and return type.
>
> @Remotable
> public interface HelloWorld {
>
> public DataObject getGreetings(DataObject getGreetings);
> }
>
> When I implement this interface accordingly and run it I see that the
> DataObject instance provided by the Tuscany runtime when invoking the
> service is totally untyped, i.e. the type information available in the
> WSDL and Schema is not used for deserializing the incoming message to a
> DataObject. This is very annoying since it is almost impossible to
> access the data contained in the provided DataObject instance because
> none of the properties I would expect from the Schema are available.
>
> Is this intended behaviour of the Tuscany container? What is the dynamic
> SDO API good for in this case?
>
> Kai
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]