11-18-2009 05:15 AM
Hi all,
I´m quite stuck with the following problem and I really don´t know where the solution could be..
I´m using 4.5 but I have also try with 4.6 and it doesn´t work either. I´m working on Eclipse.I have used Java ME Platform SDK 3.0 to generate some stubs to my webservice. All of them work properly but the last one. The code generated for the stub to get the information I need :
public ArrayOfIncidencia getIncidencias(int IdPedidoLinea) throws java.rmi.RemoteException {
Object inputObject[] = new Object[] {
new Integer(IdPedidoLinea)
};
Operation op = Operation.newInstance( _qname_operation_getIncidencias, _type_getIncidencias, _type_getIncidenciasResponse );
_prepOperation( op );
op.setProperty( Operation.SOAPACTION_URI_PROPERTY, "http://editorialvertice.com/getIncidencias" );
Object resultObj;
try {
resultObj = op.invoke( inputObject );
} catch( JAXRPCException e ) {
Throwable cause = e.getLinkedCause();
if( cause instanceof java.rmi.RemoteException ) {
throw (java.rmi.RemoteException) cause;
}
throw e;
}
return ArrayOfIncidencia_fromObject((Object[])((Object[]) resultObj)[0]);
}
The exception catched when op.invoke is: "Not nillable element of array type in response is missed". Any idea of what´s going on? If you need further information just let me know. Thanks in advance.
Jose
11-19-2009 02:58 AM
I´ve been making some research...All solutions I´ve seen change the web service. Any other idea?
11-19-2009 03:44 AM
The type of the argument I´m passing to my webservice it´s int ,so the first thing the stub do to generate the input object it´s :
Object inputObject[] = new Object[] {
new Integer(IdPedidoLinea)
};
Where IdPedidoLinea it´s int. I´m thinking on changing my webservice so instead of an int I have an String...Do you think this could work? I'd like to be sure before changing the webservice...
12-15-2010 01:27 AM
Hi I am getting the same problem ..
its working fine in 4.7 and above..
but not in 4.6 and 4.5 which i have tested ..
please give me the solution