[ https://issues.apache.org/jira/browse/AXIS2-4470?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12747335#action_12747335 ]
Jeroen edited comment on AXIS2-4470 at 8/25/09 2:59 AM: -------------------------------------------------------- Same problem here, communicating using Axis2-1.5 client to an Axis1 server. 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 }); No arguments are passed to the server. was (Author: entiteit): 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.