I get the error of cannot find the operation ToService for the type bag class neither for its element class . hoz to solve this?]]>Dory Merhy2016-05-10T13:51:44-00:00Re: Qvt Simple Question
https://www.eclipse.org/forums/index.php/mv/msg/1077317/1731888/#msg_1731888
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?]]>Ed Willink2016-05-10T16:21:24-00:00