[ http://jira.codehaus.org/browse/XFIRE-331?page=comments#action_64179 ]
Stuart Barlow commented on XFIRE-331:
-------------------------------------
I am running my test from intellij. And the client is using the jars...
Z:\hc\current\rhum\lib\axis.jar
Z:\hc\current\rhum\lib\buteclient.jar
Z:\hc\current\rhum\lib\CalendarBean.jar
Z:\hc\current\rhum\lib\dal.jar
Z:\hc\current\rhum\lib\httpunit.jar
Z:\hc\current\rhum\lib\icbm.jar
Z:\hc\current\rhum\lib\jaxrpc.jar
Z:\hc\current\rhum\lib\JimiProClasses.jar
Z:\hc\current\rhum\lib\jmxri.jar
Z:\hc\current\rhum\lib\jmxtools.jar
Z:\hc\current\rhum\lib\joda-time-1.0.jar
Z:\hc\current\rhum\lib\junit.jar
Z:\hc\current\rhum\lib\juratest.jar
Z:\hc\current\rhum\lib\ldb.jar
Z:\hc\current\rhum\lib\log4j.jar
Z:\hc\current\rhum\lib\mail.jar
Z:\hc\current\rhum\lib\pdtasks.jar
Z:\hc\current\rhum\lib\pdutils.jar
Z:\hc\current\rhum\lib\servlet.jar
Z:\hc\current\rhum\lib\spring-beans.jar
Z:\hc\current\rhum\lib\spring-context.jar
Z:\hc\current\rhum\lib\spring-core.jar
Z:\hc\current\rhum\lib\spring-mock.jar
Z:\hc\current\rhum\lib\spring-web.jar
Z:\hc\current\rhum\lib\Tidy.jar
Z:\hc\current\rhum\lib\widgets.jar
Z:\hc\current\rhum\lib\wsdl4j-1.5.1.jar
Z:\hc\current\rhum\lib\xalan.jar
Z:\hc\current\rhum\lib\xerces.jar
Z:\hc\current\rhum\lib\xfire-all-1.1-SNAPSHOT.jar
Z:\hc\current\rhum\lib\xml-apis.jar
Z:\hc\current\rhum\lib\XmlSchema-1.0.jar
Do you think it is an AXIS client and XFire client clash?
My test client is like this...
Client client = new Client(url);
Object[] response = client.invoke("logon", new Object[]{"admin", "Host",
"admin", "xfire-unit-test", "edi-stuart"});
The request looks like this...
<?xml version='1.0' encoding='UTF-8'?><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><logon
xmlns="http://hemp.hummingbird.com/v1/hemp"
xsi:type="xsd:string">admin</logon></soap:Body></soap:Envelope>
i.e. only the first param is getting sent.
> Multiple parameters are not recognized with dynamic client
> ----------------------------------------------------------
>
> Key: XFIRE-331
> URL: http://jira.codehaus.org/browse/XFIRE-331
> Project: XFire
> Type: Bug
> Versions: 1.0, 1.1-beta-1
> Reporter: Stefan Becker
> Assignee: Dan Diephouse
> Fix For: 1.1
>
>
> 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