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 Raghu Upadhyayula <ru...@responsys.com> on 2008/12/02 16:00:21 UTC

[Axis2] in services.xml problem

Hi,

 

I have a webservices (written in Java) with several operations.  I want
to exclude couple of operations from that.  I've used the
<excludeOperations> tag in services.xml as shown below

 

        <excludeOperations>

            <operation>copy</operation>

            <operation>move</operation>

        </excludeOperations>

 

After restarting the app server when I see view the WSDL in the browser,
I still see these 2 operations & also I was able to access those
operations from the Java client.

 

Thanks

Raghu


RE: [Axis2] in services.xml problem

Posted by Raghu Upadhyayula <ru...@responsys.com>.
I'm using Axis2 1.4
 
-Raghu

________________________________

From: Afkham Azeez [mailto:afkham@gmail.com]
Sent: Tue 12/2/2008 6:22 PM
To: axis-user@ws.apache.org
Subject: Re: [Axis2] <excludeOperations> in services.xml problem


What is the Axis2 version you are using?

Azeez


On Tue, Dec 2, 2008 at 8:30 PM, Raghu Upadhyayula <ru...@responsys.com> wrote:


	Hi,

	 

	I have a webservices (written in Java) with several operations.  I want to exclude couple of operations from that.  I've used the <excludeOperations> tag in services.xml as shown below

	 

	        <excludeOperations>

	            <operation>copy</operation>

	            <operation>move</operation>

	        </excludeOperations>

	 

	After restarting the app server when I see view the WSDL in the browser, I still see these 2 operations & also I was able to access those operations from the Java client.

	 

	Thanks

	Raghu




-- 
Thanks
Afkham Azeez

Blog: http://afkham.org <http://afkham.org/> 
Developer Portal: http://www.wso2.org <http://www.wso2.org/> 
WSAS Blog: http://wso2wsas.blogspot.com <http://wso2wsas.blogspot.com/> 
Company: http://wso2.com <http://wso2.com/> 
GPG Fingerprint: 643F C2AF EB78 F886 40C9  B2A2 4AE2 C887 665E 0760


Re: [Axis2] in services.xml problem

Posted by Afkham Azeez <af...@gmail.com>.
What is the Axis2 version you are using?

Azeez

On Tue, Dec 2, 2008 at 8:30 PM, Raghu Upadhyayula <
rupadhyayula@responsys.com> wrote:

>  Hi,
>
>
>
> I have a webservices (written in Java) with several operations.  I want to
> exclude couple of operations from that.  I've used the <excludeOperations>
> tag in services.xml as shown below
>
>
>
>         <excludeOperations>
>
>             <operation>copy</operation>
>
>             <operation>move</operation>
>
>         </excludeOperations>
>
>
>
> After restarting the app server when I see view the WSDL in the browser, I
> still see these 2 operations & also I was able to access those operations
> from the Java client.
>
>
>
> Thanks
>
> Raghu
>



-- 
Thanks
Afkham Azeez

Blog: http://afkham.org
Developer Portal: http://www.wso2.org
WSAS Blog: http://wso2wsas.blogspot.com
Company: http://wso2.com
GPG Fingerprint: 643F C2AF EB78 F886 40C9  B2A2 4AE2 C887 665E 0760

Re: [Axis2] in services.xml problem

Posted by Deepal jayasinghe <de...@gmail.com>.
>
>
> On Fri, Dec 12, 2008 at 5:40 AM, Deepal jayasinghe <deepalk@gmail.com
> <ma...@gmail.com>> wrote:
>
>
>     > hmmm, an excluded operation cannot be invoked, as far as I know
>     from Axis
>     > 1.3.   I will verify.
>     >
>     Nope exclude operations will only exclude from WSDL, if that is
>     not the
>     case then something has broken.
>
> I dont think it should be that way. If an operation is excluded then
> we should not create an Axis operation for it. And I think that this
> is the current behaviour of Axis2. Thus a excluded operation cannot be
> invoked, it will not be displayed in the WSDL as well.
>
>  
Thanks Keith, I was confused this with control operations. I am sorry.
Yes if you exclude we do not create Axis operation, only way to invoke
them using java reflection. For example if you have init method in the
service implementation class, that will be excluded. But at the run time
we can execute that method.

Deepal

Re: [Axis2] in services.xml problem

Posted by keith chapman <ke...@gmail.com>.
On Fri, Dec 12, 2008 at 5:40 AM, Deepal jayasinghe <de...@gmail.com>wrote:

>
> > hmmm, an excluded operation cannot be invoked, as far as I know from Axis
> > 1.3.   I will verify.
> >
> Nope exclude operations will only exclude from WSDL, if that is not the
> case then something has broken.

I dont think it should be that way. If an operation is excluded then we
should not create an Axis operation for it. And I think that this is the
current behaviour of Axis2. Thus a excluded operation cannot be invoked, it
will not be displayed in the WSDL as well.

 Thanks,
Keith.

>
>
> Deepal
> > Nadir Amra
> >
> >
> > Deepal Jayasinghe <de...@opensource.lk> wrote on 12/11/2008 04:20:43
> PM:
> >
> >
> >> [image removed]
> >>
> >> Re: [Axis2] <excludeOperations> in services.xml problem
> >>
> >> Deepal Jayasinghe
> >>
> >> to:
> >>
> >> axis-user
> >>
> >> 12/11/2008 04:21 PM
> >>
> >> Please respond to axis-user
> >>
> >>
> >>
> >>> Hi,
> >>>
> >>>
> >>>
> >>> I have a webservices (written in Java) with several operations.  I
> >>> want to exclude couple of operations from that.  I?ve used the
> >>> <excludeOperations> tag in services.xml as shown below.  I?m using
> >>> Axis2 1.4.
> >>>
> >>>
> >>>
> >>>         <excludeOperations>
> >>>
> >>>             <operation>copy</operation>
> >>>
> >>>             <operation>move</operation>
> >>>
> >>>         </excludeOperations>
> >>>
> >>>
> >>>
> >>> After restarting the app server when I see view the WSDL in the
> >>> browser, I still see these 2 operations & also I was able to access
> >>> those operations from the Java client.
> >>>
> >>>
> >> Excluding operation mean, you do not display them in the WSDL but you
> >> can invoke them. Anyway please create a JIRA and attach your service. I
> >> will have a look at.
> >>
> >> Deepal
> >>
> >>>
> >>> Thanks
> >>>
> >>> Raghu
> >>>
> >>>
> >> --
> >> Thank you!
> >>
> >>
> >> http://blogs.deepal.org
> >>
> >>
> >
> >
> >
>
>
> --
> Thank you!
>
>
> http://blogs.deepal.org
>
>


-- 
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org

Re: [Axis2] in services.xml problem

Posted by Deepal jayasinghe <de...@gmail.com>.
>
> have you looked into using annotation? specifically the tag
> @WebMethod(exclude=true)
Unfortunately no, but that is something we can easily fix. So let's
create a JIRA :)

Deepal
>
>
> *Deepal jayasinghe <de...@gmail.com>*
>  
>
>
>
>
> *12/11/2008 05:10 PM*
> Please respond to axis-user@ws.apache.org 	
> From
> 	*Deepal jayasinghe <de...@gmail.com>*
> To
> 	axis-user@ws.apache.org
> cc
> 	
> Subject
> 	Re: [Axis2] <excludeOperations> in services.xml problem
>
>
>
> 	
>
>
>
>
>
>
> > hmmm, an excluded operation cannot be invoked, as far as I know from
> Axis
> > 1.3.   I will verify.
> >  
> Nope exclude operations will only exclude from WSDL, if that is not the
> case then something has broken.
>
> Deepal
> > Nadir Amra
> >
> >
> > Deepal Jayasinghe <de...@opensource.lk> wrote on 12/11/2008
> 04:20:43 PM:
> >
> >  
> >> [image removed]
> >>
> >> Re: [Axis2] <excludeOperations> in services.xml problem
> >>
> >> Deepal Jayasinghe
> >>
> >> to:
> >>
> >> axis-user
> >>
> >> 12/11/2008 04:21 PM
> >>
> >> Please respond to axis-user
> >>
> >>
> >>    
> >>> Hi,
> >>>
> >>>
> >>>
> >>> I have a webservices (written in Java) with several operations.  I
> >>> want to exclude couple of operations from that.  I?ve used the
> >>> <excludeOperations> tag in services.xml as shown below.  I?m using
> >>> Axis2 1.4.
> >>>
> >>>
> >>>
> >>>         <excludeOperations>
> >>>
> >>>             <operation>copy</operation>
> >>>
> >>>             <operation>move</operation>
> >>>
> >>>         </excludeOperations>
> >>>
> >>>
> >>>
> >>> After restarting the app server when I see view the WSDL in the
> >>> browser, I still see these 2 operations & also I was able to access
> >>> those operations from the Java client.
> >>>
> >>>      
> >> Excluding operation mean, you do not display them in the WSDL but you
> >> can invoke them. Anyway please create a JIRA and attach your service. I
> >> will have a look at.
> >>
> >> Deepal
> >>    
> >>>
> >>> Thanks
> >>>
> >>> Raghu
> >>>
> >>>      
> >> --
> >> Thank you!
> >>
> >>
> >> http://blogs.deepal.org
> >>
> >>    
> >
> >
> >  
>
>
> -- 
> Thank you!
>
>
> http://blogs.deepal.org
>
>


