soap-typescript icon indicating copy to clipboard operation
soap-typescript copied to clipboard

Not specifying a targetNamespace in the SoapService options prevents use with .NET 2.0 Web Services

Open splatpope opened this issue 5 years ago • 0 comments

This is due to the "tns" attribute of the response envelope being set to a "{{CURRENT_URL}}" placeholder, which clearly doesn't get macro'd to the current url, which would be a suitable default for a .NET 2.0 consumer.

To prevent this issue, in your service definition, make sure the options you specify to @SoapService contain the field targetNamespace, set to the current URL for instance.

splatpope avatar Dec 08 '19 22:12 splatpope