Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » QVT-OML » Mapping reference
Mapping reference [message #1733572] Mon, 30 May 2016 09:07 Go to next message
Dory Merhy is currently offline Dory MerhyFriend
Messages: 3
Registered: May 2016
Junior Member
Inside of a mapping from Class to Definition in WSDL , I'm doing the following code: mapping to Message inside of a reference , but the result I'm getting is putting both of the Messages outside of the Definition tag
<Definition> </Definition> and then the Message although what i want to do is like this:
<Definition> <Message> </Message> <Messsage></Message> </Definition>

What did I do wrong?

Thank you




result.Message:= ReaInt.ownedOperation.map toMessageOutput().min;
result.Message:= ReaInt.ownedOperation.map toMessageOutput().mout;


mapping UML::Operation::toMessageOutput(): min:wsdl ::Message,mout: wsdl::Message{
mout.name:=self.name + 'MessageOutput';
min.name:=self.name + 'MessageIn';

mout.Part:=self.ownedParameter>select(p|p.direction=ParameterDirectionKind::_'out' or p.direction=ParameterDirectionKind::_'inout')->map toPart();

min.Part:=self.ownedParameter>select(p|p.direction=ParameterDirectionKind::_'in' or p.direction=ParameterDirectionKind::_'inout')->map toPart();}
Re: Mapping reference [message #1733576 is a reply to message #1733572] Mon, 30 May 2016 09:29 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 5467
Registered: July 2009
Senior Member
Hi

"What did I do wrong? "

You didn't provide nearly enough information.. e.g. see
https://wiki.eclipse.org/OCL/ForumNetiquette

You cannot expect QVTo developers/users to be familiar with the WSDL
metamodel.

However, guessing at what might be there, I see no reason why the
Message should be contained in a Definition since your snippet does not
appear to create a Definition at all so why would anything be within it?
At the XML level "within" corresponds to containment in a model.

Regards

Ed Willink

On 30/05/2016 10:07, Dory Merhy wrote:
> Inside of a mapping from Class to Definition in WSDL , I'm doing the
> following code: mapping to Message inside of a reference , but the
> result I'm getting is putting both of the Messages outside of the
> Definition tag <Definition> </Definition> and then the Message
> although what i want to do is like this:
> <Definition> <Message> </Message> <Messsage></Message> </Definition>
>
> What did I do wrong?
>
> Thank you
>
>
>
>
> result.Message:= ReaInt.ownedOperation.map toMessageOutput().min;
> result.Message:= ReaInt.ownedOperation.map toMessageOutput().mout;
>
>
> mapping UML::Operation::toMessageOutput(): min:wsdl ::Message,mout:
> wsdl::Message{
> mout.name:=self.name + 'MessageOutput';
> min.name:=self.name + 'MessageIn';
> mout.Part:=self.ownedParameter>select(p|p.direction=ParameterDirectionKind::_'out'
> or p.direction=ParameterDirectionKind::_'inout')->map toPart();
>
> min.Part:=self.ownedParameter>select(p|p.direction=ParameterDirectionKind::_'in'
> or p.direction=ParameterDirectionKind::_'inout')->map toPart();}
Previous Topic:Use of quotations
Next Topic:Model Abstrction
Goto Forum:
  


Current Time: Mon Nov 20 00:10:47 GMT 2017

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

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