web-services

What is the best way of connecting to a remote server/database to retrieve data from the IPhone

ぃ、小莉子 提交于 2020-01-11 07:05:27
问题 I am currently writing an app which will need to access a remote server/database to read/write values. What is the best technology to use? I've heard that there is no support for XML Webservices...does this mean a ASP.NET Webservice will not be easy to access? Thanks. 回答1: It's not true that there's no support for XML Webservices, so a webservice is definitely the easiest way to do this. Obj-c's XML parsing stuff is quite hardcore, so hit this link for a couple of neat libxml2 wrappers: http:

How to handle escape characters (pipe |) in URL (Spring, REST, CXF)?

跟風遠走 提交于 2020-01-11 06:24:44
问题 I am using Spring, CXF, Tomcat for developing web services. I have a problem sending characters such as pipes(|) in the URL? For example: http://localhost:9080/address/v1/countries/\ | throws a 500 error, is there a way to handle it and throw custom error code like 404 or even 400? I tried setting the URIEncoding="UTF-8" on the connector object in server.xml in tomcat. But it did not fix it. I also tried adding filter-mapping in the web.xml in my application like this:- <filter> <filter-name

web service request call SOAP request missing empty parameters

 ̄綄美尐妖づ 提交于 2020-01-11 06:09:33
问题 I'm new to both web services and C# so please forgive me if my question is too simple. I've searched around but cannot find an answer -- at least one based on my keywords. I am trying to call a web service via C# (Visual Web Developer 2010 Express) but I get an error back as a response. When I call the same web service via soapUI I do not get an error. When I compare the SOAP request from C# against the SOAP request from soapUI the C# SOAP request is missing an intentionally empty parameter

Throwing SoapException in .Net web service

这一生的挚爱 提交于 2020-01-11 06:04:53
问题 EDIT: I have scoured high and low for an answer to this and nobody seems to be getting a similar issue. It seems to me that throwing the SoapException should format the response as required, not with just the exception message. Any help gratefully received. I am trying to return a SoapException that should look something like this (example): HTTP/1.1 500 Internal Server Error. Date: Wed, 26 May 2004 05:12:08 GMT Server: Microsoft-IIS/6.0 X-Powered-By: ASP.NET X-AspNet-Version: 1.1.4322 Cache

How to throw exception from spring batch processor process() method to Spring batch job started method?

旧街凉风 提交于 2020-01-11 05:42:08
问题 I am having the Web-service method to start spring batch job.If any exception occurred in spring batch processing control is coming back till processor process method. But i need the controller to came back to web-service method there i have to catch and code to email that exception. Web-service method: public void processInputFiles() throws ServiceFault { String[] springConfig = { CONTEXT_FILE_NAME }; ApplicationContext context = new ClassPathXmlApplicationContext(springConfig); try {

how to deploy a jax-ws service to eclipse or tomcat?

£可爱£侵袭症+ 提交于 2020-01-11 05:37:09
问题 As a web services beginner, I have tried for 2 weeks to get a hello world webservice working with maven, eclipse and tomcat. I gave up trying to get any of the code/wsdl generators to work, and I followed this tutorial http://myarch.com/create-jax-ws-service-in-5-minutes to hand code an example, which is brilliant. This results in 4 class files and a WSDL file. So my stupid question is how to "run" the service in eclipse and/or on tomcat? I tried just deploying them as a webapp, but no joy -

Keeping HTTP Basic Authentification alive while being redirected

牧云@^-^@ 提交于 2020-01-11 05:20:06
问题 We are using web service with basic authentication. It all worked all fine, till owners of web service implemented balancing service. Which is simply redirects requests to different instances of web service. The problem is that after being redirected basic authentication fails. There is "request authentication credentials was not passed" exception. Additional info: We have to create request manually. var req = (HttpWebRequest)WebRequest.CreateDefault(new Uri(Settings.Default

Keeping HTTP Basic Authentification alive while being redirected

醉酒当歌 提交于 2020-01-11 05:20:05
问题 We are using web service with basic authentication. It all worked all fine, till owners of web service implemented balancing service. Which is simply redirects requests to different instances of web service. The problem is that after being redirected basic authentication fails. There is "request authentication credentials was not passed" exception. Additional info: We have to create request manually. var req = (HttpWebRequest)WebRequest.CreateDefault(new Uri(Settings.Default

Is RESTful faster than SOAP? and when to use one of them?

好久不见. 提交于 2020-01-10 19:40:33
问题 Duplicate: This is a duplicate of "What are the best uses of REST services?" and many others. Please close it. In web development: Should i learn RESTful services very well and make all my future projects using it? Is it faster than SOAP services? When to use which? Are there certain cases I should prefer one of them? 回答1: In my experience, SOAP adds some overhead that you can avoid by making a RESTful service. That being said, in your decision, you should consider your audience. If you are

Practical usecase based difference between JAX-RPC vs JAX-WS vs JAX-RS web services

你说的曾经没有我的故事 提交于 2020-01-10 15:40:31
问题 I know there are many documents available on net which mostly describes technical difference. But I'm rather interested to know what are the common use cases where you prefer one specific type over other any why ? Are those preferences because integration patterns/products support particular type ? 回答1: Thanks for answer. However practical use case difference and when to use what. Both, JAX-WS and JAX-RS have standard implementations. I have come up with the following differences: RESTful