CreateMappingForProject

www.altova.com Print this Topic Previous Page Up One Level Next page

Home >  The MapForce API > Object Reference > Interfaces > ProjectItem > Methods >

CreateMappingForProject

Creates an initial mapping document for a Web service operation and saves it to i_strFileName. When using Project.InsertWebService you can set the i_bGenerateMappings flag to let MapForce automatically generate initial mappings for all ports.

 

Signature

CreateMappingForProject(in i_strFileName:String) : ProjectItem

 

Parameters

Name

Type

Description

i_strFileName

String

Specifies the path where the mapping should be saved.

 

Errors

Error code

Description

1700

The object is no longer valid.

1701

Invalid address for the return parameter was specified.

1707

Cannot create new mapping. The project item does not support auto-creation of initial mappings or a mapping already exists.

1708

Operation not supported in current edition.


© 2019 Altova GmbH