When I want to create a new project from File > New Project > Select Web Application from the Java Web category or EJB Module
from the Java EE category; I do not have the Web Application choice.
How can I fix it?
I followed this steps
i might think what you are missing. First you will need to download an additional software. First go to Help -> Install New Software -> Work with : http://download.eclipse.org/releases/oxygen/ then click Add -> WEB,XML,Java EE and OSGi Enterprise Development and select from there : Axis2 tools , CFX Web Services, Java EE Development Tools,Java EE Developer Tools,Java Web Developer Tools,Web Developer Tools,XML Editors and tools and other that you might think will help you. Hit the next button and proceed the installation. Restart eclipse.The go to File -> New -> Other -> Dynamic web project.
Related
I am a total beginner with developing in scalatra, eclipse, sbt, web services, etc...coming from a proprietary SAP Abap world where everything is different. Recently I found interest in developing in scala and SAP opens its SAP Cloud Platform, so I tried some tutorials to create some very simple web applications.
I could manage to create the sample tutorial with scalatra and sbt.
Scalatra includes Jetty as a default container.
I want to use Eclipse as SAP uses it as a standard development environment. I managed also to install the sbt-eclipse plugin and could import the project into the eclipse environment.
But now I'm stuck.
How can I change the web-container (server) to Tomcat which is installed locally in my eclipse environment?
It is a Scala project, so I cannot use the option which is available in a J2EE project to define the Target Runtime Environment in the properties.
Ultimately I would like to deploy it to my Hana trial account at SAP Cloud Platform. Any hint is appreciated.
From an example i am using the web service (SOAP) AXIS-WS, But at run time i am getting "The Apache Axis2 Web service runtime in Tomcat v7.0 Server does not support the service project " err. Please let me in this regard.
Thanks in advance.
If you are getting above error while trying to create web service using Apache Axis2 it means your project has been created on higher version of dynamic web project. Apache Axis2 does not support dynamic web project above 2.5 version. Please change to lower version 2.5.
To change: Right click project –> Properties –> Project Facets –> Dynamic web module and change to version 2. 5. (If you are not able to change to version 2.5 please create new eclipse project with Dynamic web module 2.5)
Hope it Helped
I have a kind of a "giant" web service built with SOAP, EJB 2.1 and we use BEA WebLogic Platform 8.1 as IDE.
It is a critical web service, used by different countries and it access more than 15 data sources to generate a XML with some information.
We want to migrate the application to use a better IDE for development like Eclipse, and we also want to use a dependency managment tool like maven and add a dependency injection framework like Spring.
The project is divided in a main web service project and some other project with EJB 2.1 used to extract information of some data sources.
What would be the best way to migrate this project, without breaking the interface(wsdl) of the web service?
Any help or hint is welcome.
How to create web service (server & Client) in Visual Studio 2012?
like being done before 2012 as
http://www.tutorialspoint.com/asp.net/asp.net_web_services.htm
When creating a New Project, under the language of your choice, select Web and then change to .NET Framework 3.5 and you will get the option of creating an ASP.NET WEB Service Application.
Create a new empty Asp.NET Web Application.
Solution Explorer right click on the project root.
Choose the menu item Add-> Web Service
WCF is a newer technology that is a viable alternative in many instances. ASP is great and works well, but I personally prefer WCF. And you can do it in .Net 4.5.
Create a new project.
Right-Click on the project in solution explorer, select "Add Service Reference"
Create a textbox and button in the new application. Below is my click event for the button:
private void btnGo_Click(object sender, EventArgs e)
{
ServiceReference1.Service1Client testClient = new ServiceReference1.Service1Client();
//Add error handling, null checks, etc...
int iValue = int.Parse(txtInput.Text);
string sResult = testClient.GetData(iValue).ToString();
MessageBox.Show(sResult);
}
And you're done.
--- create a ws server
vs2012 upd 3
new project
choose .net framework 3.5
asp.net web service application
right click on the project root
choose add service reference
choose wsdl
--- how can I create a ws client from a wsdl file?
I´ve a ws server Axis2 under tomcat 7 and I want to test the compatibility
I don't want WCF, I only want web service.
Thank you.
They've obscured it, but it's easy enough:
Right-click on your solution, select Add New Project.
In the Framework selection dropdown, select .NET Framework 3.5
Select the Web installed templates listing and you'll find ASP.NET Web Service Application as the last one in the list.
In other words, you can create one in .NET 3.5, but not 4. Now, that being said, it seems like it may be possible to create a .NET 4 template for VS2010, but I'm not a VS2010 guru, so that's for someone else to elaborate on.
Edited to Add: Somebody else posted a response to your question that was also a good answer, I thought, but they deleted it themselves for some reason. I don't remember their user name. I'll repeat it here.
If you create a new Web Application in the solution, you can then Add New Item, and one of the options under Web is "Web Service" at the very bottom.
The only drawback to this is that besides the web service, you also have the usual default items for a web application, namely default.aspx, about.aspx, global.asax, and site.master, as well as the folders Account, Scripts, and Styles. But you can delete these, so no problem. Also keep in mind that the web.config in the Web Application project will be different from that of the Web Service, and that the assembly bindings for the web service will point to ASP.NET v2 & v3.5 (see its web.config), whereas the service in the web application project will default to ASP.NET v4 (through its project file). I don't know if any negative implications exist for either way of working, though I suspect that both will work just fine.
If you select the framework like mentioned above to 3.5 you can select a web service application. If you want it to be targeted at .NET 4.0 framework, go into my project --> Compile --> Advanced Compile Options --> change the target framework to .net framework 4.
You can also change your compile options to target it at a x64 or x86 (32 bit) server.
web.config in the Web Application project will be different from that of the Web Service, and that the assembly bindings for the web service will point to ASP.NET v2 & v3.5 (see its web.config), whereas the service in the web application project will default to ASP.NET v4 (through its project file). I don't know if any negative implications exist for either way of working, though I suspect that both will work just fine.
Here was my resolution:
Right-click on your project name and select to Add Service Reference.
Select the Advance button at the very bottom.
Select the Add Web Reference button at the very bottom.
Proceed as usual. :)