[
http://jira.codehaus.org/browse/XFIRE-331?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_127014
]
Jean-Francois Lebel commented on XFIRE-331:
-------------------------------------------
Hi,
I am using the 1.2.6 version of Xfire, Java 1.4.2 and I still get that problem,
i.e. when I try to call some function with more that one parameter, only the
first one is sent.
That's what my test looks like:
Client client = new Client(new
URL("http://www.canadianemr.ca/webservices/cma.asmx?WSDL"));
Document doc = (Document)client.invoke("GetRecommendations", new Integer[]{new
Integer("1"), new Integer("0")})[0];
// do something with the resulting xml document
And that's the request sent (missing 1 parameter):
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soap:Body xmlns:ns1="http://localhost/">
<ns1:GetRecommendations xsi:type="xsd:int">
1
</ns1:GetRecommendations>
</soap:Body>
</soap:Envelope>
Anyone can figure what's wrong? Is the fix still... fixed?
Thanks for any help,
Jeff
> Multiple parameters are not recognized with dynamic client
> ----------------------------------------------------------
>
> Key: XFIRE-331
> URL: http://jira.codehaus.org/browse/XFIRE-331
> Project: XFire
> Issue Type: Bug
> Affects Versions: 1.0, 1.1-beta-1
> Reporter: Stefan Becker
> Assignee: Dan Diephouse
> Fix For: 1.1-RC1
>
>
> I created a simple POJO as my service
> {{monspaced}}
> public class TestService {
> public String concat(String string1, String string2) {
> return string1 + string2;
> }
> }
> {{monspaced}}
> and a corresponding services.xml
> {{monspaced}}
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <beans xmlns="http://xfire.codehaus.org/config/1.0">
> <service>
> <name>TestService</name>
> <namespace>http://xfire.codehaus.org/TestService</namespace>
> <serviceClass>TestService</serviceClass>
> </service>
> </beans>
> {{monspaced}}
> http://localhost:81/xfire/services/TestService?wsdl generates a valid wsdl
> Then I tried to test my service with a dynamic client
> {{monspaced}}
> import java.net.MalformedURLException;
> import java.net.URL;
> import org.codehaus.xfire.client.Client;
> public class TestServiceClient {
> public static void main(String[] args) throws MalformedURLException,
> Exception {
> Client client = new Client(new
> URL("http://localhost:81/xfire/services/TestService?wsdl"));
> Object[] results = client.invoke("concat", new Object[] { "ABC", "123"
> });
> System.out.println((String) results[0]);
> }
> }
> {{monspaced}}
> The response is 'ABCABC' not as I expected 'ABC123'
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email