Mapping reference [message #1733572] |
Mon, 30 May 2016 05:07  |
Eclipse User |
|
|
|
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 05:29  |
Eclipse User |
|
|
|
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();}
|
|
|
Powered by
FUDForum. Page generated in 0.03371 seconds