the short answer is yes as this is the easiest way to create all 3 necessary 
files
Axis2 service
client
sample build.xml which will create aar for upload to Axis2Servlet

M-
  ----- Original Message ----- 
  From: Phani 
  To: [email protected] 
  Sent: Tuesday, January 29, 2008 8:18 AM
  Subject: Programatic Deployment


  Hi,

  Iam new to Axis and I want to know a webservice programmatic deployment using 
axis2.

   

  Is there any API to create the Services.xml file programmatically in axis2.

  In axis1.x, we created deployment info(wsdd) and used AdminClient which 
handles the creation of server-config.wsdd and the webservice deployment as 
shown below.

   

  Options options = createOptions(adminServiceURL);

          FWSDDDeployment fwsddDeoloyment = generateWSDDDeploymentInfo();

          String wsddDeployment = toString(fwsddDeoloyment);

          adminClient.process(options, new 
ByteArrayInputStream(wsddDeployment.getBytes()));

   

   

  And after the services.xml creation, do I need to create a .aar archive with 
Services.xml and use that for deployment ? 

   

  Do we need to use WSDL2JAVA tool in programmatic deployment.

   

   

   

  Thanks in advance

  --Phani

   

Reply via email to