Hey,
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 help.
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 below).
When I set only one of the latter params, this is the soap request:
findGroups = FindGroups.class.newInstance();
findGroups.setGroupUuid("19284537-6118-44b2-bbbc-d5757c709cb7");
findGroupsResponse = stub.findGroups(findGroups);
<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"><soapenv:Body>
<ns1:findGroups
xmlns:ns1="http://webservices.grouper.middleware.internet2.edu/xsd">
<ns1:groupUuid>19284537-6118-44b2-bbbc-d5757c709cb7</ns1:groupUuid>
</ns1:findGroups>
</soapenv:Body>
</soapenv:Envelope>
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?
Thanks!
Chris
ps. I posted this on the user group last night with no response yet...
----- Forwarded Message ----
From: Chris Hyzer <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
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="org.apache.ws.java2wsdl.Java2WSDL" 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" />
</java>
</target>
<target name="wsdl2java" description="convert the wsdl to a java client">
<delete>
<fileset dir="${generated.client.project.dir}">
<include
name="src/edu/internet2/middleware/grouper/webservicesClient/GrouperServiceCallbackHandler.java"
/>
<include
name="src/edu/internet2/middleware/grouper/webservicesClient/GrouperServiceStub.java"
/>
<include
name="test/edu/internet2/middleware/grouper/webservicesClient/GrouperServiceTest.java"
/>
</fileset>
</delete>
<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}" />
</java>
</target>
____________________________________________________________________________________
Looking for last minute shopping deals?
Find them fast with Yahoo! Search.
http://tools.search.yahoo.com/newsearch/category.php?category=shopping