Professional Documents
Culture Documents
xml in the
MET-INF in which it is gping to generate the services.xml and WSDL and open and
observe the services.xml
In services.xml
<messageReceiver mep=""
class="ScoreBoardServiceMessageReceiverInOut"> will be there where this class will
takes the in put xml and converts the obi and vice versa.
<parameter name="useOriginalwsdl">true</parameter>
useOriginalwsdl means use same WSDL that is there in the application but not at the
run time so that we can avoid the performnace issues without creating the WSDL at
run time.
If we want we can change to false so that it will craetes run time WSDL.
axis2.xml which is central settings file which will tells how does the run has to
work.
axis2.xml
It contains <parameter name="hotdeployment">true</parameter> so that without re-
stating the server we can deploy and un-deploy the serveices.
<parameter name="enableMTOM">false</parameter> is by default disable that async is
by deault disable if we want we can enable.
Draw the below text based diagram here which is ther in the paint
<parameter name="userName">admin</parameter>
<parameter name="password">axis2</parameter>
Axis2 supports REST FULL services as well and Following parameter will completely
disable REST handling in Axis2
<parameter name="disableREST" locked="false">false</parameter>
Write a SEI Interface and provide Impl and annotate with JAXWS Annotaions then make
it as jar and deploy it in the Run Time Env by creating "servicejars" folder in the
WEB-INF and place this jar in this so that it gets deployed.
That menas it deployed by the JAXWSDeployer by reading the config from the
Annotaion without generating the services.xml so we don't need services.xml here
Note:
In axis2.xml
<parameter name="useGeneratedWSDLinJAXWS">false</parameter> which used for the
JAXWS Axis2 using Annotations at this if we wanted to generate the WSDL at run time
then say ture or false
If want we can make JAXWS-RI Impl as jar then deploy it in the axis2 runtime of
WEB-INF "servicejars" folder so that it can be deployed by the JAXWSDeployer.
3. Axis2 Based (.aar) Dev:
Which as already done.
JAXWS supports various different protocols like HTTP/TCP etc see in axis2.xml
<transportSender name="tcp"
class="org.apache.axis2.transport.tcp.TCPTransportSender"/>
<transportSender name="http"
class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
Hence axis2.xml is called as central config file and which contains the runtime
behavoioral info but not the depleoyement info of the services.