Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » EMF and SOAP - how?(How to use EMF generated classes for web services?)
EMF and SOAP - how? [message #998324] Wed, 09 January 2013 20:02 Go to next message
Anton Hughes is currently offline Anton HughesFriend
Messages: 66
Registered: January 2013
Member
Hi

I'm new to EMF and, so far, and very impressed with it.

Especially xcore.

However, today I tried to use my generated code in a webservice and found that I couldnt.

This is surprising.

Are there any ways to easily change the generated classes so that they are compatible with SOAP?

Thanks,
Re: EMF and SOAP - how? [message #998358 is a reply to message #998324] Wed, 09 January 2013 21:31 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
He Anton,
You can also try the EMF subproject Texo, this project is targeted for web server/service environments (although more
using JSON/REST/XML approaches).
http://wiki.eclipse.org/Texo
http://martintaal.wordpress.com/2012/04/05/emf-texo-json-rest-web-service-support-connecting-your-client-to-an-emf-supporting-web-server/

gr. Martin

On 01/09/2013 09:02 PM, Anton Hughes wrote:
> Hi
>
> I'm new to EMF and, so far, and very impressed with it.
>
> Especially xcore.
>
> However, today I tried to use my generated code in a webservice and found that I couldnt.
> This is surprising.
> Are there any ways to easily change the generated classes so that they are compatible with SOAP?
>
> Thanks,


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@xxxxxxxx - mtaal@xxxxxxxx
Web: www.springsite.com - www.elver.org
Re: EMF and SOAP - how? [message #998524 is a reply to message #998324] Thu, 10 January 2013 06:52 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Anton,

What does it mean to be compatible with SOAP? As I understand it, SOAP
is about producing/consuming XML, and Resources do that nicely.


On 09/01/2013 9:02 PM, Anton Hughes wrote:
> Hi
>
> I'm new to EMF and, so far, and very impressed with it.
>
> Especially xcore.
>
> However, today I tried to use my generated code in a webservice and
> found that I couldnt.
> This is surprising.
> Are there any ways to easily change the generated classes so that they
> are compatible with SOAP?
>
> Thanks,


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: EMF and SOAP - how? [message #998585 is a reply to message #998524] Thu, 10 January 2013 09:54 Go to previous messageGo to next message
Anton Hughes is currently offline Anton HughesFriend
Messages: 66
Registered: January 2013
Member
Hi Ed

I'm not sure what you mean by 'Resources'? Can you expand on this please?

Im referring to the generated classes - to use these as domain objects in web services, it seems they are not compatible.

Thanks
Re: EMF and SOAP - how? [message #998598 is a reply to message #998585] Thu, 10 January 2013 10:23 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Anton,<br>
<br>
Have a look at these:<br>
<blockquote><a
href="http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclipse.emf.doc/tutorials/xlibmod/xlibmod.html">Tutorial:
Generating an EMF Model using XML Schema</a><br>
<a target="_out"
href="http://www.theserverside.com/tt/articles/article.tss?l=BindingXMLJava">Binding
XML to Java</a><br>
</blockquote>
<br>
<div class="moz-cite-prefix">On 10/01/2013 10:54 AM, Anton Hughes
wrote:<br>
</div>
<blockquote cite="mid:kcm354$v1v$1@xxxxxxxxe.org" type="cite">Hi
Ed
<br>
<br>
I'm not sure what you mean by 'Resources'? Can you expand on this
please?
<br>
<br>
Im referring to the generated classes - to use these as domain
objects in web services, it seems they are not compatible.
<br>
<br>
Thanks
<br>
</blockquote>
<br>
</body>
</html>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: EMF and SOAP - how? [message #998600 is a reply to message #998598] Thu, 10 January 2013 10:33 Go to previous messageGo to next message
Anton Hughes is currently offline Anton HughesFriend
Messages: 66
Registered: January 2013
Member
Hi Ed

Your message came through as raw html - not the easiest to read. But I'm trying ... Smile

The links that you posted show how to use EMF generated classes with xml - but not soap.

It appears that the generated objects are not compatiable for as Soap objects.
Re: EMF and SOAP - how? [message #998611 is a reply to message #998600] Thu, 10 January 2013 10:47 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Anton,

I know SOAP as an XML-based interchange protocol, but I don't know what
it means to be a SOAP object. What are EMF objects missing in order to
be SOAP objects?


On 10/01/2013 11:33 AM, Anton Hughes wrote:
> Hi Ed
>
> Your message came through as raw html - not the easiest to read. But
> I'm trying ... :)
>
> The links that you posted show how to use EMF generated classes with
> xml - but not soap.
>
> It appears that the generated objects are not compatiable for as Soap
> objects.


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Loading resource from jar file
Next Topic:[CDO] How to "flush" CDO Package registry ?
Goto Forum:
  


Current Time: Tue Apr 23 16:34:36 GMT 2024

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

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

Back to the top