Questions tagged as 'web-service'

2
answers

cURL - Consuming webservice with PHP

I have the following code: $url_data = "http://localhost:8080/sistema/webservice/agenda/consultarHorariosDisponiveis"; $ch = curl_init(); curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/x-www-form-urlencoded')); curl_seto...
asked by 19.07.2016 / 14:37
2
answers

How to print from a web application to a local printer with C #

I need to schedule some of the local printing features on the web where texts and commands are sent to a specific device without user interaction . For example, labeling Zebra and Argox equipment and printing non-tax coupons on Bematech MP2...
asked by 13.09.2017 / 13:04
1
answer

Accentuation problem when consuming WebService on Windows Server

   Correction I'm having an accent issue when consuming WebService on Windows Server. I have apache-tomcat-7.0.63 installed on windows server 2008, and as SGB, PostGres 9.4 and with Java 8. The error happens when I run out of NetBeans. That...
asked by 01.02.2016 / 13:01
2
answers

Consuming Moodle Web Service

I'm trying to consume the moodle webservice, following a js / rest example that I found in github, I created a test.php with the code below (changing the domainname and token), but when I call the page I do not receive anything in the variable r...
asked by 14.05.2015 / 18:45
1
answer

Accessing Webservice over Android - KSOAP2

I'm creating an Android APP and I have to connect to my company's web service to make the login system, I'm using the KSOAP2 3.3.0 lib. The path to my WS is for example as: link My problem that happens: 09-04 10:57:52.835: W/System.err...
asked by 04.09.2014 / 16:24
2
answers

Simultaneous calls in RESTful service

Hello, I am having doubts on how to make fun calls (about 100) simultaneous on a REST service. The code example I have is the following: using (var http = new HttpClient { BaseAddress = new Uri("some url") }) { using (var httpContent =...
asked by 13.09.2017 / 05:52
1
answer

How to persist a record in the webservice database through restful Java?

I already have a method that takes a json and persists in the Mysql database. I can test it by the interface created by Netbeans, which has a field for inserting a json, but how do I, within a java application, make an http request by passing js...
asked by 06.09.2015 / 07:06
1
answer

POST Spring Data REST does not work with relationships

I'm having a project using Spring Boot and Spring Data Rest to serve a Rest API. When I'm serving an entity without relationships, it works without problems. The problem is when I use an entity with relationships. I can not add new entitie...
asked by 28.05.2016 / 16:18
1
answer

Keep connection open in webservice php

I am building a simple webservice and PHP + JSON where I have 2 tables and intend to carry out CRUD operations. It is possible that the medium-term webservice consumed by many devices at the same time, which in my opinion can lead to many concur...
asked by 03.02.2015 / 13:18
3
answers

How to test the Service layer in a web service application, using mockito and junit

I have a class of services that will receive a dependency injection of an object responsible for the persistence layer. In this service class are all my methods that will respond to the REST call of the web service. The problem is: I would...
asked by 06.09.2014 / 17:12