Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] WSDL: Access name attribute
[ATL] WSDL: Access name attribute [message #865605] Mon, 30 April 2012 13:34 Go to next message
Tex Iano is currently offline Tex IanoFriend
Messages: 99
Registered: February 2012
Member
Hi,

I want to write a transformation from WSDL to UML. For each service-element, I want to create a UML class with that name:

-- @nsURI WSDL=eclipse.org/wsdl/2003/WSDL ( I am not allowed to post the entire link)
-- @nsURI UML=eclipse.org/uml2/3.0.0/UML
--

module test;
create OUT : UML from IN : WSDL;


rule Service {
	from s : WSDL!Service
	to class : UML!Class (
		name <- s.name
		)	
}


I get an error because of the line "name <- s.name":

org.eclipse.m2m.atl.engine.emfvm.VMException: Feature name does not exist on Service

But a service element in a WSDL file has a "name" attribute. So, how can I access it? Any ideas?

Regards,

Tex

[Updated on: Mon, 30 April 2012 13:36]

Report message to a moderator

Re: [ATL] WSDL: Access name attribute [message #865649 is a reply to message #865605] Mon, 30 April 2012 14:02 Go to previous message
Tex Iano is currently offline Tex IanoFriend
Messages: 99
Registered: February 2012
Member
Solved: name <- s.qName.getLocalPart()
Previous Topic:[ATL] wsdl -> uml transformation
Next Topic:[ATL] Feature ... is not changeable
Goto Forum:
  


Current Time: Sun Dec 08 09:33:59 GMT 2024

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

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

Back to the top