WSO2 GREG 5: how to upload a Word document and associate it with SoapService? - wso2

I am evaluating WSO2 Governance Registry version 5.
I added some Web services using new Governance Center - Publisher web frontend - it works just fine.
But now I would like to upload a Word document (specification charter) to repository and associate it with my SoapService so it is visible in SoapService detail page.
I found how to do it using console:
http://warunaperera.blogspot.cz/2014/06/how-to-upload-file-and-associate-with.html
It works but such associated document is not visible in Governance Center / Publisher.
So the question is: is it possible with WSO2 Greg to have a Word (or other) documents associated with Soap service?
Thanks!

Yes, This is possible with new GReg 5 series. Please find this blog post which explains a basic handler for your requirement.
To get it work you will need to write a handler and publisher/store extensions. There is a sample handlers comes with the WSO2 GReg pack. The handler needs to write kind a looks like swagger handler which comes GReg out of the box. Other than that user wanted to write a rxt such as wsdl/wadl or swagger rxt. For more information please refer WSO2 Governance registry 5.1.0 documentation.
Hope this helps

Related

swagger url for WSO2 Governance registry5.4.0 REST API

I am exploring the WSO2 Governance registry version 5.4.0. I would like to get the swagger url for WSO2 governance registry REST API so that I can call the rest apis to create/update/delete/get resources in Publisher portal.
I have installed the WSO2 Governance registry 5.4.0 locally on my windows 10 machine.
Please help me with this. Thanks a lot in advance.
First of all this is not a programming issue but support. Please refer below documentations provided by WSO2:
Invoking a REST Service Using the In-built Swagger UI
Adding a
REST Service
For this case you better subscribe to WSO2 mailing list and mail them your query. They will surely reach you.

WSO2 Governance Registry Json Schema

I'm facing some problems regarding the publication GREG using Swagger. I wonder if you have any way to make GREG recognize the JSON Schema, because I saw that it only recognizes XML Schema which ends up forcing me to use WADL.
I presume you are using G-Reg 4 series which does not have Swagger support. However, in G-Reg 5 series WSO2 have enabled this and you can find the latest version which is G-Reg 5.3.0 from here. Other than that, new G-Reg offers you some more very useful features to enhance SOA governance capabilities.
Adding a SOAP service using a Swagger
Adding the Swagger file
To enable json schema you have to create a handler. Please refer below sample media type handlers available in greg(carbon-registry)
WSDLMediaTypeHandler.java
SwaggerMediaTypeHandler.java
WADLMediaTypeHandler.java
Please find this useful article which will teach you how to create a simple handler.
You can find information regarding the support given for swagger in WSO2 Governance Registry in the following documentation.
[1] - https://docs.wso2.com/display/Governance530/Adding+a+REST+Service#AddingaRESTService-AddingaSOAPserviceusingaSwagger
[2] - https://docs.wso2.com/display/Governance530/Invoking+a+REST+Service+Using+the+In-built+Swagger+UI#InvokingaRESTServiceUsingtheIn-builtSwaggerUI-AddingtheSwaggerfile
Note: As mentioned in #thusharaK s answer, these capabilities are available in the latest version of the product.

WSO2 API Manager Getting Start

This is regarding wso2 APM
Is there a getting started guide for those who wanted to start contributing to WSO2 API Manager.
Any feature request page where I can see community voted new features on which contribution is required ?
​
Thanks.
To get an understanding about the jaggery application structure in the API manager (The UI parts) you can read following tutorials
http://wso2.com/library/tutorials/2012/09/customizing-api-store-publisher-part1/
http://wso2.com/library/tutorials/2013/08/customizing-api-storepublisher-jaggery-applicationspart2/
this is the structure followed in api manager store, publisher and admin-dashboard jaggery application.
You can read http://wso2.com/library/tutorials/writing-custom-hostobject/ to see how the jaggery application is connected with the java code.
These will give you a basic understanding about the code base of the api manager.
Is there a getting started guide for those who wanted to start
contributing to WSO2 API Manager.
WSO2 API Manager is 100% open source API Management solution. You can find the component source code in github, component repo and product repo
Any feature request page where I can see community voted new features
on which contribution is required ? ​
You can find those information in the following mailing list
dev#wso2.org is a mailing list to discuss about all WSO2 products.

Error occurring while Listing wsdl from wso2 governance

I have added wso2 governance registry on wso2 BPS 3 as a feature from http://dist.wso2.org/p2/carbon/releases/turing/
and restarted.
When tried to add wsdl from file it giving error:
org.wso2.carbon.governance.api.exception.GovernanceException: Attribute Search Service not Found.
I am trying to use BPS, GREG as a single component to reduce servers in my project. After GREG added as a feature it adding ".wsdl" file at "_/system/governance" and it is not forming endpoints,services as GREG normally do.
Is there any way to get out of this problem.
Thank's in advance....
The reason for this is missing some of the features which needed in ordered to work governance features. I think best option is using Governance Registry separately and mount the registry of it to BPS. By doing this you can add services from Governance Registry and use them in BPS. You can follow this document for more information on registry mounting.

connecting a web service to wso2 identity server

I have installed a wso2 identity server on my computer and now I am looking to have it act as an pdp and pep for my application which will be a website or database server. I already know how to create policies, the problem is that i can not seem to find a tutorial for how to connect a service to the identity server. what i want is for a tutorial to start off with the simple basic things and then I will be able to move on from there. thank you for your help
I think you want to use Identity Server as PDP. your application which is running on tomcat uses this PDP for authorization queries. Therefore you want to create PEP component with your application. PEP can do a web service call to WSO2IS PDP. Actually use can use the same PEP client source that is described in the above blog post. You can easily integrate it with your web app. However there is a sample web app that act as a PEP. Please refer the sample from here. Also source code of this web app can be found at here. If you just go through source code, you could find how it has been implemented.
You can find SOAP based PEP client for accessing WSO2 Identity Server's PDP from here. Also If you want more details on PDP PED communication related to WSO2 Identity Server, please find from here.