[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.java.programmer

J2ME JSR 172 Web services + byte[]

J2ME JSR 172 Web services + byte[]

Kristian Lier Selnæs

4/30/2016 6:56:00 PM

Hi!

I've created a web service which will be consumed using a mobile client (J2ME +
JSR 172). I need to send bytestreams between the client and the server, i.e the
server has the following methods: sendFile(byte[] file) and byte[]
getFile(String filename).

According to the standard, a byte[] should be mapped to base64Binary or
hexBinary in the WSDL. This is indeed the case for my service (its mapped to
base64Binary). However, when I try to generate a stub for the service, using
the stub generator in Sun's Wireless Toolkit, I get the following output:
error: Found unknown simple type: byte[]

Here is a snippet from the WSDL i use:
<complexType name="sendFile">
<sequence>
<element name="sessionID" nillable="true" type="xsd:string"/>
<element name="file" type="xsd:base64Binary"/>
</sequence>
</complexType>
The stub is generated without a problem when I remove the element named "file".
Changing base64Binary to hexBinary produces the same error.

Any explanation will be appreciated!


Regards,
Kristian Selnæs

Daniel

9/11/2010 8:51:00 PM

On Sep 11, 1:49 pm, Tim Crowley <timmyturm...@gmail.com> wrote:
> On Sep 11, 6:29 am, Daniel <sabot12...@hotmail.com> wrote:
>
>
>
>
>
> > On Sep 9, 3:06 pm, The China Blue Lagoon <chine.b...@yahoo.com> wrote:
>
> > > In article <68dab56d-b079-438c-8e3b-8adf2abf7...@v23g2000vbi.googlegroups.com>,
>
> > >  Daniel <sabot12...@hotmail.com> wrote:
> > > > On Sep 2, 5:20 pm, Behind China Blue Eyes <chine.b...@yahoo.com>
> > > > wrote:
> > > > > In article
> > > > > <82a8f469-da85-4969-8b7e-370111704...@x42g2000yqx.googlegroups.com>,
>
> > > > >  Daniel <sabot12...@hotmail.com> wrote:
> > > > > > nobamacare, Government ownership of PRIVATE corporations, and the list
> > > > > > goes on and on.
>
> > > > > Bush bailed out GM and Chrysler, not Obama.
>
> > > > You're lying again.
>
> > > Obama was president in December 2008?
>
> > President-elect,
>
> Buahahahahaha..  And Danny The Liar is do dumb he doesn't understand
> he just made the case for his opponent.
>
> hint: you lied about serving the military.  Nothing you ever say will
> have any meaning.

Funny, you claim I lied, yet you have never provided one shred of
evidence to support this claim.


Prove the LES I posted 3 separate times is a lie, do it right here
----->

Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
J2ME JSR 172 Web services + byte[]

Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te

Il servizio è completamente GRATUITO!