Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How does the Axisservlet know the Operation to be executed - AXIS 2 Framework  RSS feed

 
Naresh Shanmugam
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In JAX-WS the URL is the same, no matter how many operation an web service supports. How does Axis servlet identify the operation that has to be executed for a specific request, as in the right Skeleton?

From the web.xml I can make out all the requests are sent to 'org.apache.axis2.transport.http.AxisServlet'. How does AxisServlet know the operation to be executed. Is there any specific parameter which it especially look for in the request XML? If yes what is that parameter? How does a specific skeleton be mapped for that operation?

<servlet-mapping>
<servlet-name>AxisServlet</servlet-name>
<url-pattern>/services/*</url-pattern>
</servlet-mapping>

<servlet>
<servlet-name>AxisServlet</servlet-name>
<display-name>Apache-Axis Servlet</display-name>
<servlet-class>org.apache.axis2.transport.http.AxisServlet</servlet-class>
</servlet>
 
Tim Holloway
Bartender
Posts: 18705
71
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
AXIS2 is a SOAP server. The services available are defined in the WSDL. The SOAP request payload contains the necessary information.
 
Naresh Shanmugam
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the SOAP Payload, is there any specific parameter which 'AxisServlet' especially look for? If yes what is that parameter? How does a specific skeleton be mapped for that operation?
Say for an instance, in the Struts application, we pass the action name to be executed in the URL and struts.xml contains the mapping between the action name and fully qualified java class name, likewise is there anything in AXIS2?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!