Questions tagged as 'web-service'

1
answer

Is it bad practice to return ViewModel from a WebService?

It is a bad practice to use the same class that is used as ViewModel , which Action passes to View , to return data from a WebService ? (type those methods marked with [WebMethod] ) I do not think so, but it might give me problems...
asked by 18.03.2014 / 20:49
0
answers

Problem consuming webservice SPC Brasil in PHP

Good afternoon, I've been trying to make a webservice in PHP that works with SOAP, but I've never been successful. What came closest was working with cURL but after a strange message I can not do it anymore. nothing after this message. Does anyo...
asked by 21.11.2018 / 15:49
1
answer

XML parser error with JAXB

I'm trying to make a parser in an XML file provided by a WebService with open data from incumbent senators at Federal Senate The XSD file can be found directly by this link . This xsd does not specify a root element, but many roots element...
asked by 15.11.2018 / 17:05
0
answers

WebService (XML return) - JAVA

Good morning. I'm trying to make some requests for a web service, but I do not have much experience in the subject and I went to see some forums how to make the connection; In summary, I used jax-B to generate the classes and when I make the req...
asked by 13.11.2018 / 15:00
0
answers

How to connect a web service that is in another linux machine?

I have a code in php for access to the bank hosted on a Linux machine, I use the credentials to access it through the terminal. Normally I would have to use: java.net.URL url = new URL(URL); HttpURLConnection httpURLConnection = (HttpURLConnec...
asked by 06.11.2018 / 19:05
1
answer

Consume Webservice SOAP with PHP - Problem with header

I am trying to consume a SOAP webservice using PHP however access returns me message stating that user validation was not done correctly. The XML that I need to send is the following: <soap:Envelope xmlns:soap="http://www.w3.org/2003/05...
asked by 07.11.2018 / 19:40
1
answer

Build Web application-based mobile application

Good night everyone, I am participating in a volunteer project to a group and we have a web application ready, developed in PHP with the Laravel framework. We need a data inclusion form of this application to be created also for mobile environme...
asked by 29.10.2018 / 23:01
0
answers

Receive a json as a Java Servlet parameter

I'm developing an API using java servlet , I'd like to know how to get a JSON in the request body as a parameter and write to a database? Example: { "nome": "José da Silva", "email": "[email protected]", "telefone": "(21) 9...
asked by 24.10.2018 / 22:26
1
answer

Requests not being sent with payload in Python - Moodle

Good afternoon, I have a problem that is already giving a certain headache. The blessed payload of the request is not being sent to the webservice, only to the url. My code looks like this: class Curso: '''Resgata todas as disciplinas mo...
asked by 27.10.2018 / 22:18
0
answers

Use SPC webservices

Hello everyone. I'm trying to get the web service method, but it prints the following result: Array ( [faultcode] => S:Client [faultstring] => org.xml.sax.SAXParseException; cvc-elt.1: Cannot find the declaration of element 'ns76...
asked by 10.10.2018 / 03:49