Questions tagged as 'web-service'

1
answer

Difference between HttpClientBuilder.create (). build (), HttpClients.createDefault () and DefaultHttpClient

When creating an Http connection using: HttpClientBuilder.create().build(), HttpClients.createDefault() or: DefaultHttpClient . What's the difference? private static CloseableHttpClient httpClient = HttpClientBuilder.c...
asked by 23.01.2015 / 14:16
2
answers

Parameter name size influences the http request time?

Does an http request for a service have its performance (bandwidth consumption / internet / time) changed if the parameter names are large? Example. Request POST with the following parameters { "IdUsuario": 30735209, "IdProdutoBase": 2, "...
asked by 19.11.2014 / 17:12
1
answer

java.lang.NullPointerException Error in JDBC Connection with WS + Postgres

I'm creating a WS that connects to a PostgreSQL DB and performs a query on a single table. I try to run it locally, but the problem is when I run the application it gives the following error:    HTTP 500 Status - Internal Server Error   ...
asked by 04.09.2014 / 16:40
4
answers

Consume values from a webservice

I do not have any knowledge of the use of webservice , and I need to use one now to consume data from a database (Usually I would fetch the data direct from the database, but in this case the admin did not authorize, the only way was to ma...
asked by 22.07.2014 / 11:28
1
answer

Web Service Testing with Arquillian

I'm doing a unit test class and I'm using Arquillian because of the CDI, in this case I'm testing a Web Service for authentication of company users. Here is the source of the test class: @RunWith(Arquillian.class) public class UsuarioWebServic...
asked by 12.03.2014 / 19:11
2
answers

Insertion into the database through Webservice

Good evening, I know very little about Webservice . And, through tutorials, I was able to create one. Content has been taken from this site: Creating Web- Service The query is done successfully, but now I need the user to enter s...
asked by 11.03.2015 / 01:13
2
answers

How to send JSONObject to a Web Service?

I'm trying for the first time to consume a Web Service in my Android application, sending data in JSON format. To accomplish the task I have a class to make the connection. public class ConexaoHttpJson { public static JSONObject enviarSoli...
asked by 13.05.2014 / 20:47
1
answer

What is the difference between SOAP and NuSOAP?

I'm having trouble understanding the process of creating a WebService in PHP. I created a server which makes the following call: <?php require_once "lib/nusoap.php"; $soap = new soap_server; $soap->configureWSDL('WS-WebCodeF...
asked by 06.09.2017 / 15:41
2
answers

Replication between MySql and Sqlite (E vice versa)

I'm developing a system that integrates a MySQL database with an Android application (via a webservice ). I can already connect, pass data, change them in the bank through the App and things like that. My problem is being the moment that I n...
asked by 23.07.2015 / 05:10
1
answer

How to pass a list of an object containing another object (composition) to a JSON

I have two classes: Contact and Operator. A in the Contact class I have a composition: private Operadora operadora ; I have a DAO where I have a class that returns a list of Contacts, in the console the list is displayed like this: [Cont...
asked by 14.09.2015 / 18:53