Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » QVT-OML » Qvt Simple Question(Error solving)
Qvt Simple Question [message #1731854] Tue, 10 May 2016 13:51 Go to next message
Dory Merhy is currently offline Dory MerhyFriend
Messages: 3
Registered: May 2016
Junior Member
Hi , I am basically new to Qvto but trying to do a transformation between SoaML and WSDL . This is what I have done so far but i get an error that i dont know how to solve


transformation SampleSOAML(in soamlin: UML, out wsdlout: wsdl);



main() {

soamlin.rootObjects()[Participant]->map SoaML2wsdl();

}

mapping Participant::SoaML2wsdl() : wsdl::Definition {




self.base_Class.ownedPort-> forEach(p){

p.type.getAppliedStereotypes()-> forEach(s){

log("Type " + s.name);


self.base_Class.ownedPort.type.oclAsType(Class)-> map ToService();

}

I get the error of cannot find the operation ToService for the type bag class neither for its element class . hoz to solve this?
Re: Qvt Simple Question [message #1731888 is a reply to message #1731854] Tue, 10 May 2016 16:21 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

If you invoke ToService you need to implement it.

Unfortunately there is very little tutorial material for QVTo. The QVT
1.3 spec is clearer and more accurate than its predecessors, but not a
tutorial. You probably need to do as other users do and study the
provided SimpleUML to RDBMS example and its helpful comments.

Regards

Ed Willink

On 10/05/2016 15:35, Dory Merhy wrote:
> Hi , I am basically new to Qvto but trying to do a transformation
> between SoaML and WSDL . This is what I have done so far but i get an
> error that i dont know how to solve
>
>
> transformation SampleSOAML(in soamlin: UML, out wsdlout: wsdl);
>
>
>
> main() {
>
> soamlin.rootObjects()[Participant]->map SoaML2wsdl();
>
> }
>
> mapping Participant::SoaML2wsdl() : wsdl::Definition {
>
>
>
>
> self.base_Class.ownedPort-> forEach(p){
>
> p.type.getAppliedStereotypes()-> forEach(s){
>
> log("Type " + s.name);
>
>
> self.base_Class.ownedPort.type.oclAsType(Class)-> map ToService();
>
> }
>
> I get the error of cannot find the operation ToService for the type
> bag class neither for its element class . hoz to solve this?
Previous Topic:Generate QVTo-file
Next Topic:Difference between arrow(->) and dot(.) in qvto
Goto Forum:
  


Current Time: Fri Mar 29 15:56:34 GMT 2024

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

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

Back to the top