axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeroen (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AXIS2-4470) won't receive arguments sent by RPCServiceClient::invokeBlocking anymore with axis 2-1.5 (axis2-4.1 kernel works fine)
Date Tue, 25 Aug 2009 09:58:59 GMT

    [ https://issues.apache.org/jira/browse/AXIS2-4470?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12747335#action_12747335
] 

Jeroen commented on AXIS2-4470:
-------------------------------

Same problem here, communicating using Axis2-1.5 client to an Axis1 server.
{code}RPCServiceClient serviceClient = new RPCServiceClient();
EndpointReference targetEPR = new EndpointReference(getGenericDataServiceEndpointUrl());
Options options = serviceClient.getOptions();
options.setTo(targetEPR);
QName opPutData = new QName("ns:putData", "putData");
Object[] putDataArgs = new Object[] {
		"parameter1",
		"parameter2"
};
Class<?>[] types = new Class<?>[] { String[].class }; 
Object[] returns = serviceClient.invokeBlocking(opPutData, putDataArgs, new Class<?>[]
{ String[].class });{code}

No arguments are passed to the server.

> won't receive arguments sent by RPCServiceClient::invokeBlocking anymore with axis 2-1.5
(axis2-4.1 kernel works fine)
> ----------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-4470
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4470
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.5
>         Environment: win xp
>            Reporter: Magnus Melin
>
> I have a client like
> import javax.xml.namespace.QName;
> import org.apache.axis2.AxisFault;
> import org.apache.axis2.addressing.EndpointReference;
> import org.apache.axis2.client.Options;
> import org.apache.axis2.rpc.client.RPCServiceClient;
> public class SimpleWSClient {
>     public SimpleWSClient(String url) throws AxisFault {
>         this.serviceClient = new RPCServiceClient();
>         Options options = serviceClient.getOptions();
>         EndpointReference targetEPR = new EndpointReference(url);
>         options.setTo(targetEPR);
>     }
>     public Meaning[] findSameAs(String label, String uri) throws AxisFault {
>         QName qname = new QName("http://example.org/ws", "findSameAs");
>         Object[] wsArgs = new Object[] { label, uri };
>         Class<?>[] rvTypes = new Class<?>[] { Meaning[].class };
>         Object[] response = serviceClient.invokeBlocking(
>                 qname, wsArgs, rvTypes);
>         Meaning[] meanings = (Meaning[]) response[0];        
>         return meanings;
>     }
> }
> When i call findSameAs, the server will receive only empty arguments. 
> If i keep all the other 2-1.5 jars, but replace axis2-kernel-1.5.jar with axis2-kernel-1.4.1.jar
the label and uri arguments are received again (though it generates other errors later...)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message