Hi,

I created a service which uses a bean placed in a different package than the 
service or client: com.example.Book

I registered it as a Bean and even created the mapping in the 
MyService.aegis.xml for the returned type (for the testBook method).

The problem that I encounter is that the message that arrives as serialized 
bean at the client has the type's namespace different than the elements' 
namespace:

<?xml version="1.0"?>
<testBookResponse xmlns="http://example.sevice.namespace";>

<author xmlns="http://example.com";>test</author>
<isbn xmlns="http://example.com";>test</isbn>
<name xmlns="http://example.com";>test</name>

</testBookResponse>

And because of this, if I'm registering the bean at client side, it won't be 
able to deserialize it.

How can I tell the serializer to use the same namespace in both places?

I tried even to specify in the WebResult annotation of the testBook method the 
targetnamespace, but then the result is:

<?xml version="1.0"?>
<testBookResponse xmlns="http://example.sevice.namespace";>
<author>test</author>
<isbn>test</isbn>
<name>test</name>
</testBookResponse>

so it doesn't put the namespace at all, and the problem remains (this time it 
throws a nullpointerexception at deserialization).

Thank you very much.

Regards,
Tudor

Reply via email to