Why I am finding this difference implementing the "Sending a Simple Message" official WSO2 ESB tutorial? - middleware

I am absolutly new in WSO2 ESB and I have a doubt following this simple official tutorial related to sending a simple message:
https://docs.wso2.com/display/ESB500/Sending+a+Simple+Message
I have installed the ESB Server and the provided Eclipse Tooling version and I started with the tutorial but I am noting a difference between what I obtain and what is shown in the previous tutorial.
The "problem" happens in the Connecting to the back-end service section of this tutorial (near the beginning).
The tutorial starts creating a new ESB Solution Project that creates these 4 projects in my workspace:
then there is the Connecting to the back-end service section where a new endpoint is setted on the SampleServices project.
Ok, afther that this operation is done, on the tutorial is shown this immage:
As you can see there is a SampleApp that wrap my SampleServices project.
The "problem" is that, after that I do this operation, I have the endpoint setted but I don't have any SampleApp wrapping my SampleServices, this is what I have in my package exlporer:
As you can see there is no SampleApp wrapper. Why this difference from the tutorial? I have followed it step by step.
What is the problem? What am I missing? May it compromise the final result?

Related

InfraValidator component not "blessing" my model

The InfraValidator TFX component is not blessing my model, and I'm having trouble finding out why it isn't getting "blessed". I'm not sure what part of my model would be causing it to not be "mechanically sound" enough to not get validated.
This component is using a local docker server.
Github Link: https://github.com/BikiniBottomsVeryOwn/tfx_pipeline
I configured the InfraValidator exactly as it's configured in the API docs.
I ran the example from https://www.tensorflow.org/tfx/serving/docker and it worked with Docker.

How to run di basic example of WSO2 EI Business Process?

I am absolutly new in WSO2 EI and I have the following doubt.
I am following this official tutorial to study the creation of a business process BPMN process):
https://docs.wso2.com/display/EI600/Quick+Start+Guide
If you go in this tutorial the second tab is refered to the Business Process Management tutorial, then I continue following the business process BPMN process street.
I followed all the tutorial and I think that I have understand the key concept of this example but I have some doubts about how to run this example.
At the end of the tutorial it does:
To create the Business Archive File (.bar), do the following.
On the Explorer, found in the upper left of your screen, navigate to Package Explorer.
Right click on the package and select “Create deployment artifacts”.
Navigate to the location of the source. You will find the .bar file inside the deployment folder.
So now I have my /HelloWorld/deployment/OrderApproval.bar file created.
But now what have I to do with this file?
I also have download the EI Server from here: /HelloWorld/deployment/OrderApproval.bar
Then I have configured it in my Eclipse Developer Studio EI setting it as a WSO2 server.
So my doubts are:
What exactly represent this OrderApproval.bar file? Is it a file representing a WSO2 EI executable project or what?
From what I have understand the previous example represents a work flow representing a BPMN process that implements a flow with some rules without that I need to write Java code (correct me if I am doing wrong assertion). But is it something executable or something that have to be integrated into some other application?
If it is an executable project what have I to do to run it and interact with it?
BPMN is process definition that can be run on BPS server. BPS server is part of WSO2 EI solution. You have to run it from [EI_HOME]/wso2/business-process/bin
On Linux/Mac OS: sh wso2server.sh
On Windows: wso2server.bat --run
Then, when it works correctly, open https : // [serverIP]:[port]/carbon/ and log into the EI-Business Process management console.
Next navigate to Home -> Manage -> Processes ->Add -> BPMN and upload your OrderApproval.bar file.
After uploading file, log into the BPMN-explorer at https : // [serverIP]:[port]/bpmn-explorer. On the "proecesses" tab you should see your process which can be run by action->start.
Try studie this example: https://docs.wso2.com/display/EI600/Creating+a+BPMN+Process

Issue with Surf Oauth as a Third-Party Key Manager WSO2

I am trying to implement Surf OAuth as third party key manager in WSO2 API Manager.
https://docs.wso2.com/display/AM1100/Configuring+a+Third-Party+Key+Manager
But after deploying it to tomcat, none of the buttons work, they return nothing. In Chrome developer tools, source option I have seen that it misses one of the template folder. Kindly see the image,
How do I make it work?
Thanks
You can check the latest source code for Surf Oauth Server from here. It seems the Surf Oauth WAR has customization. You don't need to depend on the Surf OAuth Server provided in the documentation.
You can clone the source code from above github repo and build it. You can start the Surf Oauth Server in following way. It's a Jetty project.
cd apis-authorization-server-war
mvn jetty:run

wso2 esb console localization

I'd like to translate the management console to localized language. I've try to follow the instructions from http://wso2.com/library/knowledge-base/2011/11/playing-around-carbon-product-themes/ as a starting point, cause I think that should be in the same theory. But this didn't work, and cause an exception when entering the site.
I see the document is pretty old (2011), is this not work anymore? or the procedure has been changed?
Edit:
sorry, forgot to mention, I'm using WSO2 ESB 4.8.1.
Yes as you have mentioned, above link is outdated. However, the concept is same in new versions as well. Keeping an extracted jar file in the plugins directory will no longer work since we have disabled that along the way as a security fix.
Herewith I have given [1]. the latest documentation of "Customizing the Management Console" of the WSO2 Enterprise Service Bus. You can use it as a starting point.
If you need further help regarding this issue, please let me know.
Thanks,
Upul
[1]. https://docs.wso2.com/display/ESB481/Customizing+the+Management+Console

Google oAuth example

I'm looking for a worked example of how to call into Googles oAuth service with a view to simply uploading a txt file. On googles docs I have the followed the example
http://code.google.com/p/google-api-java-client/wiki/OAuth2
but it won't compile .... CalendarScopes.CALENDAR is the problem and I can't see what Jar contains this class. I imported every Jar in the google-oauth-java-client-1.12.0-beta download (Also every jar in google-api-java-client-1.12.0-beta ) I dobn't understand the diff between these but that is for another day.
Any pointers would be welcome.
CalendarScopes.CALENDAR that you mentioned is not a part of a jar file but a scope for Calendar API provided by Google. For a sample to show how to implement that, here is one.
In the meanwhile, I would also suggest going over the following links to develop an understanding of the OAuth and how to use it with the different APIs.
OAuth Playground - This is very helpful when trying to learn about different API and permissions relating to those.
OpenID Connect Official Documentation
Hope this helps.

Resources