You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Lorenzo Carnevale <lo...@innovery.it> on 2009/10/15 18:16:52 UTC

Avoid the "marshalling" of a field

I expose this class as an axis2 web service:

public Bean log(String string) throws RemoteException

{

    Bean b = new Bean();

    // do stuff....

    return b;

}

The class Bean is a plain pojo that contains some "useful" fields that I DON'T want to send back.

Can I tell somehow to Axis2 to NOT serialize (i.e. not to put it in the SOAP answer!) one or some of these fields contained in Bean? 

Thanks

          Lorenzo

Re: Avoid the "marshalling" of a field

Posted by Lorenzo Carnevale <lo...@innovery.it>.
Thank you very much Greg!

----- Original Message ----- 
From: "Greg Logan" <gr...@usask.ca>
To: <ax...@ws.apache.org>
Sent: Thursday, October 15, 2009 6:42 PM
Subject: Re: Avoid the "marshalling" of a field


> Lorenzo Carnevale wrote:
>> The class Bean is a plain pojo that contains some "useful" fields that I 
>> DON'T want to send back.
>>
>> Can I tell somehow to Axis2 to NOT serialize (i.e. not to put it in the 
>> SOAP answer!) one or some of these fields contained in Bean?
>
> Try http://wso2.org/library/2893, search for How to exclude "Bean 
> properties?" and "Exclude Methods"
>
> G
>
>> Thanks
>>
>>           Lorenzo
>>
> 


Re: Avoid the "marshalling" of a field

Posted by Greg Logan <gr...@usask.ca>.
Lorenzo Carnevale wrote:
> The class Bean is a plain pojo that contains some "useful" fields that I DON'T want to send back.
> 
> Can I tell somehow to Axis2 to NOT serialize (i.e. not to put it in the SOAP answer!) one or some of these fields contained in Bean? 

Try http://wso2.org/library/2893, search for How to exclude "Bean 
properties?" and "Exclude Methods"

G

> Thanks
> 
>           Lorenzo
>