Java Web Services - Intacct Application [closed] - java

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am new to Java environment. I have to create a java utility to extract information from an external application using web-services.For that I need to send an XML request and receive the response. I am browsing around the web and couldn't find any better article. I want to know how to send a XML request and print the request and the response using Java. Any good reference should also help.

Given that you are using Java, you should check out the Java specifications for
JAX-RS: Spec for Java REST services
JAX-WS: Spec for Java XML Web services (this roughly is the SOAP spec)
Both of these topics are extensive. FWIW REST seems to be the style-of-choice today. SOAP was prevalent several years back, but for several reasons (simplicity, ease of implementation), REST has surpassed SOAP. Of course if you have a target web service in mind, the style of the service makes the REST/SOAP choice for you.

Related

How to communicate Front End( in C#, HTML, JQuery) with Backend( JAX-RS( Jersey) and JAVA)? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I want to develop a Web application in which front end will be developed in HTML, C#, ASP.net and server side will be using JAVA ( JAX-RS jersey ).
So, the front end will be running on IIS server and java will be running on Tomcat server.
How to consume Java REST API from C#?
I mean is there any way to to communicate between two different servers ?
Note: This is my second time asking question on this platform, so I am sorry if my question doesn't make any sense.
Perhaps you can look into using the Spring framework. With the Spring framework, you can build a RESTful web service that has end-points with which your front-end can communicate. It works like the C# Web-Api, in that you can define a "base URL" and other specific URLs that you can link to a function in your Java code.
Spring website:
https://spring.io/
Some help to getting started:
http://www.journaldev.com/2552/spring-rest-example-tutorial-spring-restful-web-services

creating generic RESTful web service [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I have to create a RESTful web service. But, I was thinking for a generic RESTful web service for SOA. I don't know is it a good or bad idea for RESTful SOA.
How can I create generic web service which also satisfying REST concept.
Quite an endeavour.
At a first thought you would have to provide some kind of abstraction layer over the resources that you would typically expose. And that's just the API. Then you would have to execute custom logic for every resource you access.
The short answer is that it's not worth trying to figure out. Going with the typical solutions we have now is far better than over-generalising REST.
There is no one-size-fits-all.
I totally agree with #Gabriel Ruiu - "There is no one-size-fits-all."
But if you are thinking about building an API kind of thing (maybe a library) using which one could build RESTful Services easily, then you can generalize some of things and expose the features via your API.

How to create webservices with struts2 in Eclipse or in Netbeans? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
please help me to creating webservice with struts 2 either be using of Eclipse or be using of Netbeans.
First you need to know to basic idea behind Web Services and how it works:
A short introduction to Web Services
Then, you need to generate Java classes from the given WSDL file(if there is one, otherwise you need to communicate through SOAP directly):
Creating Java Classes from WSDL file using Apache Axis 2
Generating Java code from a WSDL document
Note: The reference given using Apache Axis 2. There are others ways to do the same task this one of them.
Also, you need to deal with Certificates issue (if it is required). I can not tell much about it. Since, it depends on your case.
Now you can work with your Java application, where you need to establish SSL connection, send requests and receive response from the Server you are requesting services form it.

HowTo : C++ App as a Webservice Provider and Java App as a Webservice Client [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I'm not good in webservice stuffs. I only tried in my life REST in Java which is so easy to implement.
But, this time, I need to implement SOAP, using WSDL as a language.
Would you please tell me if this is what I should do :
Having an application in C/C++, I must add in it a higher level
"layer" which will be Webservice Provider. My Java application,
which would be deployed in another server, should have Webservice
Consumer / Webservice Client by SOAP, using WSDL as well.
Technically, can you give me some samples about what I can do on the both sides (C++ side, Java side) ?
Thank you a lot!
Edit :
For the ones who downvote, I would appreciate it if they justify their action in a comment.
Otherwise, I would really appreciate the person who tell me if my guessing is right or wrong..., at least.
Use Axis c++ for the server side. Take a close look at the documentation.
If you are done with the server side, you can retrieve the wsdl file at the service URL by adding ?wsdl to the request. This wsdl file can then be used to generate a java stub for the client code using for example wsdl4j.

How to write web services with Java [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I usually write my web services using PHP + Mysql, in a simplified way: reading the POST/GET params, connecting to the MySQL database and finally printing a JSON.
I'd like to check how to do this with a Java server, I've never programmed Java web servers and I'd like to know what should I study to learn to do it
Thanks
I'm supposing here that you have a good understand of java programming.
Fisrtly, I think you should understand java for web.
I recommend this book:
Head First Servlets and JSP
http://www.amazon.com/Head-First-Servlets-JSP-Certified/dp/0596516681/
Then you can learn web services with java:
Java Web Services: Up and Running
http://www.amazon.com/Java-Web-Services-Up-Running/dp/1449365116
Of course, there are many tutorials over the internet as well, but books give you a lot of background information.
I wanna suggest you garner understanding of the two main WebServices Architectures then decide which ones suit your case/use best
REST (GET,PUT,POST,DELETE,PATCH) JAX-RS
http://docs.oracle.com/javaee/6/tutorial/doc/giepu.html
vs SOAP bases JAX-WS
http://docs.oracle.com/javaee/5/tutorial/doc/bnayn.html
Comparing them:
Main differences between SOAP and RESTful web services in java

Categories