web-services

Working with fetched request sort descriptors

北城余情 提交于 2020-01-24 12:33:30
问题 I have problem with my sort descriptor. I am fetching a ranking of a football club. This is how my webservice gives the data back. "ranking": [ { "type": "competitie", "position": "1", "name": "Club Brugge", "gamesPlayed": "10", "gamesWon": "6", "gamesTied": "4", "gamesLost": "0", "goalsPos": "25", "goalsNeg": "12", "goalsDiff": 13, "points": "22" } Here is my fetch request. - (void)getKlassement // attaches an NSFetchRequest to this UITableViewController { NSFetchRequest *request =

Working with fetched request sort descriptors

那年仲夏 提交于 2020-01-24 12:32:57
问题 I have problem with my sort descriptor. I am fetching a ranking of a football club. This is how my webservice gives the data back. "ranking": [ { "type": "competitie", "position": "1", "name": "Club Brugge", "gamesPlayed": "10", "gamesWon": "6", "gamesTied": "4", "gamesLost": "0", "goalsPos": "25", "goalsNeg": "12", "goalsDiff": 13, "points": "22" } Here is my fetch request. - (void)getKlassement // attaches an NSFetchRequest to this UITableViewController { NSFetchRequest *request =

Enable PUT, DELETE verbs with .asmx

喜你入骨 提交于 2020-01-24 12:13:07
问题 I'm trying to make my webservice(.asmx) to be able to respond to PUT and DELETE methods, but it always returns a 404 error. I managed to get it to respond to GET method, by adding the following to my web.config: <system.web> <webServices> <protocols> <add name="HttpGet"/> <add name="HttpPost"/> </protocols> </webServices> </system.web> Now, what is it that I have to do in order to get it to respond to PUT and DELETE methods? I've already tried adding things like the code below(and lots of

Maven in Eclipse project: package javax.ws.rs does not exist

让人想犯罪 __ 提交于 2020-01-24 12:05:11
问题 In Eclipse, when I go to myProject -> right click -> Run As -> Maven build, I am getting multiple errors in the console outlining that certain packages does not exist, like: javax.ws.rs does not exist javax.ws.rs.core does not exist javax.servlet does not exist javax.servlet.http doest not exist Although in my pom.xml, I have provided those dependencies: <dependency> <groupId>javax.ws.rs</groupId> <artifactId>javax.ws.rs-api</artifactId> <version>2.0.1</version> </dependency> <dependency>

Maven in Eclipse project: package javax.ws.rs does not exist

笑着哭i 提交于 2020-01-24 12:04:08
问题 In Eclipse, when I go to myProject -> right click -> Run As -> Maven build, I am getting multiple errors in the console outlining that certain packages does not exist, like: javax.ws.rs does not exist javax.ws.rs.core does not exist javax.servlet does not exist javax.servlet.http doest not exist Although in my pom.xml, I have provided those dependencies: <dependency> <groupId>javax.ws.rs</groupId> <artifactId>javax.ws.rs-api</artifactId> <version>2.0.1</version> </dependency> <dependency>

WCF Service contract to be both XML and Json serialized

只谈情不闲聊 提交于 2020-01-24 10:38:14
问题 How can I create the service contract to be in XmlSerializerFormat as well as WebMessageFormat.Json within a WCF RESTful service. What I need is to call the "CallADSWebMethod" operation contract from code behind of ASP.Net 1.1 which needs to be XML serialized and from jQuery ajax which is Json serialized. SERVICE CONTRACT [ServiceContract, XmlSerializerFormat] public interface IService { [OperationContract, XmlSerializerFormat] [WebInvoke(UriTemplate = "/CallADSWebMethod", Method = "POST",

SOAPUI DateFormat error

馋奶兔 提交于 2020-01-24 09:55:48
问题 I am new here, sorry if I make any mistake posting my question. I am using SOAPUI to test a web service. Inside the Soap message, I need to add an StartDate and EndDate but I am getting as a error (Input string was not in a correct format) I been trying several DateFormat that I found over the internet by I still getting the same error. Here you have the SOAPUI parameters. Thanks <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/">

SOAPUI DateFormat error

…衆ロ難τιáo~ 提交于 2020-01-24 09:55:06
问题 I am new here, sorry if I make any mistake posting my question. I am using SOAPUI to test a web service. Inside the Soap message, I need to add an StartDate and EndDate but I am getting as a error (Input string was not in a correct format) I been trying several DateFormat that I found over the internet by I still getting the same error. Here you have the SOAPUI parameters. Thanks <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/">

IONIC | SOAP based web-service | exception: 'Access-Control-Allow-Origin' missing

北城以北 提交于 2020-01-24 09:29:42
问题 I am developing mobile application using IONIC framework and I want to access SOAP based web-service, i have found this TUTORIAL. I am accessing publicly deployed soap based web-service. I have tested the mentioned SOAP based web-service in SOAP-UI and i am able to access the web-service, but when i am accessing the same web-service from ionic framework, it throws an exception: Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://www.webservicex

IONIC | SOAP based web-service | exception: 'Access-Control-Allow-Origin' missing

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-24 09:29:26
问题 I am developing mobile application using IONIC framework and I want to access SOAP based web-service, i have found this TUTORIAL. I am accessing publicly deployed soap based web-service. I have tested the mentioned SOAP based web-service in SOAP-UI and i am able to access the web-service, but when i am accessing the same web-service from ionic framework, it throws an exception: Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://www.webservicex