This site contains the documentation that is relevant to older WSO2 product versions and offerings.
For the latest WSO2 documentation, visit https://wso2.com/documentation/.

Include Additional Headers in the API Console V2

  1. Log in to the API Publisher and click the API that you want to invoke (e.g., PhoneVerification).
  2. Click the Edit link next to the API's name, navigate down to the Resources section and click on the POST method to expand it. 

  3. Create the following headers under the POST method using the Add Parameter button.

    Parameter nameValues
    bodyDescription: Request Body
    Parameter Type: Body
    Data Type: String
    Required: False
    SOAPActionDescription: Set to http://ws.cdyne.com/PhoneVerify/query/CheckPhoneNumber
    Parameter Type: Header
    Data Type: String
    Required: False
    Content-TypeDescription:
    Set to text/xml
    Parameter Type: Header
    Data Type: String
    Required: False

  4. Once you are done, click Save.

  5. Log in to the API Store, subscribe to the API and generate an access token.
    If it's an API that you are already subscribed to, you might have to renew the access token from the My Subscriptions page.
     
  6. Click on the API again to open it and then click its API Console tab.
  7. Expand the POST method, fill the parameter values and invoke the API. For example,

    ParameterValue
    Body

    This is the example SOAP request that we copied from the SOAP UI of the previous tutorial:

    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:quer="http://ws.cdyne.com/PhoneVerify/query">
       <soapenv:Header/>
       <soapenv:Body>
          <quer:CheckPhoneNumber>
             <!--Optional:-->
             <quer:PhoneNumber>18006785432</quer:PhoneNumber>
             <!--Optional:-->
             <quer:LicenseKey>0</quer:LicenseKey>
          </quer:CheckPhoneNumber>
       </soapenv:Body>
    </soapenv:Envelope>
    SOAPActionhttp://ws.cdyne.com/PhoneVerify/query/CheckPhoneNumber
    Content-Typetext/xml

  8. Note the result that appears on the console. 

You have added SOAP parameters to the API Console and invoked a SOAP service using the API Console.