WSO2 running server and application in different machines - wso2

I am new to WSO2 and web service domain. I created an axis2 service application using wso2 carbon studio under eclipse platform. I installed WSO2 WSAS in the same machine and uploaded this service. based on this tutorial.
http://wso2.org/project/carbon-studio/1.0.11/docs/esb_proxy_service_sample.html#CreatingaProxyServiceUsingCarbonStudioIDE
and able to see the result in eclipse console. Now I want to run the server in separate machine and get the result in eclipse console. Can any one give solution for this.

Just run the server on a seperate machine, and use the IP and port on which the server is running and use that from the client code, in plce of localhost.

Related

Vmware vsphere 7 api

I am trying to build a python program to automate vmware vsphere task. Currently i am running vsphere 7 esxi server. The problem is when I try to test the api using postman to list the vm's i get an empty array, but I can see the vm information on the vsphere web client without any problem
API call: https://host-ip/rest/vcenter/vm (header contains the session id created using the create session api)
Can someone say why this is happeningenter image description here
Unfortunately ESXi hosts do not have a REST API service. That service is only available through a vCenter Server. However, you could use the vSphere Web Services (SOAP) API. Since you reference Python, you could also check out the pyvmomi SDK that interacts with that API service.

can wso2ues 1.0 (carbon server) run as a web app?

I'm trying to run WSO2UES (Carbon) as a web application in Apache Tomcat. I've followed the procedure discussed at http://pradeepfernando.blogspot.com/2012/09/running-wso2-carbon-as-web-app-apache.html.
I've added the web application folders into Tomcat webapps folder, configured HTTPS listener of Tomcat. Server logs show that application is successfully deployed and OSGI console is started. When I try to connect to application from https://myIp.com:8443/crbn/carbon, I get a 404 error. There are no exceptions in server logs.
Tomcat error screen contains reference to BridgeServlet: /crbn/carbon, so I know that request is correctly forwarded to BridgeServlet. I guess BridgeServlet can not locate and run the application from OSGI bundles. But I do not have any idea about why and how I can fix it.
How can I diagnose the problem, or is there any available source of information for the correct procedure?
Note: I'm using WSO2UES 1.0, Apache Tomcat 7.0.40. I've tried Java versions 6 and 7.
WSO2 UES 1.0 is based on carbon 4.1.0. AFAIK they are not officially support on web app mode.
can wso2 carbon 4.1 run as a web app (war)?
previous architecture handled using a concept called “Bridge Servlet”, so if you want to run it as previous you have to do some customized work.
here is a article on architecture difference on carbon latest.
http://wso2.com/library/articles/2014/01/understanding-wso2-carbon-architecture/

Unable to add/import WSO2 JAX-RS service into StratosLive Application Server

I have a WSO2 Application Server, version 5.0.1 installed on my local machine.
I created a JAX-RS service and tested it locally.
The WAR file was built and deployed to the local Application Server successfully. When I log in to the local Application server Admin console, I see it displayed under Applications as type JaxWebApp with 'Find Services' listed under the Actions column.
I have a StratosLive subscription and I am trying to ADD/UPLOAD this JAX-RS service as a WAR file to the StratosLive Application Server. The Admin Console for the StratosLive Application Server is different. On the Main tab, It displays Web Applications and Web Services rather than the Applications and Services on the Admin console for the 5.0.1 Application Server I am running locally.
Consequently, I do not see an option to ADD/UPLOAD my JAX-RS service as a WAR file. The only option is to add a Web Application WAR file (I tried this and it does not work properly - thinks it's a web app) or JAX-WS Web Service as a annotated JAR file.
It looks like the StratosLive Application Server I am using may be a different version (earlier maybe) than the 5.0.1 I am using locally.
Has anyone else been able to ADD/UPLOAD a JAX-RS service to a StratosLive Application Server?
Usually it takes small time to upgrade StratosLive version of a product to latest standalone product version. Now StratosLive has been upgraded to latest Application Server version and you should able to run above use case on StratosLive without any issue.

Web Service on Netbeans

I have created a Web Service in Net Beans 6.9 and deploy it locally. And I am using it via a java SE application by adding Web Service client in this application. How to obtain the link of the Web Serice so that it can be used from anywhere ?
2) From where to obtain WSDL file of Web Service ?
3) How to host a Web Service on the internet ?
Thank a ton in advance..!!!
You could create a new project of type web application in Netbeans.
In the web application, you will then create a web service (NOT a web service client).
For publishing and testing the web application, you will have to deploy it to a web server (e.g. GlassFish).
After publishing the web application, the WSDL file will be typically located at: http://localhost:<port>/<your web app>/<your service>?wsdl
For GlassFish, the default port is 8080.
If your current Netbeans installation doesn't support web projects or you don't have GlassFish installed, I suggest you download and install the latest version of Netbeans with Java EE support (bundled Apache Tomcat and GlassFish server in the same setup).
http://netbeans.org/downloads/index.html
Hosting SOAP web services on the internet at large has not been terribly successful. For example Google had SOAP based web services initially, and they switched to REST based services in the end. You may want to reconsider and deploy a REST based interface. If the bulk of your code is not embedded in the web service, then you should not have that difficult of a time switching the interface.
To deploy a SOAP or a REST web service, you would need to deploy a 'full' Java EE container (e.g. Glassfissh or JBoss) on a machine with access to the internet. You might virtual hosting e.g. Westhost, Amazon, or there are turnkey solutions like Heroku (note: I'm not endorsing any of the companies listed here; they're just examples). If you just want to deploy a REST based service, any web container will do e.g. Tomcat or Jetty. In addition to services mentioned above you could probably host a rest web service on any service that will let you upload a war file.

Deploying a WCF Service

I am using WCF for the first time. I Have successfully created the service and it works fine on my local machine. I want to know the steps involved for deploying the service to the client environment (including changes to the config file, IIS settings) and any other miscellaneous settings.
http://msdn.microsoft.com/en-us/library/aa751792.aspx
There you go - the how to from Microsoft
Right click the service project in VS, select Copy Website.
Specify the IIS path. (may need to connect)
Moves / sync all files.
You can also deploy a WCF service to a windows service host. This is desirable in many situations which are outlined here:
IIS WCF service hosting vs Windows Service