# Redirect errors with SOAP based services

### Description

* Redirect request error code **301/302/303/307/308** can occur for the connectors using **SOAP based API**.
* The below mentioned is an example of such error in Windchill RV\&S.
  * Error message: (302) OH-Windchill-0001: Exception while creating entity. Error : return code: 302

### Cause

* Apache Axis CommonsHTTPSender (which is used to connect the Soap Server) does not handle automatic redirection of POST requests. Hence, it throws the error.

### Solution

* To allow POST requests with redirects, user needs to change the default HTTP handler with custom HTTP handler (based on Apache Axis HTTPSender). The below mentioned steps can be performed to achieve redirects:
* Open the file `<OIM Installed Directory>\OpsHubServer\conf\client-config.wsdd` with any text editor.
* Replace the line\
  `<transport name="http" pivot="java:org.apache.axis.transport.http.CommonsHTTPSender">`\
  with\
  `<transport name="http" pivot="java:com.opshub.axis.transporthandler.HttpRedirectHandler">`

> **Note**: User should use this solution with caution, as it allows **redirects with POST requests**.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://opstech.gitbook.io/opstech-docs/help-center-index/troubleshooting-index/errors-index/common-error-solutions/redirect-errors-with-soap-based-services.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
