Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » SDO/EMF -> WS
SDO/EMF -> WS [message #142650] Thu, 06 October 2005 17:03 Go to next message
Eclipse UserFriend
Originally posted by: v2danc.us.ibm.com

This is a multi-part message in MIME format.

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

I like Model Driven Development. I want a Wizard to make the Web =
Service that implements the Model.

I have an EMF ecore model derived from an XML Schema. I can elaborate =
this as generated SDO code.

It seems like WST should know how to make a Web Service from the model =
or the generated classes, with no hand coding on my part, bottom-up. I =
should not have to do the WSDL given that I started from XSD.

Ok, so WST does not know anything about ecore. But, SDOs are Java =
Beans and I have the classes. However, if I do the WS Wizard on a =
root implementation Java class from my elaborated model, I get an error=20
IWAB0521E Failed to analyze the Java bean: =
oem.edge.cq.impl.InfoUsrTypeImpl.=20
The Web Service is not generated. Not much help given.

Perhaps I need to wrap my root implement class as a simpler bean that =
just handles XML Resource output of the class??? =20

However, if that is a needed transformation from ecore to WS, then =
really I expect the Wizard to handle it, to do any wrapping needed, =
without coding on my part.

Dan Connelly
Prosoft Technologies, Inc. (Vermont)
------=_NextPart_000_000A_01C5CA97.D8ADFA00
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.1515" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2>I like Model Driven =
Development.&nbsp;&nbsp;&nbsp;=20
I want a Wizard to make the Web Service that implements the =
Model.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I have an EMF ecore model derived from =
an XML=20
Schema.&nbsp;&nbsp;&nbsp; I can elaborate this as generated SDO=20
code.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>It seems like WST should know how to =
make a Web=20
Service from the model or the generated classes, with no hand coding on =
my part,=20
bottom-up.&nbsp;&nbsp; I should not have to do the WSDL given that I =
started=20
from XSD.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Ok, so WST does not know anything about =

ecore.&nbsp;&nbsp;&nbsp; But, SDOs are Java Beans and I have the=20
classes.&nbsp;&nbsp;&nbsp; However, if I do the WS Wizard on a root=20
implementation Java class from my elaborated model, I get an error =
</FONT></DIV>
<BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px">
<DIV><FONT face=3DArial size=3D2>IWAB0521E Failed to analyze the Java =
bean:=20
oem.edge.cq.impl.InfoUsrTypeImpl.&nbsp;</FONT></DIV></BLOCKQUOTE >
<DIV dir=3Dltr><FONT face=3DArial size=3D2>The Web Service is not=20
generated.&nbsp;&nbsp; Not much help given.</FONT></DIV>
<DIV dir=3Dltr><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV dir=3Dltr><FONT face=3DArial size=3D2>Perhaps I need to wrap my =
root implement=20
class as a simpler bean that just handles XML Resource output of the=20
class???&nbsp;&nbsp;&nbsp; </FONT></DIV>
<DIV dir=3Dltr><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV dir=3Dltr><FONT face=3DArial size=3D2>However, if that is a needed =
transformation=20
from ecore to WS, then really I expect the Wizard to handle it, to do =
any=20
wrapping needed, without coding on my part.</FONT></DIV>
<DIV dir=3Dltr><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV dir=3Dltr><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp; Dan=20
Connelly</FONT></DIV>
<DIV dir=3Dltr><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;=20
Prosoft Technologies, Inc.&nbsp;(Vermont)</FONT></DIV></BODY></HTML>

------=_NextPart_000_000A_01C5CA97.D8ADFA00--
Re: SDO/EMF -> WS [message #142671 is a reply to message #142650] Thu, 06 October 2005 19:11 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: thisisnot.mymail.com

The WTP and Eclipse platforms makes it possible for other IDE developers
to do such a thing but I don't believe they will implement such a
feature, but it's something I'd like to see too :)

Dan Connelly wrote:
> I like Model Driven Development. I want a Wizard to make the Web
> Service that implements the Model.
>
> I have an EMF ecore model derived from an XML Schema. I can elaborate
> this as generated SDO code.
>
> It seems like WST should know how to make a Web Service from the model
> or the generated classes, with no hand coding on my part, bottom-up. I
> should not have to do the WSDL given that I started from XSD.
>
> Ok, so WST does not know anything about ecore. But, SDOs are Java
> Beans and I have the classes. However, if I do the WS Wizard on a
> root implementation Java class from my elaborated model, I get an error
>
> IWAB0521E Failed to analyze the Java bean:
> oem.edge.cq.impl.InfoUsrTypeImpl.
>
> The Web Service is not generated. Not much help given.
>
> Perhaps I need to wrap my root implement class as a simpler bean that
> just handles XML Resource output of the class???
>
> However, if that is a needed transformation from ecore to WS, then
> really I expect the Wizard to handle it, to do any wrapping needed,
> without coding on my part.
>
> Dan Connelly
> Prosoft Technologies, Inc. (Vermont)
Re: SDO/EMF -> WS [message #143564 is a reply to message #142650] Fri, 14 October 2005 03:02 Go to previous messageGo to next message
Eclipse UserFriend
Dan, I'm not sure I've understood exactly what you want but it doesn't
sound too far out. Please open bugizilla bugs to log enhancement
requests and provide a bit more detail and description.

> I like Model Driven Development. I want a Wizard to make the Web Service
that implements the Model. I have an EMF ecore model derived from an XML
Schema. I can elaborate this as generated SDO code.

We're considering future work to provide better support for various code
generation options from XML Schema (including SDO, XBeans etc). So
XSD->SDO is definitely a realistic thing to ask for.

> It seems like WST should know how to make a Web Service from the model or
the generated classes, with no hand coding on my part, bottom-up. I should
not have to do the WSDL given that I started from XSD.

Well it's hard to make a web service without a WSDL or some other
description of the operations. One could certainly generate Java code to
represent the data structures directly from XSD. Having bean generators
that run directly from XSD is another valid request to make.

> Ok, so WST does not know anything about ecore. But, SDOs are Java Beans
and I have the classes. However, if I do the WS Wizard on a root
implementation Java class from my elaborated model, I get an error
> IWAB0521E Failed to analyze the Java bean:
oem.edge.cq.impl.InfoUsrTypeImpl.
> The Web Service is not generated. Not much help given.

Sounds like you want our generated Web Services to support SDO flavoured
Java Beans. Anothergood enhancement request. There's also ways you can
hack the generated webservices code to make it work with SDOs. I'll leave
it to the folks who handle the Web Services code generation to explain
this though. Open a bugzilla bug to ask for a tutorial on how to do this.
At the very least someone should attach some some sample code to the bug.

> Perhaps I need to wrap my root implement class as a simpler bean that just
handles XML Resource output of the class???

> However, if that is a needed transformation from ecore to WS, then really I
expect the Wizard to handle it, to do any wrapping needed, without coding on
my part.
Driving the Web Services generators from ECore is definitely possible. I
can't say we have any plans today to use something other than WSDL to
describe the Web Service operations... but ECore would be another
candidate.

Say, if you're going to write some code to make some of these things work,
perhaps you'd like to contribute it to WTP or lend us a hand in
implementing some of these features in WTP 1.5?

thanks for participating
Re: SDO/EMF -> WS [message #143614 is a reply to message #143564] Fri, 14 October 2005 07:48 Go to previous message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

This is a multi-part message in MIME format.
--------------060001030006020504030405
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Craig,

You're right. Just as EMF can convert XSD -> Ecore (-> SDO) -> Java
using just enough annotations on the Ecore to be able to read and write
instances of the original XSD, I could imagine having WSDL -> Ecore (->
SDO) -> Java, again with just enough annotations on the Ecore to be able
to produce a web service. And just as 93194
<https://bugs.eclipse.org/bugs/show_bug.cgi?id=93194> supports an
improved Ecore -> XSD, one might support Ecore -> WSDL in a similar
way. Since one can produce Ecore from annotated Java, this could even
help support Java -> Ecore -> WSDL. And since EMF supports dynamic
models, it might even be possible to support all this and not generate
any code at all. Quite the imagination I have hey? ;-)


craig wrote:

> Dan, I'm not sure I've understood exactly what you want but it doesn't
> sound too far out. Please open bugizilla bugs to log enhancement
> requests and provide a bit more detail and description.
>
>> I like Model Driven Development. I want a Wizard to make the Web Service
>
> that implements the Model. I have an EMF ecore model derived from an
> XML Schema. I can elaborate this as generated SDO code.
>
> We're considering future work to provide better support for various
> code generation options from XML Schema (including SDO, XBeans etc).
> So XSD->SDO is definitely a realistic thing to ask for.
>
>> It seems like WST should know how to make a Web Service from the
>> model or
>
> the generated classes, with no hand coding on my part, bottom-up. I
> should not have to do the WSDL given that I started from XSD.
>
> Well it's hard to make a web service without a WSDL or some other
> description of the operations. One could certainly generate Java code
> to represent the data structures directly from XSD. Having bean
> generators that run directly from XSD is another valid request to make.
>
>> Ok, so WST does not know anything about ecore. But, SDOs are Java
>> Beans
>
> and I have the classes. However, if I do the WS Wizard on a root
> implementation Java class from my elaborated model, I get an error
>
>> IWAB0521E Failed to analyze the Java bean:
>
> oem.edge.cq.impl.InfoUsrTypeImpl.
>
>> The Web Service is not generated. Not much help given.
>
>
> Sounds like you want our generated Web Services to support SDO
> flavoured Java Beans. Anothergood enhancement request. There's also
> ways you can hack the generated webservices code to make it work with
> SDOs. I'll leave it to the folks who handle the Web Services code
> generation to explain this though. Open a bugzilla bug to ask for a
> tutorial on how to do this. At the very least someone should attach
> some some sample code to the bug.
>
>> Perhaps I need to wrap my root implement class as a simpler bean that
>> just
>
> handles XML Resource output of the class???
>
>> However, if that is a needed transformation from ecore to WS, then
>> really I
>
> expect the Wizard to handle it, to do any wrapping needed, without
> coding on my part.
> Driving the Web Services generators from ECore is definitely
> possible. I can't say we have any plans today to use something other
> than WSDL to describe the Web Service operations... but ECore would be
> another candidate.
> Say, if you're going to write some code to make some of these things
> work, perhaps you'd like to contribute it to WTP or lend us a hand in
> implementing some of these features in WTP 1.5?
>
> thanks for participating
>


--------------060001030006020504030405
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Craig,<br>
<br>
You're right.
Previous Topic:xml editor unusable
Next Topic:XML Editor
Goto Forum:
  


Current Time: Wed Apr 30 02:34:57 EDT 2025

Powered by FUDForum. Page generated in 0.06520 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top