Can XFire SOAP server send HTTP 301 REDIRECT to client?

Is it possible to send a HTTP REDIRECT response from inside the XFire SOAP server instead of a regular response?

I need this in order to redirect the client to another server based on some checking of method parameters.

Also, is redirect handling something that major SOAP clients support? I know HttpClient does, but I'm not sure about .NET clients.

Asked by: Briony812 | Posted: 23-01-2022

Answer 1

Many soap clients won't follow redirects because you're not supposed to follow redirects on POSTs without confirmation from the user. (and all SOAP requests are POST)

Answered by: Adrian532 | Posted: 24-02-2022

Answer 2

WS-BasicProfile 1.1 and 1.2 states that using HTTP temporary redirection 307 MAY work :

Answered by: Dainton420 | Posted: 24-02-2022

Similar questions

java - Https redirect from one server to another

The scenario is that a browser makes a request to server1. server1, does a https redirect to server2 with some confidential information in HTTP header. Can browser view the contents of redirect from server1 or would it be encrypted?

java - Is it possible to use OAuth 2.0 without a redirect server?

I'm trying to create a local Java-based client that interacts with the SurveyMonkey API. SurveyMonkey requires a long-lived access token using OAuth 2.0, which I'm not very familiar with. I've been googling this for hours, and I think the answer is no, but I just want to be sure: Is it possible for me to write a simple Java client that interacts with the SurveyMonkey, without setting up my o...

java - Server side redirect for REST call

Which is the best way to do a server side redirect for a REST call? Consider the following scenario: @RestController @RequestMapping("/first") public class FirstController { @GetMapping public String duStuff(){ //Redirect to SecondController's doStuff() } } @RestController @RequestMapping("/second") public class SecondController { @GetMapping public S...

jakarta ee - Redirect http to https in Java EE

How to do a http redirect to https in Sun Application Server / Web Server?

java - How to redirect all console output to a GUI textbox?

I currently have a program that prints lines of text to the screen in various manners such as 'System.out.println()' statements and for loops the print all elements in an array to screen. I am now adding a GUI to this program. My problem is that I want to print everything that prints to eclipse's console to a textbox in my GUI instead. Is this possible and if so how would I go about doing this. Thanks in Ad...

java - redirect from jsf?

I am working on application with jsp, jstl and jsf for my college project, thats being said, I am as well very new to jsf. Everything is going great so far. However, I seems to have a problem figuring out how to do redirect from managed bean to page with dinamyc parameters. For example article.jsp?article_id=2 Can somebody tell me how it is done ? I been trying to use somethinng like

java - Do you always REDIRECT after POST? If yes, How do you manage it?

Say, you are submitting a form, which affects your database (adding records/ deleting them/ updating them) and this is how your request looks like: POST /application/action=update Now, say, you are done with your update, so you would like to take the user to the home page. Response.sendRedirect /application/action=home This works wonderfully well. User is sent a redirect after POST, so eve...

java - How to redirect output from Groovy script?

I wonder if there is any way I could change the default output (System.out) for the groovy script that I'm executing from my Java code. Here is the Java code: public void exec(File file, OutputStream output) throws Exception { GroovyShell shell = new GroovyShell(); shell.evaluate(file); } And the sample groovy script: def name='World' println "Hello $name!" ...

java - How do I redirect to the current page in Servlet Filter?

I have a page say: /myapp/test.jsp?queryString=Y. The filter needs to redirect to current page. It should go to /myapp/test.jsp (without the query string). The below seems to bring it to to the context root: /myapp. I am running in WAS6.1. public void doFilter(ServletRequest req, ServletResponse resp, FilterChain chain) throws IOException, ServletExcepti...

Reading content of URL in java - redirect problems

When I execute the following java program, sometimes I get an empty response, sometimes I get the real (redirected) content. ByteArrayOutputStream output = new ByteArrayOutputStream(); URL url = new URL( "" ); IOUtils.copy( url.openStream(), output ); System.out.println( output.toString() ); The URL

java - Redirect process output to stdout

I would like to execute foo.bat from within a Groovy program and have the resulting process' output redirected to stdout. Either a Java or Groovy code example would be fine. foo.bat can take several minutes to run and generates a lot of output, so I would like to see the output as soon as it is generated, rather than having to wait until the process has completed before seeing all the output at once.

java - Page redirect / refresh using ExtJS

My Web application makes use of Ext JS & Java web technology. Due to the size and complexity of the application, I need to do a complete refresh of the page (load a different page) when user select some menu from the menu bar. What is the best what to redirect to the required page? For example, In my main menu, I have two menu Stock & Location. These two menu will take the user to different JSP files (...

java - OpenCMS - 301 redirect

Is there any easy way to configure permanent redirects (301) on openCMS? I would like to forward some of my old page urls to their new location. Thanks

Still can't find your answer? Check out these amazing Java communities for help...

Java Reddit Community | Java Help Reddit Community | Java Community | Java Discord | Java Programmers (Facebook) | Java developers (Facebook)