http « Web Service « Spring Q&A





1. Spring MVC without HTTP requests    stackoverflow.com

I need to create a system oriented around Methods where providers can register for the Methods they handle and consumers can do two things (for now) - either get Metadata for ...

2. How to get exact request (path/params) to be able to redirect back to same place    stackoverflow.com

I have spring intrecpetor (implements org.springframework.web.servlet.handler.HandlerInterceptorAdapter), that redirects to login facebbok page, after that I need to redirect to exact same location. What's the best / fail proof / way to do ...

3. Spring Framework, enable PUT method    stackoverflow.com

I got a problem with capturing PUT request sent to server. These are my methods:

@RequestMapping(method= RequestMethod.GET)  
public String getCity(@PathVariable(value="cid") String cid, @RequestParam(value="State") Integer state,  Model model) {
 ...

4. Configuring an HTTP proxy in a Spring web app    stackoverflow.com

I've been searching around for a proper way to configure an HTTP proxy in a Spring web application. Unfortunately, each time the results I get are about AOP proxies and not ...

5. Spring 3 REST with XML gives "406 Not Acceptable"    stackoverflow.com

I'm trying to implement REST Remoting using Spring 3 but I can't get through "406 Not Acceptable" error... I try to remote 1 service that is returning an application/xml content. Everytime ...

6. WCF WebService with Spring.NET could not find base address scheme http    stackoverflow.com

I search the entire internet to solve this problem and although I found very similar problems, none of them were my own. Here's the deal: I want to configure a WCF Web ...

7. Best practices about throwing exceptions from a remote service exposed via Spring's HTTP Invoker?    stackoverflow.com

Besides RemoteException and all of his subclases thrown for non business logic problems, what is the right way to handle business related exceptions? Is it OK to subclass RuntimeException in those ...

8. RestTemplate, PUT method, and Expect: 100-CONTINUE    stackoverflow.com

I'm a newbie to resttemplate and how it is backed by Apache http classes. So at first I thought all I needed to do was manually create http headers with Expect: ...

9. Spring REST DELETE example error    stackoverflow.com

I want to implement Spring REST methods. I tried Get and it works:

@RequestMapping(value = "{systemId}", method = RequestMethod.GET)
    public
    @ResponseBody
    Configuration getConfigurationInJSON(HttpServletResponse ...





10. passing parameter in http header with REST service    stackoverflow.com

Right now i'm using java to build rest service, and trying to use spring security to securing my service. I have a few parameter that server needs to process the service ...

11. Simplest way to make HTTP request in Spring    stackoverflow.com

In my Spring web application I need to make an HTTP request to a non-RESTful API, and parse the response body back as a String (it's a single-dimension CSV list). I've ...

12. Chunked HTTP Responses in a Spring based web application    stackoverflow.com

We are building a framework atop the Spring framework in Java. We want to be able to add support for HTTP Chunked Responses. Does spring have an API for this? What we ...

13. Server did not recognize the value of HTTP Header SOAPAction: .    forum.springsource.org

Server did not recognize the value of HTTP Header SOAPAction: . I have upgraded Spring framework (SF), Spring Integration (SI), Spring Web Services (SWS), Spring Security (SS) to 3.0.5, 2.0.1, 2.0.0 ...

14. spring-ws 2.0, SAOPAction empty, HTTP header POST /    forum.springsource.org

spring-ws 2.0, SAOPAction empty, HTTP header POST / Hello, i need to consume wcf web service. https + wsse (username token, password plain text). On call i get (wcf) exception : ...

15. JaxWsPortProxyFactoryBean and HTTP Proxy    forum.springsource.org

JaxWsPortProxyFactoryBean and HTTP Proxy Hi folks, In a project I'm working we defined our JaxWs port fine using the JaxWsPortProxyFactoryBean, and it's all working well. Now, we need to move the ...

16. RESTful HTTP error reporting with Spring MVC    forum.springsource.org

RESTful HTTP error reporting with Spring MVC I have a Spring MVC controller whose action methods, declared as @ResponseBody, return Java objects that are converted to JSON data during normal operation. ...





17. Are HTTP Message Converters suitable for web applications?    forum.springsource.org

Are HTTP Message Converters suitable for web applications? I have used both ViewResolver mechanism and HttpMessageConverter mechanism to generate HTTP response in Spring MVC applications. However, I found that ViewResolvers give ...

18. Generic Payload Messaging through http    forum.springsource.org

Hello fellow devs! I want to use spring-integration-http to transport a message with a object payload through different jvm's, pretty much in unidirectional fashion like this: Code: (source)channel-->http-outbound-gateway-->http-inbound-gateway-->(target)channel-->service-activator But apparently (this ...

19. HTTP 406 error with REST    forum.springsource.org

Hello, I am trying to develop my first REST application with Spring Web. It seems could that is an easy task but an HTTP 406 error is returned when I get ...

21. RestTemplate handles http 403 forbidden differently    forum.springsource.org

RestTemplate handles http 403 forbidden differently Hi I'm testing some http authorization using the RestTemplate. Using a HTTP GET request to a forbidden resource, I get a HttpClientErrorException from the DefaultResponseErrorHandler: ...

22. Supplying additional http-parameters for JAX-WS    forum.springsource.org

Hi folks, we're accessing web-services as described in "19.5.8 Accessing web services using JAX-WS" (http://static.springsource.org/sprin.../remoting.html) However, we need to add an extra http-header to each service call. The value varies from ...

23. HttpRequestHandlingMessagingGateway Support for Multiple HTTP Methods/Same Endpoint    forum.springsource.org

I have two different messaging configurations that are both kicked off by HttpRequestHandlingMessagingGateway via http:inbound-gateway. Both of them use the same value for the name of the gateway endpoint URL. However, ...

24. JaxRpcPortProxyFactoryBean works with file:// but not http:/    forum.springsource.org

JaxRpcPortProxyFactoryBean works with file:// but not http:/ I'm using JaxRpcPortProxyFactoryBean to access a web service, and with the wsdlDocumentUrl set to file:///path/to/file.wsdl it works as expected. But whenever I try to ...

25. Writing to a file from service bean as HTTP invoker    forum.springsource.org

Writing to a file from service bean as HTTP invoker Hi, If HttpInvokerServiceExporter is used to export service bean A as HTTP invoker how can A write to a local file ...

26. Http client posting (xml) to remote service    forum.springsource.org

I was hoping to utilise Spring remoting-http for posting xml to an external service, however this only seems to support serialised objects. There's probably a good reason for this but does ...

27. WSDL Faults - HTTP Error Codes    forum.springsource.org

WSDL Faults - HTTP Error Codes Hi all I wrote a WSDL with a binding soap over http. In the WSDL I have defined fault elements. When I have now an ...

28. service invoked remotely by another service by http invoker : classloader problem    forum.springsource.org

service invoked remotely by another service by http invoker : classloader problem Hello, I use http Invoker remoting technology to access services remotely. I have a service that invoke remotely another ...

29. Need to modify web service app to accept HTTP auth... help :)    forum.springsource.org

Mar 29th, 2007, 10:33 PM #1 ciparis View Profile View Forum Posts Private Message Junior Member Join Date Mar 2007 Posts 8 Need to modify web service app (dao?) to accept ...

30. Consuming custom "web services" i.e XML over HTTP    forum.springsource.org

Consuming custom "web services" i.e XML over HTTP Hi All, I need to write a java client to consumer some services which are exposed using a "proprietary" XML protocol over HTTP. ...

31. Accessing HTTP-remoting service from non-spring client    forum.springsource.org

Accessing HTTP-remoting service from non-spring client I have a server-side app assembled using spring, which exposes a service via HTTP-based remoting. However, the clients that access the service may not be ...

32. MessageDispatchServlet - WSDL and any Http Request    forum.springsource.org

MessageDispatchServlet - WSDL and any Http Request Hi, I am using MessageDispatcherServlet to map all requests coming in I am able to access dynamically generated wsdl fine but when I tried ...

33. Using HTTP GET in Web services    forum.springsource.org

Using HTTP GET in Web services Hi all, I have created a web service using spring-ws. I have tested it for example with SOAPUI and it works fine. It uses HTTP ...

34. Spring WS requestElement vs HTTP request    forum.springsource.org

Spring WS requestElement vs HTTP request Hello there, We use Spring WS as poor as it can be. We have a simple configuration calling an xsdBuilder and an endpoint object. (class: ...

35. Spring-WS ECHO sample : http error 500 in WSDL request    forum.springsource.org

Spring-WS ECHO sample : http error 500 in WSDL request Hello. I'm new in Spring-WS, I'm trying to run echo sample from spring-ws 1.5 distribution and I'm having few troubles. I've ...

36. Server did not recognize the value of HTTP Header SOAPAction    forum.springsource.org

Server did not recognize the value of HTTP Header SOAPAction Hi, I'm getting an error when trying to invoke a .NET web service. This is my bean config: Code:

37. standalone JAX-WS and JDK6 HTTP server    forum.springsource.org

standalone JAX-WS and JDK6 HTTP server Hi, I'm trying to expose a Web Service using JAX-WS. As my application must be light I want to use the JDK6's embedded HTTP server. ...

38. HTTP GET services support    forum.springsource.org

This might be a really stupid question, but here goes anyway. Is there a simple way to send HTTP GET request and get back XML in JDOMResult in spring-ws? I mean, ...

39. HTTP 401 with JaxRpcPortProxyFactoryBean when accessing WSDL    forum.springsource.org

HTTP 401 with JaxRpcPortProxyFactoryBean when accessing WSDL I have a JAX-RPC service I am attempting to consume with Spring. The web service itself sits behind HTTP Basic Authentication. Using this Spring ...

40. HTTP remote service error - IO Exception    forum.springsource.org

HTTP remote service error - IO Exception Hi, I have a remote service deployed in weblogic server and that service is invoked remotely using Spring HTTP from a stand alone java ...

41. Inbound HTTP Web Service adapter?    forum.springsource.org

The initial support for inbound WS is now available. We have the following two classes: SimpleWebServiceInboundGateway MarshallingWebServiceInboundGateway These are available in the nightly build (and will be released with version 1.0.2). ...

42. Remote service call fails when the client is behind HTTP Proxy.    forum.springsource.org

Remote service call fails when the client is behind HTTP Proxy. I have a service deployed in a Remote server. The client machine connects to the internet thorugh HTTP proxy. The ...

43. HTTP + XML w/ no SOAP    forum.springsource.org

HTTP + XML w/ no SOAP I'm new to Spring WS and evaluating it for use in a project. I have a fairly simple XML protocol between client and server and ...

44. ws-client Empty SoapAction http header    forum.springsource.org

ws-client Empty SoapAction http header Hi. I'm creating a ws client using 1.5.6. I'm using to wss4j to secure the message and I've got a MessageCallback handler that I use in ...

45. Spring 3.0M3 RESTful service - return only HTTP Status, no view    forum.springsource.org

Hi, i have an simple controller where i only want to return the http status and no view. Code: @Controller public class FileController @RequestMapping(value = "/put/**/{fileName}") public void putFile(@PathVariable(value = "fileName") ...

46. Http Service    forum.springsource.org

Http Service Hello, I am just starting to use spring-integration so forgive me if the question is too obvious. I read the reference manual however did not find the details I ...

47. HTTP BASIC Authorisation with Spring-WS    forum.springsource.org

HTTP BASIC Authorisation with Spring-WS Hello, I've got the feeling to ask a dummy question, however, I'm wondering how I could configure a JAX-WS Service implemented with Spring-WS? I'm using Spring-WS ...

48. Problems with exporting standalone web services using JAX-WS and JDK 1.6 HTTP server    forum.springsource.org

Problems with exporting standalone web services using JAX-WS and JDK 1.6 HTTP server Hello, Can anybody tell me what's wrong here - that would be great - thx. I'm trying to ...

49. RestTemplate and HTTP Caching    forum.springsource.org

Is there a way to configure RestTemplate so that it respects HTTP caching headers and i.e. store response in EHCache based on TTLs? Cheers, TVdV

50. Geting Error while invoking WSDL using http://../DigiSignService?wsdl    forum.springsource.org

Geting Error while invoking WSDL using http://../DigiSignService?wsdl Hi Friends Currently I am invoking the Spring Based Web-Service in the following way http://172.20.8.176:7003/ual-ws-secu.../DigiSign.wsdl For that in web.xml I have added dshandling ...

51. JDBC Date & HTTP endpoint    forum.springsource.org

I am running an application in tcServer, my application is using mysql which i have defined in server.xml at insight/conf dir. (as provided at: http://static.springsource.com/proje...c__description) After running my app i tried ...

52. Retrieve WebApplicationContext on remote service (Http Invoker)    forum.springsource.org

Retrieve WebApplicationContext on remote service (Http Invoker) Hi. I use Spring 2.0.x and I have a question about Springs http Invoker. Its possible to retrieve the WebApplicationContext on my remote service ...

53. Spring 3 REST API + setting specific HTTP Header    forum.springsource.org

Hi, I'm using Spring3 restfull API but I need to set also HOST specific header in HTTP. Can I do this staying with REST API ? Thanks Jack

54. How to set up a simple http web service?    forum.springsource.org

How to set up a simple http web service? Hi, I'm new to Spring-Integration and I'm making a small proof of concept (POC) application for testing purposes. All I want the ...

55. Managing HTTP Connection over multiple Web Service calls?    forum.springsource.org

Managing HTTP Connection over multiple Web Service calls? I am currently working on a batch application that invokes a web service on an average of 125k times. From the stress tests ...

56. HTTP Service not working when deploying cxf bundles    forum.springsource.org

HTTP Service not working when deploying cxf bundles Hi All, I am able to sucessfully expose an HTTP Servlet through HTTP Service using Spring DM 1.2.1 in Felix. But , when ...

57. Spring WS and Apache HTTP client    forum.springsource.org

Spring WS and Apache HTTP client I have something like the following: ...

58. Cannot connect to HTTP invoker remote service + java.net.ConnectException    forum.springsource.org

Aug 30th, 2010, 03:17 PM #1 samara2010 View Profile View Forum Posts Private Message Junior Member Join Date Aug 2010 Posts 1 Cannot connect to HTTP invoker remote service + java.net.ConnectException ...

59. Spring Xfire Webservice and http header    forum.springsource.org

In my current project we are using spring/Xfire/jibx for webservices. I have to read a http header value and compare that with soap body value(for each request). Has any one done ...

60. Why No javax.xml.transform.Result taken by outbound http/ws gateways?    forum.springsource.org

Why No javax.xml.transform.Result taken by outbound http/ws gateways? Is there a configuration setting I am missing. For my outbound flows, I transform a Java object to xml. I'm using Spring OXM ...

61. RestTemplate and HTTP chunking    forum.springsource.org

RestTemplate and HTTP chunking We're using RestTemplate to submit large (~1 Mb) files to a web service. That web service has seen intermittent errors that they attribute to HTTP chunking. They've ...