Re: Migrating Legacy Axis1 application

Andreas Lehmkühler <[email protected]> Tue, 24 Jun 2025 17:52:46 +0200
Newsgroups gmane.text.xml.axis.user
Message-ID <[email protected]>
Hi,

I neither used axis1 nor wsdd files to configure a webservice. I'm using 
axis2 for quite some time.

I guess, everything but the service-stuff of the wsdd files belongs to 
axis2.xml as you already figured out.

The service.xml files your are looking for, should be automatically 
created when generating the code using wsdl2java

Hope this helps

Andreas

Am 24.06.25 um 00:49 schrieb Mansour Al Akeel:
> Hello all,
> 
> I am trying to migrate an old axis1 application. The application is a 
> war file with multiple JWS files, and there's a WEB-INF/server- 
> config.wsdd file. This file contains multiple services definitions. The 
> wsdd file defines the transports, and the handlers as well, as services.
> 
> The challenges I am facing are with the upgrade. With multiple <service> 
> definitions in the wsdd file, how can I port those to axis2. I looked 
> into the migration guide but I was not able to find a way to port legacy 
> code to newer "conf/services.xml" or a sample application that I can use 
> as a basis for my work.
> The content of the wsdd file is similar to:
> 
> <globalConfiguration>
> 
> <parameter name="adminPassword" value="admin" />
> 
> <parameter name="enableNamespacePrefixOptimization"
> 
> value="false" />
> 
> <parameter name="dotNetSoapEncFix" value="true" />
> 
> <parameter name="disablePrettyXML" value="true" />
> 
> <parameter name="attachments.implementation"
> 
> value="org.apache.axis.attachments.AttachmentsImpl" />
> 
> <parameter name="sendXsiTypes" value="true" />
> 
> <parameter name="sendMultiRefs" value="true" />
> 
> <parameter name="sendXMLDeclaration" value="true" />
> 
> <requestFlow>
> 
> <handler type="java:org.apache.axis.handlers.JWSHandler">
> 
> <parameter name="scope" value="session" />
> 
> </handler>
> 
> <handler type="java:org.apache.axis.handlers.JWSHandler">
> 
> <parameter name="scope" value="request" />
> 
> <parameter name="extension" value=".jwr" />
> 
> </handler>
> 
> </requestFlow>
> 
> </globalConfiguration>
> 
> 
> 
> <handler name="LocalResponder"
> 
> type="java:org.apache.axis.transport.local.LocalResponder" />
> 
> <handler name="URLMapper"
> 
> type="java:org.apache.axis.handlers.http.URLMapper" />
> 
> <handler name="Authenticate"
> 
> type="java:org.apache.axis.handlers.SimpleAuthenticationHandler" />
> 
> 
> 
> <service name="AdminService" provider="java:MSG">
> 
> <parameter name="allowedMethods" value="AdminService" />
> 
> <parameter name="enableRemoteAdmin" value="false" />
> 
> <parameter name="className"
> 
> value="org.apache.axis.utils.Admin" />
> 
> <namespace>http://xml.apache.org/axis/wsdd/ <http://xml.apache.org/axis/ 
> wsdd/></namespace>
> 
> </service>
> 
> 
> <service name="Version" provider="java:RPC">
> 
> <parameter name="allowedMethods" value="getVersion" />
> 
> <parameter name="className" value="org.apache.axis.Version" />
> 
> </service>
> 
> 
> 
> <transport name="http">
> 
> <requestFlow>
> 
> <handler type="URLMapper" />
> 
> <handler
> 
> type="java:org.apache.axis.handlers.http.HTTPAuthHandler" />
> 
> </requestFlow>
> 
> <parameter name="qs:list"
> 
> value="org.apache.axis.transport.http.QSListHandler" />
> 
> <parameter name="qs:wsdl"
> 
> value="org.apache.axis.transport.http.QSWSDLHandler" />
> 
> <parameter name="qs:method"
> 
> value="org.apache.axis.transport.http.QSMethodHandler" />
> 
> </transport>
> 
> <transport name="local">
> 
> <responseFlow>
> 
> <handler type="LocalResponder" />
> 
> </responseFlow>
> 
> </transport>
> 
> 
> 
> <service name="CCR" provider="java:RPC" style="wrapped"
> 
> use="literal" xmlns:xsd="http://www.w3.org/2001/XMLSchema <http:// 
> www.w3.org/2001/XMLSchema>">
> 
> <parameter name="className"
> 
> value="com.fully.qualified.classname" />
> 
> <parameter name="allowedMethods" value="*" />
> 
> <parameter name="typeMappingVersion" value="1.2" />
> 
> <namespace>http://tempuri.org/ <http://tempuri.org/></namespace>
> 
> <parameter name="schemaUnqualified"
> 
> value="http://XXX/CCR/ <http://XXX/CCR/>" />
> 
> <parameter name="wsdlServicePort" value="CCRPort" />
> 
> </service>
> 
> 
> 
> I understand <transport> and <globalConfig> may need to go into WEB-INF/ 
> config/axis2.xml.
> 
> I am hoping to find a clear path to re-write or port this to the newer 
> services.xml format.
> 
> 
> Is there an example that I can use for this work?
> 
> 
> 
> 
> 
> 
> 
> 
>