web-services

Can't get Access-Control-Allow-Origin header to work as I expected

孤人 提交于 2020-01-06 19:51:19
问题 There are a lot of questions on this subject, but I still can't seem to resolve my issue. I have a game that I'm trying to get working with HTML 5 in Chrome. Link here. The game is written using libgdx and I'm posting json data from my app engine hosted back end. I've done quite a bit of reading and I think I understand the issue with cross domain access, I also think I understand how to resolve it but can't. The full error is XMLHttpRequest cannot load http://1-1-51.wordbuzzweb.appspot.com

angular2 - cannot get data from web service

可紊 提交于 2020-01-06 19:39:28
问题 Learning typescript & angular2 for the first time. I'm creating a generic service that just does GET and POST so that I can use it in the entire app. I've based my app on Angular's example from Dynamic Forms My issue is that my "QuestionService" is using a "ServerService" but it is complaining that this.ServerService.getData is not a function isnt a function. ServerService import { Injectable } from '@angular/core'; import { Http, Response } from '@angular/http'; import { Observable } from

angular2 - cannot get data from web service

元气小坏坏 提交于 2020-01-06 19:39:02
问题 Learning typescript & angular2 for the first time. I'm creating a generic service that just does GET and POST so that I can use it in the entire app. I've based my app on Angular's example from Dynamic Forms My issue is that my "QuestionService" is using a "ServerService" but it is complaining that this.ServerService.getData is not a function isnt a function. ServerService import { Injectable } from '@angular/core'; import { Http, Response } from '@angular/http'; import { Observable } from

How to get the configured HTTP and HTTPS port numbers in server.xml from Java code at runtime

自古美人都是妖i 提交于 2020-01-06 18:04:03
问题 In our project, we have implemented SOAP webservices using Apache CXF framework. Clients used to request the server for some command execution. The request consists of host, port and the protocol used for connection. If the client uses a HTTPS configured port number and specify the protocol as HTTP, then we get a connection refused - socket exception as expected. But, I need to throw a proper error message like "Unable to connect to host "XYZ" with port "ABC" using http protocol". For this, I

ERROR during invoking WebService - could not initialize proxy - no Session

被刻印的时光 ゝ 提交于 2020-01-06 16:55:07
问题 Application: Spring + Hibernate + Apache CXF - idea simple say hello service which is taking one param - id of object in database and return text "Hello: " + person.getName(); Here are some code: @Entity public class Person { @Id @GeneratedValue(strategy=GenerationType.AUTO) private long id; private String login; private String email; //getters and setters } PersonDAO: public interface PersonDAO { public void savePerson(Person person); public Person getPerson(long id); } PersonDAOImpl:

ERROR during invoking WebService - could not initialize proxy - no Session

眉间皱痕 提交于 2020-01-06 16:54:33
问题 Application: Spring + Hibernate + Apache CXF - idea simple say hello service which is taking one param - id of object in database and return text "Hello: " + person.getName(); Here are some code: @Entity public class Person { @Id @GeneratedValue(strategy=GenerationType.AUTO) private long id; private String login; private String email; //getters and setters } PersonDAO: public interface PersonDAO { public void savePerson(Person person); public Person getPerson(long id); } PersonDAOImpl:

Trouble calling web service using JQuery

独自空忆成欢 提交于 2020-01-06 15:47:42
问题 I'm having trouble calling a web service from JQuery. The url I'm accessing is: http://www.deeptraining.com/webservices/weather.asmx?WSDL which have an operation called GetWeather . I'm using Firefox and I get the following message: Firefox console: [19:43:29.849] OPTIONS http://www.deeptraining.com/webservices/weather.asmx?op=GetWeather [HTTP/1.1 200 OK 371ms] Alert: undefined parsererror If get code 200 , it means the request was successfully sent? What am I doing wrong? What would be the

How do i Configure the token based authentication of Magento 2.0 SOAP API object in .Net application

廉价感情. 提交于 2020-01-06 15:29:50
问题 i am trying to consume the newly introduced Magento 2.0 SOAP API in .Net application. but as per the newly structured endpoints wsdl changes,function calling execution are little bit different from the earlier version.. Is Anyone has hands on in consumption and calling of web API Soap object function of Magento 2.0 in .Net application?? if yes can you provide some snippet code of the same. Thanks in advance! 回答1: I finally got the Magento 2 SOAP API and .NET talking to each other. Here is the

How to add or manipulate http header in a webservice call in java

匆匆过客 提交于 2020-01-06 15:02:26
问题 There is a requirement to add a new http header key value pair in a soap request. Something like below. HTTP/1.1 200 OK Cache-Control: no-cache Pragma: no-cache Content-Type: text/xml; charset=utf-8 New-Key: Some dynamic value <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Body> How can I add a new key value pair (New-Key: Some dynamic value) in http header while making a soap request? Value will later get extracted by server from http header. As a

Help understanding web services

末鹿安然 提交于 2020-01-06 14:44:11
问题 I know what is soap,wsdl and uddi. But what is the relation between them and how to establish the relationship in code. It will be good if someone can post a sample code which has all of these. Thanks in advance. 回答1: SOAP is the XML-based protocol used to send and receive web service messages. WSDL is the XML-based language used to describe the format of the messages, and the details of the interaction with the service. UDDI is not used very much. It sounded like a good idea at the time it