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 09:34 Go to next message
Tex Iano is currently offline Tex Iano
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 09:36]

Report message to a moderator

Re: [ATL] WSDL: Access name attribute [message #865649 is a reply to message #865605] Mon, 30 April 2012 10:02 Go to previous message
Tex Iano is currently offline Tex Iano
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: Wed Aug 20 05:01:35 EDT 2014

Powered by FUDForum. Page generated in 0.02703 seconds