Thanks, but I´ve already done all these steps. I really don´t know what to
do...

Fabricio

-----Mensagem original-----
De: Hoda Nadeem [mailto:[EMAIL PROTECTED]
Enviada em: terça-feira, 30 de março de 2004 10:06
Para: [EMAIL PROTECTED]
Assunto: RE: Array bean deserialization problem



It seems like you are doing everything correctly (using wsdl2java to
generate the wsdd file normally gets rid of these problems). I can give
common advise:

- Start with a very simple program that passes a class you defined
- once that works, add an array of that object
- if you get that to work, you are half way there.
- Then try erasing your entire java files/structure and starting from
scratch (create a new directory, start as if you are starting a new
project). Sometimes a subtle thing, like a wrong name somewhere, is causing
the problem. You might not see the problem unless you start the Axis project
from scratch.

Hope this helps.

Nadeem

-----Original Message-----
From: Fabricio B. Teixeira [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 30, 2004 7:47 AM
To: [EMAIL PROTECTED]
Subject: Array bean deserialization problem


Hi,

Could someone help me? I am get crazy.

I'm developing a web service witch receives a array bean like the one
belllow :

 public void InsertFastaSequenceDB(QuerySequenceDWS[] QuerySeq) {
        }

The QuerySequenceDWS java class follows:

public class QuerySequenceDWS {

  private String fQuery_Def;
  private String fQuery_Seq;

  /* HERE COMES THE GETTER AND SETTER METHODS. */
}

I've used java2wsdl and wsdl2java to generate the java classes and the wsdd
file. the wsdd file follows:

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

  <!-- Services from DataWebServiceService WSDL service -->

  <service name="DataWebService" provider="java:RPC">
      <parameter name="wsdlTargetNamespace"
value="http://DefaultNamespace"/>
      <parameter name="wsdlServiceElement" value="DataWebServiceService"/>
      <parameter name="wsdlServicePort" value="DataWebService"/>
      <parameter name="className"
value="DataWebServiceWS.DataWebServiceSoapBindingSkeleton"/>
      <parameter name="wsdlPortType" value="DataWebService"/>
      <parameter name="allowedMethods" value="*"/>
      <parameter name="scope" value="Session"/>

      <typeMapping
        xmlns:ns="http://DefaultNamespace";
        qname="ns:QuerySequenceDWS"
        type="java:DataWebServiceWS.QuerySequenceDWS"
        serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
        deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
        encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
      />
      <typeMapping
        xmlns:ns="http://DefaultNamespace";
        qname="ns:ArrayOfQuerySequenceDWS"
        type="java:DataWebServiceWS.QuerySequenceDWS[]"
        serializer="org.apache.axis.encoding.ser.ArraySerializerFactory"
        deserializer="org.apache.axis.encoding.ser.ArrayDeserializerFactory"
        encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
      />
  </service>
</deployment>


Everything looks like normal, I mean, the web service is deployed without
errors. The problem occurs when I try to call this web service. The
following error message appears: "No deserializer defined for array type
QuerySequenceDWS".
I don't no what to do since I´ve tryed so many things. Please, could someone
help me with this problem?

Regards,
Fabricio




Reply via email to