users@jaxb.java.net

Re: Web Services and images from j2me client

From: JULIAN ENRIQUE OSORIO AMAYA <juliane.osorioa_at_unilibrebog.edu.co>
Date: Sun, 29 Aug 2010 16:27:03 -0500

On 29 August 2010 14:29, Wolfgang Laun <wolfgang.laun_at_gmail.com> wrote:

> Well, go ahead and try it out. Mulling over the source won't get you
> anwhere. ;-)
> -W
>
>
>
Hello Wolfgang

http://download.oracle.com/docs/cd/E12840_01/wls/docs103/webserv/data_types.html

The table 5-1 shows the mapping xml schema built-in data types to java data
types

the schema generated by the schemagen command has the following

<xs:element name="imagenPaciente" ns1:expectedContentTypes="image/jpeg"
type="xs:base64Binary" minOccurs="0"

the generated class (PacienteDTO) at client side the imagenPaciente
attribute is byte[]

<http://download.oracle.com/docs/cd/E12840_01/wls/docs103/webserv/data_types.html>The
table 5-2 shows the mapping java data types to xml schema data types
in this case, the generated data types are correct

class PacienteDTO at server side has a javax.activation.DataHandler
attribute (imagenPaciente)



-- 
Julian Osorio Amaya
Universidad Libre.
Ingenierķa de Sistemas.
Bogota - Colombia