Hi Ralph,
1. We've found that the Ant task needs the jars inside the ant lib
folder so the easiest solution will be to copy the axis2 lib into the
ant lib directory. do an ant -diagnostics and see whether ant has
picked up the classes just to be sure :)

2. Our ant task is somewhat primitive so it does not allow the
mappings to be nested as in the old ant task. As for the attribute
please include the string "namespace=package" seperated by commas.

example
<codegen namespacetopackages="urn:myNamespace=org.me,http://myns=org.myns"; />

We do understand that this needs to be improved. We'll soon improve
the ant task, to the user friendly level of the Axis1 ant task

3. oops ! we do not support getting the username,password through the
messagecontext directly. In the servlet case you'll need to access the
Constants.Configuration.TRANSPORT_IN_URL property in the message
context to get the request URL

HTH

Ajith


On 5/16/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Hi,

I want to migrate to Axis 2 but it causes several problems for instance the
ant task and Handler classes:

1.)
        <target name="wsdl2java">
                <codegen wsdlfilename="${local.wsdl}"
                           serverside="true"
                           packagename="de.test"        >
                </codegen>
        </target>

causes the following error message:
javax.xml.stream.FactoryConfigurationError: Provider
com.bea.xml.stream.MXParserFactory not found

2.)
What's equivalent to this from Axis 1.4:
                <axis-wsdl2java url="${local.wsdl}"
                                output="${src}"
                                    testcase="true"
                                deployscope="session"
                                serverSide="true"
                                skeletonDeploy="true"
                                noimports="false">
                        <mapping
namespace="http://www.domainname.de/appname/";
                                 package="de.domainname.appname.webservice"
/>
                </axis-wsdl2java>

I don't understand how I can use the new namespacetopackages attribute (the
old mapping is not more allowed?!)?

3.)
What is the code for the following Handler code snippet?
    String userID = msgContext.getUsername();
    String password = msgContext.getPassword();
    String remoteIP = msgContext.getStrProp(Constants.MC_REMOTE_ADDR);

Thank you very much for your help!

Regards,
Ralph




--
Ajith Ranabahu

Reply via email to