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

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>

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 }}