axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hyzer <>
Subject axis2 server marshals optional nullable params in wrong order???
Date Tue, 22 Jan 2008 01:47:13 GMT

sorry to bother you, please let me know if I am doing something wrong or if this is a bug
(I would assume not, but who knows), I can open up a Jira issue.

My Axis server (Axis2 as of a couple of months ago, axis2 1.3) is not working correctly, please


I have a class with this method:


public WsFindGroupsResults findGroups(String groupName, String stemName, 

String stemNameScope,

String groupUuid, String queryTerm, String querySearchFromStemName, 

String queryScope, WsSubjectLookup actAsSubjectLookup,

String[] paramNames, String[] paramValues) {


All of these params are optional.

I ran java2wsdl (with defaults mostly), and, then wsdl2java to generate a client (ant configs

When I set only one of the latter params, this is the soap request:


findGroups = FindGroups.class.newInstance();


findGroupsResponse = stub.findGroups(findGroups);


<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv=""><soapenv:Body>
<ns1:findGroups xmlns:ns1="">


So far so good.  But on the axis server (in the findGroups() method above), when the request
is processed, it assigns "19284537-6118-44b2-bbbc-d5757c709cb7" to the input param variable
"groupName", and not what I would expect, instead it should be: "groupUuid".  No matter what
single param I set, it is always assigned to groupName (the first input).


What is going on here?




ps. I posted this on the user group last night with no response yet...

----- Forwarded Message ----
From: Chris Hyzer <>
Sent: Monday, January 21, 2008 3:34:47 AM
Subject: axis2 server marshals optional nullable params in wrong order???

pps. java2wsdl and wsdl2java

    <target name="java2wsdl" description="convert the java to a wsdl">
        <touch file="${generated.client.project.dir}/GrouperService.wsdl" />
        <delete file="${generated.client.project.dir}/GrouperService.wsdl" />
        <java classname="" fork="true">
            <classpath refid="ws.class.path" />
            <arg value="-o" />
            <arg value="${generated.client.project.dir}" />
            <arg value="-of" />
            <arg value="GrouperService.wsdl" />
            <arg value="-cn" />
            <arg value="edu.internet2.middleware.grouper.webservices.GrouperService" />
      <arg value="-stn" />
      <arg value="-l" />
    <target name="wsdl2java" description="convert the wsdl to a java client">
            <fileset dir="${generated.client.project.dir}">
                <include name="src/edu/internet2/middleware/grouper/webservicesClient/"
                <include name="src/edu/internet2/middleware/grouper/webservicesClient/"
                <include name="test/edu/internet2/middleware/grouper/webservicesClient/"
        <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true" >
            <classpath refid="ws.class.path" />
            <arg value="-uri" />
            <arg file="${generated.client.project.dir}/GrouperService.wsdl" />
            <arg value="-t" />
            <arg value="-p" />
            <arg value="edu.internet2.middleware.grouper.webservicesClient" />
      <arg value="-o" />
      <arg value="${generated.client.project.dir}" />


Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.
View raw message