web-services

The underlying connection was closed: An unexpected error occurred on a receive

耗尽温柔 提交于 2020-01-15 03:07:32
问题 This is a follow up question from here: linq issue with creating relationships in regards to the answer I recieved. Im not sure what has happend but I get an error: The underlying connection was closed: An unexpected error occurred on a receive. And this is where the exception happens: string uriGroup = "http://localhost:8000/Service/Group"; private void ListGroups_Click(object sender, RoutedEventArgs e) { XDocument xDoc = XDocument.Load(uriGroup); // this line var groups = xDoc.Descendants(

geoIP find country from ASP.NET

落爺英雄遲暮 提交于 2020-01-14 22:48:29
问题 From an ASP.NET page I'm able to retrieve the client's IP address (at least the apparent one). I would like to know if there is a free service that I can access from code-behind, that will return the country (no need for city) when queried with the IP. I can't make do with web http based services where you have to enter the IP manually, I have thousands of visits per day! Any clue welcome. 回答1: Yes, Check It Out! Good luck! EDITED: Since you did not specify a language I went ahead and created

geoIP find country from ASP.NET

[亡魂溺海] 提交于 2020-01-14 22:47:05
问题 From an ASP.NET page I'm able to retrieve the client's IP address (at least the apparent one). I would like to know if there is a free service that I can access from code-behind, that will return the country (no need for city) when queried with the IP. I can't make do with web http based services where you have to enter the IP manually, I have thousands of visits per day! Any clue welcome. 回答1: Yes, Check It Out! Good luck! EDITED: Since you did not specify a language I went ahead and created

Is there an advantage in using SOAP UI over REST-assured to automate REST Services for CI

怎甘沉沦 提交于 2020-01-14 19:21:32
问题 I have to automate REST API testing in my project and integrate it in to existing CI in jenkins. I am about to start coding using REST-assured.However I happened to see SOAP UI REST tutorial and understand that there is a maven plugin in SOAP UI to help jenkins integration. Before I progress, just wanted to know if there is an obvious advantage to using SOAP UI over Rest-assured. I have to complete the automation of around 30 requests with complex JSON responses in about a month - including

Connect web server with database and J2ME

强颜欢笑 提交于 2020-01-14 16:35:51
问题 I do a mobile application which the user can use it get the required place’s number. The user must select the appropriate city and category to get the place’s information. All the information stored in the database. What I want to know that .. 1) What is the benefit from the web service? 2) How to connect the web service and MySQl database? 3) How to connect the web service and mobile application to get the information from the database? 回答1: 1) Benefits. You didn't mentioned other options,

Pattern/Strategy for creating BOs from DTOs

时间秒杀一切 提交于 2020-01-14 14:53:27
问题 I like the approach of having property bag objects (DTOs) which define the interface to my server, but I don't like writing code like this: void ModifyDataSomeWay(WibbleDTO wibbleDTO) { WibbleBOWithMethods wibbleBO = new WibbleBOWithMethods(); wibbleBO.Val1 = wibbleDTO.Val1; wibbleBO.Val2 = wibbleDTO.Val2; } This copying code is quite laborious to write. If the copying code is unavoidable, then where do you put it? In the BO? In a factory? If it is possible to manually avoid writing the

How to send HTML form RESTfully?

南笙酒味 提交于 2020-01-14 14:46:09
问题 I have a URI for a collection of resources called 'facts', and URIs for each 'fact' resource in that collection. The form for creating a new 'fact' should be requested with a GET, I believe, but I'm having trouble deciding what URI it should be made to. A GET to the collection URI should return a list of the 'fact' resource URIs. Each 'fact' URI should return its contents as a response to GET. The actual 'fact' creation would be a POST (or PUT, depending on the situation), of course. I see a

How to get started node-soap

左心房为你撑大大i 提交于 2020-01-14 13:18:27
问题 I try to make soap-server with node.js using node-soap. I have wsdl like <definitions name="HelloService" targetNamespace="http://www.examples.com/wsdl/HelloService.wsdl" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://www.examples.com/wsdl/HelloService.wsdl" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <message name="SayHelloRequest"> <part name="firstName" type="xsd:string"/> </message> <message name="SayHelloResponse"> <part

How to get started node-soap

ぃ、小莉子 提交于 2020-01-14 13:17:27
问题 I try to make soap-server with node.js using node-soap. I have wsdl like <definitions name="HelloService" targetNamespace="http://www.examples.com/wsdl/HelloService.wsdl" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://www.examples.com/wsdl/HelloService.wsdl" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <message name="SayHelloRequest"> <part name="firstName" type="xsd:string"/> </message> <message name="SayHelloResponse"> <part

How to call a third party webservice using Apache camel using cxf componnet

安稳与你 提交于 2020-01-14 13:14:32
问题 I went through the example on Apache camel website and camel in action and both focus heavily on exposing a webservice. The only example I found online does not work. I am trying to access a third party webservice wsdl - http://www.webservicex.net/CurrencyConvertor.asmx?WSDL This service has a operation/method that calculates the currency rate. The operation name is "ConversionRate". I defined the route like this - <?xml version="1.0" encoding="UTF-8"?> <!-- Configures the Camel Context-->