Web Service on Netbeans - web-services

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.

Related

authentication through web service SonarQube

I'm working on a web application that highly requires SonarQube (version 5.3) Web Services.
I want to authenticate to the sonarqube instance using my application.
which web service should I use?
Another question :
While using the issues web service I noticed that the web service returns the issues of the last project analysed by sonar.
Is there a way to have the issues of all the projects or to have the issues of a given project?

Understanding IIS vs Service

What is the difference between a web service deployed through IIS and a simple windows service that just responds to http requests?
Do IIS web services get compiled to a binary executable as a regular windows service would?
What files/settings does IIS require to define a web application?
What aspects of a web application are handled by IIS which would have to be reimplemented when creating a windows service that responds to http requests?
IIS provides a hosting environment with,
Application pools
Standard extension API
Other IIS only features.
You can search other materials comparing self hosting and hosting on IIS to learn more.

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.

Host a SOAP web service on a server

I have a SOAP web service code (.asmx) created using VS.NET 2008 which I plan to host on a web server. I am unaware and completely new to the term 'hosting' . My question is whether there are any free and limited period web hosting services that offer me to host a .asmx web service having Microsoft SQL Server 2008 as backend. If yes, what should the approach be from my side ? Should I the upload the .asmx code or the entire VS.NET project ? I am working on localhost at present.
Thanks
This describes how to deploy ASMX web services:
http://msdn.microsoft.com/en-us/library/6x71sze4(v=VS.90).aspx
You'll need to find a web host that supports IIS and ASP.NET. I'm not aware of any free hosts that support server side scripts and SQL databases. One of the cheapest options that I've used in the past is GoDaddy, which should satisfy all your needs.
You can test locally if you install IIS 7, available through the web platform installer:
http://www.microsoft.com/web/downloads/platform.aspx

Can we run Metro Web services on IIS?

Can we run the web services created using METRO web service stack on the IIS server as opposed to Glassfish or tomcat?
Your question does not really make sense. Metro web services are Java based, they have nothing to do with IIS, therefore you can't run them on IIS. However you can implement the same logic in WCF and host it on IIS. You can also call Metro web services from WCF.