axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "luca marano" <luca.mar...@txt.it>
Subject returning an array of java bean
Date Wed, 12 Feb 2003 16:27:22 GMT
how can i write  a client accessing to a service returning an array of bean?

this is my relevant code:


String endpoint = "http://localhost:8080/axis/services/MessageService";

    Service  service = new Service();
    Call     call    = (Call) service.createCall();

    call.setTargetEndpointAddress( new java.net.URL(endpoint) );
    call.setOperationName(new QName("http://soapinterop.org/", "getResults"));
    Pat p = new Pat("provapatid","provatitle");

    QName returnQName = new QName("com.fwdco.wsbeans","Pat");
    call.registerTypeMapping(Pat.class,returnQName,new BeanSerializerFactory(Pat.class,returnQName),new
BeanDeserializerFactory(Pat.class,returnQName));
    call.setReturnType(org.apache.axis.Constants.SOAP_ARRAY);
    Pat[] ret = (Pat[]) call.invoke(new Object[] { "prova" });

and this is the occured errors:

 at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:546)
 at org.apache.axis.Message.getSOAPEnvelope(Message.java:377)
 at org.apache.axis.client.Call.invokeEngine(Call.java:2132)
 at org.apache.axis.client.Call.invoke(Call.java:2102)
 at org.apache.axis.client.Call.invoke(Call.java:1851)
 at org.apache.axis.client.Call.invoke(Call.java:1777)
 at org.apache.axis.client.Call.invoke(Call.java:1315)

please reply me

Mime
View raw message