Attach a Service WSDL
- 
    From the financing 1.0.0API Design screen, click on theServicesoption in the left column menu palette.
- 
    Click the +icon in the Services section to import web service from WSDL.
- 
    Click the Load from URLicon and enter the WSDL URL below and then clickNext:https://thinkibm-services.mybluemix.net/financing/calculate?wsdl  
- 
    Click the Show operationsto see the available operations in the WSDL end point. SelectfinancingServicethen clickDone. 
Build the Financing API Assembly
- 
    Click on the Assembletab to access the assembly editor. 
- 
    Select the DataPower Gateway policiesfilter. 
- 
    In the processing pipeline, mouse over the invokepolicy and click the trash icon to delete it. 
- 
    Scroll down to the bottom of the policy menu, drag and drop the financingweb service operations to processing pipeline. 
- 
    Now you are going to modify the input and output mappolicy for mapping your REST API into SOAP.
- 
    In order to consume a SOAP-based service from your REST-based API, you need to map the query parameter inputs that were defined as part of the GET /calculateoperation to a SOAP payload. To do so, click on thefinancing: inputmap policy on our pipeline to open the map editor.Tip:
 Click on the+icon to make the editor window fill the screen.
- 
    Click on the pencilicon in the Input column. 
- 
    Click on the + parameters for operation...option and select theGET Calculateoperation.The Map editor will automatically pull in the request parameters that you defined earlier. 
- 
    Click on the Donebutton to return to the map editor.
- 
    For each of the Inputquery parameters, map them to their respective SOAPOutputelements.To map from an input field to an output field, click the circle next to the source element once, then click the circle next to the target element. A line will be drawn between the two, indicating a mapping from the source to the target.  
- 
    Click the Xbutton in the map editor to return to the policy pipeline.
- 
    Click the invokepolicy to open its editor.
- 
    The SOAP service URLhas already been set for you during the service import when we create the API. 
- 
    Click the Xbutton to return to the policy pipeline.
- 
    After the Financing Web Service is invoked, you need to map the SOAP response into a JSON object. You already defined the response object called paymentAmount. To do the map, click on thefinancing: outputmap policy on our pipeline to open the map editor.
- 
    Click on the pencil icon to create a set the output object schema. 
- 
    Click on the + outputs for operation...option and select theGET /calculateoperation.
- 
    Set the Content type configuration option to application/json. 
- 
    Click on the Donebutton to return to the map editor.
- 
    Click the circle next to the paymentAmountsource element once, then click the circle next to the target element. A line will be drawn between the two, indicating a mapping from the source to the target. 
- 
    Click the Xbutton in the map editor to return to the policy pipeline.
- 
    Save the API definition.  
- 
    Click on the <- All APIslink to return to the draft APIs list.
Continue
You are now finished building the financing API. The assembly takes the following actions:
- Maps the REST query parameters into a SOAP body.
- Invokes the SOAP service.
- Transforms the SOAP service’s response into JSON.
Proceed to Import Logistics API.