-- 
Thank you!


http://blogs.deepal.org


Re: [Axis2] in services.xml problem

Posted by SP...@scottsdaleins.com.
have you looked into using annotation? specifically the tag 
@WebMethod(exclude=true)



Deepal jayasinghe <de...@gmail.com>
 




12/11/2008 05:10 PM
Please respond to axis-user@ws.apache.org

From
Deepal jayasinghe <de...@gmail.com>
To
axis-user@ws.apache.org
cc

Subject
Re: [Axis2] <excludeOperations> in services.xml problem







> hmmm, an excluded operation cannot be invoked, as far as I know from 
Axis 
> 1.3.   I will verify. 
> 
Nope exclude operations will only exclude from WSDL, if that is not the
case then something has broken.

Deepal
> Nadir Amra
>
>
> Deepal Jayasinghe <de...@opensource.lk> wrote on 12/11/2008 04:20:43 
PM:
>
> 
>> [image removed] 
>>
>> Re: [Axis2] <excludeOperations> in services.xml problem
>>
>> Deepal Jayasinghe 
>>
>> to:
>>
>> axis-user
>>
>> 12/11/2008 04:21 PM
>>
>> Please respond to axis-user
>>
>>
>> 
>>> Hi,
>>>
>>>
>>>
>>> I have a webservices (written in Java) with several operations.  I
>>> want to exclude couple of operations from that.  I?ve used the
>>> <excludeOperations> tag in services.xml as shown below.  I?m using
>>> Axis2 1.4.
>>>
>>>
>>>
>>>         <excludeOperations>
>>>
>>>             <operation>copy</operation>
>>>
>>>             <operation>move</operation>
>>>
>>>         </excludeOperations>
>>>
>>>
>>>
>>> After restarting the app server when I see view the WSDL in the
>>> browser, I still see these 2 operations & also I was able to access
>>> those operations from the Java client.
>>>
>>> 
>> Excluding operation mean, you do not display them in the WSDL but you
>> can invoke them. Anyway please create a JIRA and attach your service. I
>> will have a look at.
>>
>> Deepal
>> 
>>>
>>> Thanks
>>>
>>> Raghu
>>>
>>> 
>> -- 
>> Thank you!
>>
>>
>> http://blogs.deepal.org
>>
>> 
>
>
> 


-- 
Thank you!


http://blogs.deepal.org



Re: [Axis2] in services.xml problem

Posted by Deepal jayasinghe <de...@gmail.com>.
> hmmm, an excluded operation cannot be invoked, as far as I know from Axis 
> 1.3.   I will verify. 
>   
Nope exclude operations will only exclude from WSDL, if that is not the
case then something has broken.

