Hello

I�m having problems with the serialization on the server side of my web
service.

When I use my client Program with JMS transport I get the following error:

java.io.IOException: No serializer found for class
samples.analises_resul.tipos_
analises in registry [EMAIL PROTECTED]
        at
org.apache.axis.encoding.SerializationContextImpl.serializeActual(Ser
ializationContextImpl.java:1281)

If I run my Program using HTTP transport all works fine.
I send the deploy.wsdd and the client of the web service.



Can anyone give me help  solving this problem .



Tanks


Manuel Catarino
[EMAIL PROTECTED]


Program(Client of the web service)


int num10=Integer.valueOf(num_utente).intValue();

tipos_analises[]  res=new tipos_analises[5];

try {



String endpointURL =

"http://localhost:8080/axis/servlet/AxisServlet";;



String methodName = "le_resultados_bd2";



Service service = new Service();

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



call.setTargetEndpointAddress(new java.net.URL(endpointURL));

call.setOperationName(new QName("resultados_analises", methodName));



QName qname = new
QName("http://localhost/axis/services/resultados_analises","tipos_analises";)
;



call.registerTypeMapping(tipos_analises.class,qname,BeanSerializerFactory.cl
ass,BeanDeserializerFactory.class);



// Using JMS transport

call.setTransport(new JMSTransport5());



Object[] params = new Object[] {new Integer(num10)};



res = (tipos_analises[]) call.invoke(params);







deploy.wsdd



<deployment xmlns="http://xml.apache.org/axis/wsdd/";

            xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";

            xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance";>

  <!-- note that either style="message" OR provider="java:MSG" both work -->

  <service name="resultados_analises" provider="java:RPC">

    <parameter name="className"
value="samples.analises_resul.resultados_analises" />

    <parameter name="allowedMethods" value="le_resultados_bd2" />

  </service>

  <beanMapping qname="ns:tipos_analises"

     xmlns:ns="http://localhost/axis/services/resultados_analises";

     languageSpecificType="java:samples.analises_resul.tipos_analises"/>



</deployment>






Reply via email to