axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sam wong <samwon...@gmail.com>
Subject Re: how can only public some spring bean method as method!
Date Thu, 13 Aug 2009 09:32:44 GMT
Dear Sagara,

how about I just only public some method as web server method?
how to write services.xml?



another question:  where is the full structure  services.xml ?


Thanks
Sam Wong



2009/8/13 Sagara Gunathunga <sagara.gunathunga@gmail.com>:
> Hi Sam,
>
> In the service.xml file you can exclude unwanted operations using
> using "excludeOperations" as follows.
>
> <excludeOperations>
>                        <operation>getUserAccountManager</operation>
>                        <operation>setUserAccountManager</operation>
> </excludeOperations>
>
> Thanks ,
>
>
> On Thu, Aug 13, 2009 at 2:13 PM, sam wong<samwongcn@gmail.com> wrote:
>> Hi,All
>>
>> I have a spring Bean with many many method.
>>
>>
>> but some method i don't want to public as  WebService Method.
>> like:
>>    public IUserAccountManager getUserAccountManager() {
>>        return userAccountManager;
>>    }
>>    public void setUserAccountManager(IUserAccountManager userAccountManager) {
>>        this.userAccountManager = userAccountManager;
>>    }
>>
>>
>> when i use c# client, I still can see this method too...
>> what should i do?
>>
>>
>>
>> the follow is my services.xml:
>> <serviceGroup>
>>  <service name="DataSetServiceEnquiry" scope="transportsession">
>>    <description>
>>        simple spring example
>>    </description>
>>    <parameter name="ServiceObjectSupplier">org.apache.axis2.extensions.spring.receivers.SpringServletContextObjectSupplier</parameter>
>>    <parameter name="SpringBeanName">dataSetServiceEnquiry</parameter>
>>    <!--
>>        <messageReceivers>
>>                <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out"
>> class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
>>        </messageReceivers>
>>   -->
>>    <operation name="login">
>>        <messageReceiver
>> class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
>>    </operation>
>>    <operation name="getLoginMsg">
>>        <messageReceiver
>> class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
>>    </operation>
>> </service>
>> </serviceGroup>
>>
>>
>>
>>
>>
>> Thanks,
>> Sam Wong
>>
>
>
>
> --
> Sagara Gunathunga
>
> Blog - http://ssagara.blogspot.com
> Web - http://sagaras.awardspace.com/
>

Mime
View raw message