Deepal
> Nadir Amra
>
>
> Deepal Jayasinghe <de...@opensource.lk> wrote on 12/11/2008 04:20:43 PM:
>
>   
>> [image removed] 
>>
>> Re: [Axis2] <excludeOperations> in services.xml problem
>>
>> Deepal Jayasinghe 
>>
>> to:
>>
>> axis-user
>>
>> 12/11/2008 04:21 PM
>>
>> Please respond to axis-user
>>
>>
>>     
>>> Hi,
>>>
>>>
>>>
>>> I have a webservices (written in Java) with several operations.  I
>>> want to exclude couple of operations from that.  I?ve used the
>>> <excludeOperations> tag in services.xml as shown below.  I?m using
>>> Axis2 1.4.
>>>
>>>
>>>
>>>         <excludeOperations>
>>>
>>>             <operation>copy</operation>
>>>
>>>             <operation>move</operation>
>>>
>>>         </excludeOperations>
>>>
>>>
>>>
>>> After restarting the app server when I see view the WSDL in the
>>> browser, I still see these 2 operations & also I was able to access
>>> those operations from the Java client.
>>>
>>>       
>> Excluding operation mean, you do not display them in the WSDL but you
>> can invoke them. Anyway please create a JIRA and attach your service. I
>> will have a look at.
>>
>> Deepal
>>     
>>>
>>> Thanks
>>>
>>> Raghu
>>>
>>>       
>> -- 
>> Thank you!
>>
>>
>> http://blogs.deepal.org
>>
>>     
>
>
>   


-- 
Thank you!


http://blogs.deepal.org


Re: [Axis2] in services.xml problem

Posted by Nadir Amra <am...@us.ibm.com>.
hmmm, an excluded operation cannot be invoked, as far as I know from Axis 
1.3.   I will verify. 

Nadir Amra


Deepal Jayasinghe <de...@opensource.lk> wrote on 12/11/2008 04:20:43 PM:

> [image removed] 
> 
> Re: [Axis2] <excludeOperations> in services.xml problem
> 
> Deepal Jayasinghe 
> 
> to:
> 
> axis-user
> 
> 12/11/2008 04:21 PM
> 
> Please respond to axis-user
> 
> 
> > Hi,
> >
> > 
> >
> > I have a webservices (written in Java) with several operations.  I
> > want to exclude couple of operations from that.  I?ve used the
> > <excludeOperations> tag in services.xml as shown below.  I?m using
> > Axis2 1.4.
> >
> > 
> >
> >         <excludeOperations>
> >
> >             <operation>copy</operation>
> >
> >             <operation>move</operation>
> >
> >         </excludeOperations>
> >
> > 
> >
> > After restarting the app server when I see view the WSDL in the
> > browser, I still see these 2 operations & also I was able to access
> > those operations from the Java client.
> >
> Excluding operation mean, you do not display them in the WSDL but you
> can invoke them. Anyway please create a JIRA and attach your service. I
> will have a look at.
> 
> Deepal
> >
> > 
> >
> > Thanks
> >
> > Raghu
> >
> 
> -- 
> Thank you!
> 
> 
> http://blogs.deepal.org
> 


Re: [Axis2] in services.xml problem

Posted by Deepal Jayasinghe <de...@opensource.lk>.
> Hi,
>
>  
>
> I have a webservices (written in Java) with several operations.  I
> want to exclude couple of operations from that.  I’ve used the
> <excludeOperations> tag in services.xml as shown below.  I’m using
> Axis2 1.4.
>
>  
>
>         <excludeOperations>
>
>             <operation>copy</operation>
>
>             <operation>move</operation>
>
>         </excludeOperations>
>
>  
>
> After restarting the app server when I see view the WSDL in the
> browser, I still see these 2 operations & also I was able to access
> those operations from the Java client.
>
Excluding operation mean, you do not display them in the WSDL but you
can invoke them. Anyway please create a JIRA and attach your service. I
will have a look at.

Deepal
>
>  
>
> Thanks
>
> Raghu
>

-- 
Thank you!


http://blogs.deepal.org


RE: [Axis2] in services.xml problem

Posted by Raghu Upadhyayula <ru...@responsys.com>.
Hi,

 

I have a webservices (written in Java) with several operations.  I want
to exclude couple of operations from that.  I've used the
<excludeOperations> tag in services.xml as shown below.  I'm using Axis2
1.4.

 

        <excludeOperations>

            <operation>copy</operation>

            <operation>move</operation>

        </excludeOperations>

 

After restarting the app server when I see view the WSDL in the browser,
I still see these 2 operations & also I was able to access those
operations from the Java client.

 

Thanks

Raghu