[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

WebService without eomodel



This is a multi-part message in MIME format.

------=_NextPart_000_0065_01C3471C.A0DA8E00
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi,
I am a Student WO Developer and I am trying to make a simple webService, =
not so simple because I would like my webService Client to receive an =
Object from my webService. It is exactly similar to the Calculator =
Example from the WebObjects Documentation, except that the Object that =
my webService returns is not a common Object, it is a Movie Object.=20
I think that everything would still be simple if this Movie Object was =
defined in EOModeler, but it is not.. so there is no .eomodel that (i =
guess) can help WO5.2 to build the Serializer and the Deserializer for =
my Movie.=20
I don't understand exactly how everything works under WebObjects. =
(That's the goal of WebObjects ! Abstraction)

However, there is no problem for the generation of the webService (wsdl =
file, etc), I just get an error at runtime telling me that there no =
EOClassDecription for my Movie Object.=20

So I tried to write the serializer/deserializer myself (Actually, with =
the WSDL2Java program in the Axis.jar, I can get a new Movie.java file =
with methods for (de)serialization )

But after that, I think I still have to register my Movie Object to the =
webService. That's where I am now. I don't know what to do: do I have to =
use some low-level methods from Axis, jaxrpc, ??? Are there WO tools for =
such things? Can I use de WOWebService and WOWebServiceClient instance =
that I can get from the wsdl file ( constructor : =
WOWebService(javax.xml.namespace.QName aQName, URL aUrl) ) and then use =
the register(....) method?

Do you have any idea, hints, examples to help me ? I'm not the first one =
using webService with WO, so I am pretty confident there's a beautifull =
tool somewhere that I didn't see, which will help me. :-)

In mailing-lists, people always refer to the Amazon example, in the WO =
Documentation. I can't find it ! Do you?

Thanks a lot in advance,

Denis

------=_NextPart_000_0065_01C3471C.A0DA8E00
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1170" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>
<DIV><FONT face=3DArial size=3D2>
<DIV><FONT face=3DArial size=3D2>Hi,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I am a Student WO Developer and I am =
trying to make=20
a simple webService, not so simple because I would like&nbsp;my =
webService=20
Client to receive an Object from my&nbsp;webService. It=20
is&nbsp;exactly&nbsp;similar to the Calculator&nbsp;Example from the =
WebObjects=20
Documentation, except that&nbsp;the Object that&nbsp;my&nbsp;webService =
returns=20
is not&nbsp;a&nbsp;common&nbsp;Object, it is&nbsp;a Movie Object. =
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I think that everything would still be =
simple if=20
this Movie Object was defined in EOModeler, but it is not..</FONT><FONT=20
face=3DArial size=3D2>&nbsp;so there is no .eomodel that (i guess) can =
help WO5.2=20
to&nbsp;build the Serializer and the Deserializer =
for&nbsp;my&nbsp;Movie.=20
<DIV><FONT face=3DArial size=3D2>I don't understand exactly how =
everything works=20
under WebObjects.&nbsp;(That's the goal of WebObjects !=20
Abstraction)</FONT></DIV></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>However, there is no problem for the =
generation of=20
the webService (wsdl file, etc), I just get an error at runtime telling=20
me&nbsp;that there&nbsp;no EOClassDecription for my&nbsp;Movie=20
Object.&nbsp;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>So I tried to write the =
serializer/deserializer=20
myself (Actually, with the WSDL2Java program in the Axis.jar, I can get =
a new=20
Movie.java file with methods for (de)serialization )</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2><FONT face=3DArial>But after that, I think I still =
have to=20
register my&nbsp;Movie Object to the webService.&nbsp;That's =
where&nbsp;I am=20
now.&nbsp;I don't know what to do: do I have to use some low-level =
methods from=20
Axis, jaxrpc, ??? Are there WO tools for such things? Can I use de =
WOWebService=20
and WOWebServiceClient&nbsp;instance that&nbsp;I can get from&nbsp;the =
wsdl file=20
( constructor : WOWebService(javax.xml.namespace.QName aQName, URL aUrl) =
)=20
</FONT><FONT face=3DArial size=3D3><FONT size=3D2>and then use the =
register(....)=20
method?</FONT></FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Do you have any idea, hints, examples =
to help me ?=20
I'm not the first one using webService with WO, so I am&nbsp;pretty=20
confident&nbsp;there's a beautifull tool somewhere that&nbsp;I didn't =
see, which=20
will help me. :-)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>In mailing-lists, people always refer =
to the Amazon=20
example, in the WO Documentation. I can't find it ! Do you?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks a lot in advance,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Denis</FONT></DIV>
<DIV><FONT face=3DArial=20
size=3D2></FONT>&nbsp;</DIV></FONT></DIV></FONT></DIV></BODY></HTML>

------=_NextPart_000_0065_01C3471C.A0DA8E00--