Hi everyone,

I've been struggling for a lot of hours, trying to get
my soap response to map correctly to my java object.

I'm using a perl soap backend, and I used WSDL2Java to
generate my classes for the client.

The error I get (when running the TestCase generated,
or my own class):
org.xml.sax.SAXException: Bad types (class
[Ljava.lang.Object; -> class
se.ardendo.ardjavaapi.usermgrapi.Namelist)
        at
org.apache.axis.message.RPCHandler.onStartChild(RPCHandler.java:311)
        at
org.apache.axis.encoding.DeserializationContextImpl.startElement(DeserializationContextImpl.java:963)

I'm at a total loss of what to do. Since I don't use a
wsdd file, I don't know where to put my BeanMapping,
if I even need one?

Every help I can get is _highly_ appreciate!

See below for information of the setup.

(Please reply to [EMAIL PROTECTED] as well
as the mail-list please (without the caps in the
addie)

Thanks,
  Tobias.
        
>From the WSDL, Definition of namelist:
    <types>
        <xsd:schema
targetNamespace="ARDOME/SOAP/usermgrapi">
            <xsd:complexType name="namelist">
                <xsd:sequence>
                    <xsd:element name="name"
minOccurs="0" maxOccurs="unbounded"
                        type="xsd:string"/>
                </xsd:sequence>
            </xsd:complexType>
...

the message:
    <message name="getUserListResponse">
        <part name="users" type="typens:namelist"/>
    </message>

The soap-response I get on my request:
HTTP/1.1 200 OK
Date: Tue, 09 Nov 2004 08:24:30 GMT
Server: Apache/1.3.27 (Unix) mod_fastcgi/2.4.0
Content-Length: 1071
SOAPServer: SOAP::Lite/Perl/0.55
Connection: close
Content-Type: text/xml; charset=utf-8

<?xml version="1.0" encoding="UTF-8"?>
   <SOAP-ENV:Envelope
xmlns:namesp2="ARDOME/SOAP/usermgrapi"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
      <SOAP-ENV:Body>
         <namesp14:getUserListResponse
xmlns:namesp14="ARDOME/SOAP/usermgrapi">
            <users xsi:type="namesp2:namelist"
SOAP-ENC:arrayType="xsd:string[11]">
               <name
xsi:type="xsd:string">admin</name>
               <name
xsi:type="xsd:string">andreas</name>
               <name
xsi:type="xsd:string">ardaafclient</name>
               <name
xsi:type="xsd:string">ardendo</name>
               <name
xsi:type="xsd:string">henrik</name>
               <name
xsi:type="xsd:string">jonas</name>
               <name
xsi:type="xsd:string">markusj</name>
               <name
xsi:type="xsd:string">parham</name>
               <name
xsi:type="xsd:string">pengpeng</name>
               <name
xsi:type="xsd:string">tobias</name>
               <name
xsi:type="xsd:string">ximena</name>
            </users>
         </namesp14:getUserListResponse>
      </SOAP-ENV:Body>
   </SOAP-ENV:Envelope>



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Reply via email to