Web Services with Netbeans - web-services

After having done a web service with netbeans and having tested it. What is it that I should upload to the server so I can use it? I have been going around tutorials but none (of the ones I've found) say what to upload. They just finish when you deploy the web service =/.

Right, you'll package it as a WAR file and deploy that to the app server. A WAR file is what you need.
How you deploy depends on your situation and your app server. If you're using Tomcat, you can either put the WAR in the /webapps directory or use the admin console to deploy.
If you're using a hosting service, you'll have to ask them how to do it.

Related

Not able to invoke web services using web app which was deployed in Azure

I have a deployed html file by creating web app in Azure and hosted using FTP tool. when I hit the run in intellij, able to submit the values using html file and able to hit the web services. but am not able to hit the web services when i trying to deploy and run the nodes in command prompt.
It looks like your web app does not have the proper url of your web server.
Feel free to see an example of how we had build a front end web app at: https://github.com/corda/samples-kotlin/tree/master/Advanced/auction-cordapp/client/src/main/resources
The front-end is simple angular web app.

Deploy multiple instances of war on Hadoop through Apache Twill

I've a web app archive (war) file which is deployed on Tomcat. It contains some REST services. To scale, I want to deploy these REST services (either as war or as jar) on Hadoop cluster through Apache Twill. I want to use Jetty instead of Tomcat.
I couldn't find something very helpful. I'm looking for something like a detailed technical guide, or even better, a step-by-step guide.

WSO2 P.PaaS : Accessing the AS and other WSO2 products

So I have got WSO2 P.PaaS installed and running. I want to deploy .war file to the Application Server. It seems the AS on P.PaaS does not accept .war file; but the stand-alone one does. See here. Also, I want to use the WSO2 products deployed into the PaaS. I am not sure what URL or port I should use. Is there a tutorial that I can use to experiment?
Sorry for the brevity, but, I am new to WSO2.
What PPaaS version you have installed, 4.0.0 or from current master branch which is 4.1.0 milestone 1 version?
Here is the quick start guide Quick start guide .
You can access the management console as https://STRATOS_DOMAIN:9443/console.
Assuming you are using PP 4.0.0 version,
Log into management console
Go to cartridges page. There you can find the available cartridges, you should find Application Server as a cartridge.
Click on AS cartridge in order to subscribe for it. At subscribing process you would be asked a GIT repository URL.
After you subscribe, PP will clone what is in your GIT repository url in to Application server. So if you provide a url which has your web application, those application would be automatically deployed into the Application server. Here is a sample GIT repository , you can include your web apps under "webapps" folder.
There after if you modify your web apps (say web app version 2) and commit the changes to your repository, Stratos/PP automatically update Application server with the new web apps.
Since you have already deployed PP, you can have a loot at this screencast to see how you can deploy a web app

Grails App using CXF plugin deployed in Tomcat

I am trying to deploy my Grails app, using the CXF plugin to expose some web services in Tomcat. In development mode all goes fine, but i can not acces those web service when i deploy the app in Tomcat.
If a try to navigate to this address app-name/services i get a list of all web services exposed, but if i try to see some of the wsdl of this webservices i get a 500 Internal error.
I tried to copy all the CXF jar to the lib folder in Tomcat, but no make any difference.
¿Some help? ¿Someone has the same problem?
Well, for some reason the app was not dynamically generating the 'wsdl' in production enviroment. To partially solve this problem i wrap the 'wsdl' with the 'war'.

Apache Axis2 Webservice in regular shared hosting service

I developed a webservice in java with Axis2, and now I need to put it online.
In order to do it I signed a shared hosting service, but as I am not familiar with this kind o stuff, I don´t really know how to do it.
It´s a regular shared hosting service, is runs on Apache Tomcat, but I only have access to my home folder, public_html this kinda stuff.
Can I run my webservice by deploying it and putting it into public_html?
Do I have to deploy it in some way as to add Axis2 files to it, to make it work?
Any help will be much appreciated,
Lucas
You need to find a way to deploy .war files. In this case you have to use the Axis2 .war distribution and deploy it in your service hosting environment.
Normally you are given public_html folders in the hosting environments created by appche httpd where you can only deploy html pages. You need to clarify this with your service hosting provider.
You can use WSO2 Stratos live[1] for this kind of purposes. This article[2] describes how to deploy the axis2.war in stratos live.
In fact WSO2 application server[3] is specially written to deploy axis2 artifacts. So even without deploying axis2.war you can directly upload your service as well.
[1] https://stratoslive.wso2.com/home/index.html
[2] http://wso2.org/library/knowledge-base/2011/08/run-apache-axis2-webapp-wso2-cloud-0
[3] https://appserver.stratoslive.wso2.com/home/index.html