web-services

EOFError: end of file reached issue with Net::HTTP

巧了我就是萌 提交于 2020-01-18 19:39:28
问题 I am using ruby-1.8.7-p302/Rails 2.3.11. I am trying to use FQL (Facebook API) to get stats for a link. Here's my code: def stats(fb_post_url) url = BASE_URI + "?query=#{URI.encode("select like_count from link_stat where url=\"#{fb_post_url}\"")}" parsed_url = URI.parse(url) http = Net::HTTP.new(parsed_url.host, parsed_url.port) request = Net::HTTP::Get.new(parsed_url.request_uri) response = http.request(request) response.inspect end And here's the error: EOFError: end of file reached from

EOFError: end of file reached issue with Net::HTTP

假装没事ソ 提交于 2020-01-18 19:36:44
问题 I am using ruby-1.8.7-p302/Rails 2.3.11. I am trying to use FQL (Facebook API) to get stats for a link. Here's my code: def stats(fb_post_url) url = BASE_URI + "?query=#{URI.encode("select like_count from link_stat where url=\"#{fb_post_url}\"")}" parsed_url = URI.parse(url) http = Net::HTTP.new(parsed_url.host, parsed_url.port) request = Net::HTTP::Get.new(parsed_url.request_uri) response = http.request(request) response.inspect end And here's the error: EOFError: end of file reached from

EOFError: end of file reached issue with Net::HTTP

╄→гoц情女王★ 提交于 2020-01-18 19:36:10
问题 I am using ruby-1.8.7-p302/Rails 2.3.11. I am trying to use FQL (Facebook API) to get stats for a link. Here's my code: def stats(fb_post_url) url = BASE_URI + "?query=#{URI.encode("select like_count from link_stat where url=\"#{fb_post_url}\"")}" parsed_url = URI.parse(url) http = Net::HTTP.new(parsed_url.host, parsed_url.port) request = Net::HTTP::Get.new(parsed_url.request_uri) response = http.request(request) response.inspect end And here's the error: EOFError: end of file reached from

how to pass String including comma in CXF service method

落爺英雄遲暮 提交于 2020-01-17 13:58:06
问题 I'm using camel cxf component to call web service. I'm trying to pass XML String, which has a comma (,). when I'm trying to pass XML string it throws below error. Get the wrong parameter size to invoke the out s ervice, Expect size 1, Parameter size 2. Please check if the message body matches the CXFEndpoint POJO Dataformat request. Here is my web service method public String sendSMSRequest( @WebParam(name = "clientRequestXML", targetNamespace = "http://www.openuri.org/") String

Removing XML Java class attribute from SimpleXML code [duplicate]

送分小仙女□ 提交于 2020-01-17 08:47:07
问题 This question already has an answer here : Remove class= attribute (1 answer) Closed 6 years ago . I am using SimpleXML to generate XML in a web service. But what I find with SimplexML is that the resulting code includes an attribute containing the underlying Java class type of the objects being represented. So if I am using a Java ArrayList of a class of mine which is stored in the recentVisualisation element below, I get: <User_Recent_Visualisations> <userNo>025347_17042011_1303046799093<

Calling a C# webservice from the Success function of another Webservice?

拈花ヽ惹草 提交于 2020-01-17 07:53:09
问题 My question is simple. Can you call a C# webservice from the Success function of another webservice? I think that the answer is no. I have a login webservice which is called when a user tries to do something that requires the user to be logged in. This then calls another webservice, when the action is complete it does not go into the onSuccess function. I am assuming that it is not able to do so? Is this correct? Example code, not actual code. webservice.login(onLoginSuccess) function

WCF Named Pipe IO Exception - The pipe has been ended. (109, 0x6d)

巧了我就是萌 提交于 2020-01-17 07:08:05
问题 We have a WCF service which calls several other services through Net.Pipes protocol on start up. The call return a list of string, no Enum or complex objects . Sometimes, we receive the following exception. System.ServiceModel.CommunicationException: There was an error reading from the pipe: The pipe has been ended. (109, 0x6d). ---> System.IO.IOException: The read operation failed, see inner exception. ---> System.ServiceModel.CommunicationException: There was an error reading from the pipe:

WCF Named Pipe IO Exception - The pipe has been ended. (109, 0x6d)

不想你离开。 提交于 2020-01-17 07:08:03
问题 We have a WCF service which calls several other services through Net.Pipes protocol on start up. The call return a list of string, no Enum or complex objects . Sometimes, we receive the following exception. System.ServiceModel.CommunicationException: There was an error reading from the pipe: The pipe has been ended. (109, 0x6d). ---> System.IO.IOException: The read operation failed, see inner exception. ---> System.ServiceModel.CommunicationException: There was an error reading from the pipe:

Storing and retrieving data in the cloud and retrieving via webservices

匆匆过客 提交于 2020-01-17 06:20:10
问题 I am writing some home automation application wextended with an mobile application. The home devices would store their statuses online and should be able to check if there is some kind of command (turn light on, start washing maschine,...) for them to execute. Are there any service providers that would let me store and retrieve information online, possibly without me having to write the webservices and authentication part for the server side? If yes then are there service providers that would

consuming a php webservice in Xamarin PCL

时光总嘲笑我的痴心妄想 提交于 2020-01-17 06:18:30
问题 I have the following webservice in php function w_getLesVisites($idVisiteur) { return json_encode($pdo->getLesVisiteur($idVisiteur)); } In my Xamarin form PCL project I have the following RestService class that aims to consume the phpwebservice and retrieve the data from my MySQL local database public class RestService { HttpClient client; public List<Visite> L_Visites { get; private set; } public RestService() { client = new HttpClient(); client.MaxResponseContentBufferSize = 25600; } public