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

Using WSO2 admin services to upload Carbon Applications - With Sample

DZone's Guide to

Using WSO2 admin services to upload Carbon Applications - With Sample

· Web Dev Zone
Free Resource

Learn how to build modern digital experience apps with Crafter CMS. Download this eBook now. Brought to you in partnership with Crafter Software

Hi all, in this post we are going to explore how to use carbon admin services and how to consume them properly. There are lot of carbon admin services available for WSO2 Carbon based product.
To list  out all the admin services follow the below steps.
Start a WSO2 product using the following command. In this particular example I am using WSO2 ESB 4.8.0

aruna@aruna:~$ ./wso2server.sh -Dosgiconsole
Then type listAdminServices in the Osgi Console.
aruna@aruna:~$ listAdminServices
Now you can see all the available admin services.

By default these admin services are hidden. If you try to access a service using browser. you'll get the following error.
<faultstring>
The endpoint reference (EPR) for the Operation not found is /services/ProvisioningAdminService and the WSA 
Action = null. If this EPR was previously reachable, please contact the server administrator.
</faultstring>
To enable hidden admin services in Server-Home/repository/conf/carbon.xml file set the following value to false.
<HideAdminServiceWSDLs>true</HideAdminServiceWSDLs>
Then you'll see the wsdl file of the service available.

Here is a sample admin service client to demonstrate an uploading a carbon application to the server. You can find the source code in this repository. Repository Link  http://bit.ly/1vf8hkS

Crafter is a modern CMS platform for building modern websites and content-rich digital experiences. Download this eBook now. Brought to you in partnership with Crafter Software.

Topics:

Published at DZone with permission of Aruna Karunarathna, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

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

{{ parent.tldr }}

{{ parent.urlSource.name }}