I set up Open-xchage(wrote on Java) on openSUSE and installed SOAP extension on it. Then i tried to generate web referense in vs2008, but it doesn't work. Can I generate WebReferense of Java-based service and use it in .net/c# ? Any ideas.
Thanks.
This should be posible with no problems
try -> How To: Call a Java EE Web Service from a .Net Client
Related
We want to develop a Java based Web-services (since the API's we want to use are Java based)
I would like to know if it's possible to use the IBM Rational Team Concert Plain Java API's (https://jazz.net/downloads/rational-team-concert/releases/5.0/RTC-Client-plainJavaLib-5.0.zip) as part of the Web-servicesand deploy them in the server?
Basically we use these API's on a client based Java applications. What I am looking at is more like a services which can be consumed by many applications
Anyone has any experience in deploying the client based API in the server as Web-services?
After multiple tries, it is possible to use the RTC Plain Java API's as Webservices.
How I did:
Followed the simple Webs Service creation tutorial (http://wiki.eclipse.org/Creating_a_Bottom-Up_Java_Web_Service)
Adapted to my needs
First added the "RTC plain Java API's (JAR's)" to the Eclipse build path
Then added the "RTC plain Java API's (JAR's)" to the "WebContent/Lib/" folder of my Dynamic web project
Created a new Web service & Web service client
I was able to login to RTC via this for starters
I have Used Tomcat Apache to use my java desktop application as a webservice.so is that good option Or i need to use apache server to make my java application as a webservice?
Wht i want is after my webservice made with apachetomcat ..can i call that webservice with wcf or desktop application of .net?
wcf service -> call webservice of java application(using apache tomcat) ->execute java application on server->and return resutl to wcf service
wcf service has function as below
call Javaapplication();
and throught that can i invoke java programm on server?
is it possible?
Apache is an http server. Tomcat is a Java EE environment which includes the ability to function as an http server.
Apache alone won't run your Java application. In many cases, Tomcat will be enough, but in higher-volume situations, you may want to use Apache and Tomcat together.
Other than that, it looks like you need to find a good tutorial on Java EE and Web Services, like, perhaps, this one by Oracle
If you are looking at Apache products, Axis is the tool for web services. And to that, I would look at Axis2. But, I would encourage you to look at the variety of options out there and select the best for you.
Is there any excellent tool in JAVA to deal with webservice or wsdl?
Yes. There is a standardized API (JAX-WS) that is even integrated into the Java standard API (the javax.xml.ws packages) since Java 6, and multiple implementations thereof, such as Axis and CXF.
Read about wsimport utility, which generates client-support code from the WSDL document (or URL pointing at service endpoint).
If you are using Eclipse try Eclipse Web Tools Platform Project, it's good at my point of view and sufficient for me.
For IntelliJIDEA Web Services link
If you're a Spring user, I'd recommend the Spring web service module. It makes using WSDL, creating web services, and implementing clients easy.
I'm tasked with creating a Java Web Service for a .NET 2.0 client to consume.
What would your suggestions for the implementation be?
The solution doesn't need to be very heavyweight (don't need a full Java EE container I believe) but what do you think is the best solution for this? I have thought about using Glassfish v2 with JAX-WS annotations (#WebService), and JAXB XML Bindings(e.g. #XmlElement), which I assume the .NET client would be able to consume?
Has anyone tried this scenario?
Would Glassfish be overkill though, since I'm merely using the Web Service as a mechanism for .NET on Windows to communicate to the Linux box, the underlying application is extremely small.
Any suggestions are more than welcome :)
Thanks,
James
P.S. Other notes - would you use Axis/CXF instead of Glassfish? Would you use a servlet container such as Tomcat? etc.
I have used Axis2 and it works.
I had the same problem of making Data Exposing API (Web Service in my case) in Java.
I made the web service using Axis2 and Spring (to access database) and the WSDL created via Axis2 was easily consumed via ASP.NET Application via its Add Web Service Dialog Box and the corresponding Proxy Classes were created easily.
I'm developing a web service client that needs to execute operation exposed on tomcat with axis2. The client has all the wsdl files that are needed. I can't import them statically with netbeans or eclipse because the client needs to discover the wsdl at runtime (this has been already done) and then execute them in an fixed order...
What should I do? My program is able to get those wsdl files but I don't know what to do with them... What should I use: jax-ws? jax-rpc?? Can you give me a link to a guide or something else??
Thank you in advance
Depending on your stack you can write webservice clients using a variety of tools/framework/libraries. Such as Spring-WS, Apache CXF or JAX-WS RI. Take a look at some and you'll get a feeling how to consume webservices.
What client platform/implementation and webservice rumtime do you intend to use on the client? For example if it is JAVA, you can use the RAD tooling from IBM or wsdl2java AXIS ant task to generate the java stubs. If it is MS platform, you can use Visual Studio tooling from MS to generate csharp stubs from the WSDL. Then you populate the objects to create the SOAP xml message format that your webservice provider expects.
You might look into Dynamic Clients with Apache CXF, looks like it can do exactly what you're looking for.