Creating Contracts from Schemas
This option allows you to select a local wsdl file.
Context
You can export an XML description of a contract and use this as the basis for creating a contract in another system. Contract must be available in both systems involved in establishing a contract or in client systems that need to communicate with each other. If you have modeled a contract in one system, you can copy it to another system using an XML file. You can also transport contracts across your system landscape.
Prerequisites- A semantic contract is available on the same system. You can create the semantic contract from a schema as well. For information on creating a semantic contract from a schema, see Creating Semantic Contracts from Schemas.
- A service consumer proxy is available. For information on creating a service consumer proxy, see Consuming a Web Service Using the Enterprise Services Repository.
- Access an ABAP package. For information on accessing an ABAP package, see Accessing an ABAP Package.
- Navigate to the identified contract.
- Open the contract.
The contract editor window appears.
- Click the Source [Read-Only] page.
The schema or the XML definition of the contract is displayed.
- On the top right corner of the editor, click (Export as WSDL).
The Save As window appears.
- Save the file and send it to an ABAP system.
The key steps for creating a contract from XML files are:
- Creating a proxy using schema
- Selecting a communication type
- Creating a proxy using schema.
- Access the Enterprise Services wizard. For information on using the wizard, see Accessing the Enterprise Services Wizard.
- Select Contract.
- Click Next.
The New Contract wizard appears.
- Enter the following details:
- Package name
- Name
- Prefix, if required
- Select Local WSDL File as the source.
- Click Next.
- In the Local WSDL wizard, click Browse...
The Open window appears.
- Browse to the WSDL file location.
- Proceed with the wizard and complete the task.
The contract and its respective operations appear in the editor window.
- Selecting a communication type.
- In the Details section of the contract editor, you can:
- view information about participating actors
- select a communication type for the contract
- To provide operation details, select an operation.
Selected Communication Type Action Required RFC Only the Select button for the RFC Consumer field appears enabled. Use the Select button to provide RFC Consumer and RFC Operation details. Web Service The Browse buttons of the Request and Response Message Type fields and the Add button of the Fault Message Type field appear enabled. - Save the contract.
- On the top right corner of the proxy editor window, click
( Activate ABAP Object) to activate the contract.
- In the Details section of the contract editor, you can: