Skip to content

How to change WSDL "soap:address" location after importing a WSDL in WSO2 API Manager 4.5.0? #3981

@omeruguz

Description

@omeruguz

Description

I’m using WSO2 API Manager version 4.5.0. I created a SOAP API by importing a WSDL file. The API was successfully created and published to the Developer Portal.

However, when I access the API with the ?wsdl query like this:

https:///t//soapapi/1.0.0?wsdl

The returned WSDL still includes the original soap:address from the imported WSDL file. For example:

<soap:address location="https://original-service-url.com/service"/>

What I expect is for the soap:address location value to reflect the actual API Gateway endpoint, like:

<soap:address location="https:///t//soapapi/1.0.0"/>

Additionally, when I click the "Download WSDL" button on the Developer Portal, the downloaded WSDL file still contains the original endpoint, not the one served by WSO2.

I managed to change it manually, but for this I had to add a resource with HTTP method GET to the api and this is not a solution for me. This WSDL needs to be generated automatically.

Steps to Reproduce

I tried adding a custom policy to the GET source but it didn't work.

I downloaded the WSDL and changed it manually, then imported it again. However, when I call the wsd from test tools such as soap ui, the problem is the same.

Version

4.5.0

Environment Details (with versions)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions