Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Managing Endpoints and WSDL from WSO2 Register

DZone's Guide to

Managing Endpoints and WSDL from WSO2 Register

· Integration Zone ·
Free Resource

Continue to drive demand for API management solutions that address the entire API life cycle and bridge the gap to microservices adoption.  Brought you to you in partnership with CA Technologies.

Here I am going to use code from my previous post about the WSO2 proxy in which it was written without getting End Points and wsdl from URL.

eg:

<endpoint>
        <address uri="http://localhost:9763/services/BusServices"/>
     </endpoint>
  </target>
  <publishWSDL uri="http://localhost:9763/services/BusServices?wsdl"/>

Now I will make those saved in register

Adding End Point

1. got to –> “Home > Manage > Service Bus > Endpoints”

2. Click on "Add Endpoint" tab and then "Address Endpoint"

image

5. Click on "save in Registry"

image

6. Save & close clicked

image

Save wsdl in registy

1. Go to "Home > Registry > Browse"

2. Move to the "/_system/config/sample"

3. click on link called "Add Resource"

4. Then chose wsdl file in local Dir and save it

image 

5. Change Proxy for those from URL to registry location that you have added

<proxy xmlns="http://ws.apache.org/ns/synapse" name="transportProxy" transports="https,http" statistics="disable" trace="disable" startOnLoad="true">
   <target>
      <inSequence>
         <filter source="get-property('Action')" regex=".*getBusNo">
            <then>
               <log level="custom">
                  <property name="service" value="Bus Services is called"/>
               </log>
            </then>
            <else>
               <log level="custom">
                  <property name="service" value="Train Service is called"/>
               </log>
            </else>
         </filter>
      </inSequence>
      <outSequence>
         <send/>
      </outSequence>
      <endpoint key="conf:/sample/transportEndPoint"/>
   </target>
   <publishWSDL key="conf:/sample/BusServices.xml"/>
   <description></description>
</proxy>

Discover how organizations are modernizing their application architectures for speed and agility from the growing API economy.  Brought to you in partnership with CA Technologies.

Topics:

Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}