> For the complete documentation index, see [llms.txt](https://docs.opshub.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.opshub.com/v7.206/help-center-index/troubleshooting-index/errors-index/common-error-solutions/redirect-errors-with-soap-based-services.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.opshub.com/v7.206/help-center-index/troubleshooting-index/errors-index/common-error-solutions/redirect-errors-with-soap-based-services.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
