You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by ki...@telenor.com on 2001/05/10 16:36:13 UTC

Question about arrays

I have a simple question about array serialization. I thought Apache SOAP
would automatically serialize arrays, but I get the following error message
when I try to return an array:

(Servlet running on WebSphere 3.5 using:
SOAP 2.1 (Several different builds, including latest nightly build)
Xerces 1.2.3


HTTP/1.1 500 ok
Date: Thu, 10 May 2001 14:25:41 GMT
Server: IBM_HTTP_Server/1.3.12.2 Apache/1.3.12 (Win32)
Set-Cookie: sesessionid=MMKGRHQAAAAALBRP04GCHMA;Path=/
Cache-Control: no-cache="set-cookie,set-cookie2"
Expires: Thu, 01 Dec 1994 16:00:00 GMT
Content-Length: 634
Connection: close
Content-Type: text/xml; charset=utf-8
Content-Language: en

<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Server</faultcode>
<faultstring>java.lang.IllegalArgumentException: No Serializer found to
serialize a 'com.telenor.origo.service.customer.structure.CustomerStruct[]'
using encoding style
'http://schemas.xmlsoap.org/soap/encoding/'.</faultstring>
<faultactor>/soap/servlet/rpcrouter</faultactor>
</SOAP-ENV:Fault>

</SOAP-ENV:Body>
</SOAP-ENV:Envelope>



Kim Schjefstad
Telenor Solo
+47 (226) 83657
+47 91 51 67 67


---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org


AW: Question about arrays

Posted by Matthew Langham <ml...@sundn.de>.
Kim,

what is it an Array of? If you are sending an Array of your own objects -
you will need to have a serializer for those objects - not for the Array.

I have been sending Arrays of my own objects with Apache SOAP 2.1 - so there
should be no problem.

HTH

Matthew Langham

--
Open Source Group               sunShine - Lighting up e:Business
=================================================================
Matthew Langham, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
Tel: +49-5251-1581-30   [mlangham@sundn.de - http://www.sundn.de]
=================================================================


-----Ursprüngliche Nachricht-----
Von: kim.schjefstad@telenor.com [mailto:kim.schjefstad@telenor.com]
Gesendet: Donnerstag, 10. Mai 2001 16:36
An: soap-user@xml.apache.org
Betreff: Question about arrays


I have a simple question about array serialization. I thought Apache SOAP
would automatically serialize arrays, but I get the following error message
when I try to return an array:

(Servlet running on WebSphere 3.5 using:
SOAP 2.1 (Several different builds, including latest nightly build)
Xerces 1.2.3


HTTP/1.1 500 ok
Date: Thu, 10 May 2001 14:25:41 GMT
Server: IBM_HTTP_Server/1.3.12.2 Apache/1.3.12 (Win32)
Set-Cookie: sesessionid=MMKGRHQAAAAALBRP04GCHMA;Path=/
Cache-Control: no-cache="set-cookie,set-cookie2"
Expires: Thu, 01 Dec 1994 16:00:00 GMT
Content-Length: 634
Connection: close
Content-Type: text/xml; charset=utf-8
Content-Language: en

<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Server</faultcode>
<faultstring>java.lang.IllegalArgumentException: No Serializer found to
serialize a 'com.telenor.origo.service.customer.structure.CustomerStruct[]'
using encoding style
'http://schemas.xmlsoap.org/soap/encoding/'.</faultstring>
<faultactor>/soap/servlet/rpcrouter</faultactor>
</SOAP-ENV:Fault>

</SOAP-ENV:Body>
</SOAP-ENV:Envelope>



Kim Schjefstad
Telenor Solo
+47 (226) 83657
+47 91 51 67 67


---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org


AW: Question about arrays

Posted by Matthew Langham <ml...@sundn.de>.
Kim,

what is it an Array of? If you are sending an Array of your own objects -
you will need to have a serializer for those objects - not for the Array.

I have been sending Arrays of my own objects with Apache SOAP 2.1 - so there
should be no problem.

HTH

Matthew Langham

--
Open Source Group               sunShine - Lighting up e:Business
=================================================================
Matthew Langham, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
Tel: +49-5251-1581-30   [mlangham@sundn.de - http://www.sundn.de]
=================================================================


-----Ursprüngliche Nachricht-----
Von: kim.schjefstad@telenor.com [mailto:kim.schjefstad@telenor.com]
Gesendet: Donnerstag, 10. Mai 2001 16:36
An: soap-user@xml.apache.org
Betreff: Question about arrays


I have a simple question about array serialization. I thought Apache SOAP
would automatically serialize arrays, but I get the following error message
when I try to return an array:

(Servlet running on WebSphere 3.5 using:
SOAP 2.1 (Several different builds, including latest nightly build)
Xerces 1.2.3


HTTP/1.1 500 ok
Date: Thu, 10 May 2001 14:25:41 GMT
Server: IBM_HTTP_Server/1.3.12.2 Apache/1.3.12 (Win32)
Set-Cookie: sesessionid=MMKGRHQAAAAALBRP04GCHMA;Path=/
Cache-Control: no-cache="set-cookie,set-cookie2"
Expires: Thu, 01 Dec 1994 16:00:00 GMT
Content-Length: 634
Connection: close
Content-Type: text/xml; charset=utf-8
Content-Language: en

<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Server</faultcode>
<faultstring>java.lang.IllegalArgumentException: No Serializer found to
serialize a 'com.telenor.origo.service.customer.structure.CustomerStruct[]'
using encoding style
'http://schemas.xmlsoap.org/soap/encoding/'.</faultstring>
<faultactor>/soap/servlet/rpcrouter</faultactor>
</SOAP-ENV:Fault>

</SOAP-ENV:Body>
</SOAP-ENV:Envelope>



Kim Schjefstad
Telenor Solo
+47 (226) 83657
+47 91 51 67 67


---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org