method selection for service

2007-11-08 Thread Jeff Greif
1.  How are operations in services.xml associated with methods of
the service implementation class?

2.  Suppose a RawXMLInOutMessageReceiver is used for the service, and
the service impl class exposes just one public method with the
appropriate OMElement methodName(OMElement) signature.  Will all
requests dispatched to the service invoke the single exposed public
method, or only ones that somehow map to that method's name based on
the payload element name or soap action uri?

3.  Is there reference documentation or an XML schema for the full
configuration language used in services.xml?

Jeff

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: method selection for service

2007-11-08 Thread Nadir Amra
Jeff,

I can answer some of your questions with the caveat that all my work is 
based on POJOs (plain old java objects) as Web services. 

The operations element just lists the services.   There are things you 
can do on a per-operation basis and that is given in the XML schema at 
http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/resources/services.xsd?view=markup
 
 (note the schema may not be complete but it is close). 

You can exclude public methods by using excludeOperations element. 


Nadir K. Amra


[EMAIL PROTECTED] wrote on 11/08/2007 02:59:09 PM:

 1.  How are operations in services.xml associated with methods of
 the service implementation class?
 
 2.  Suppose a RawXMLInOutMessageReceiver is used for the service, and
 the service impl class exposes just one public method with the
 appropriate OMElement methodName(OMElement) signature.  Will all
 requests dispatched to the service invoke the single exposed public
 method, or only ones that somehow map to that method's name based on
 the payload element name or soap action uri?
 
 3.  Is there reference documentation or an XML schema for the full
 configuration language used in services.xml?
 
 Jeff
 
 -
 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]



Re: method selection for service

2007-11-08 Thread Amila Suriarachchi
On Nov 9, 2007 2:29 AM, Jeff Greif [EMAIL PROTECTED] wrote:
 1.  How are operations in services.xml associated with methods of
 the service implementation class?
operation name should be equals to the java method name.

 2.  Suppose a RawXMLInOutMessageReceiver is used for the service, and
 the service impl class exposes just one public method with the
 appropriate OMElement methodName(OMElement) signature.  Will all
 requests dispatched to the service invoke the single exposed public
 method, or only ones that somehow map to that method's name based on
 the payload element name or soap action uri?
for RawXMLInOutMessageRecevier we won't be able to do the body based
dispatching.
so it can not find the operation using the payload.
So it would dispatch only if it can find the operation with the soap action.


 3.  Is there reference documentation or an XML schema for the full
 configuration language used in services.xml
if you see the org.apache.axis2.deployment.ServiceBuilder
class populateService method you can easily find the tags.

 Jeff

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





-- 
Amila Suriarachchi,
WSO2 Inc.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: method selection for service

2007-11-08 Thread delapenajs
Hi,

I'm having problems calling a method through REST.   I have three 
methods in my Web Service.  They are all methods in the same Class.   I am 
able to call the first method successfully.   For some reason, when i call 
the second and the third method, i encounter Internal server error.  How 
can this be... the contents of the proceeding methods are simply return 
Some String;

I've been stuck with this for 3 days... Any help would be 
appreciated :)


thanks,

Joseph





Amila Suriarachchi [EMAIL PROTECTED] 
11/09/2007 02:55 PM
Please respond to
axis-user@ws.apache.org


To
axis-user@ws.apache.org
cc

Subject
Re: method selection for service






On Nov 9, 2007 2:29 AM, Jeff Greif [EMAIL PROTECTED] wrote:
 1.  How are operations in services.xml associated with methods of
 the service implementation class?
operation name should be equals to the java method name.

 2.  Suppose a RawXMLInOutMessageReceiver is used for the service, and
 the service impl class exposes just one public method with the
 appropriate OMElement methodName(OMElement) signature.  Will all
 requests dispatched to the service invoke the single exposed public
 method, or only ones that somehow map to that method's name based on
 the payload element name or soap action uri?
for RawXMLInOutMessageRecevier we won't be able to do the body based
dispatching.
so it can not find the operation using the payload.
So it would dispatch only if it can find the operation with the soap 
action.


 3.  Is there reference documentation or an XML schema for the full
 configuration language used in services.xml
if you see the org.apache.axis2.deployment.ServiceBuilder
class populateService method you can easily find the tags.

 Jeff

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





-- 
Amila Suriarachchi,
WSO2 Inc.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]