We store a version of a proxy service inside a WSDL document -- into the element /definitions/documentation:
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:tns="http://mynamespace.cz/1.0" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
name="MyService"
targetNamespace="http://mynamespace.cz/1.0">
<wsdl:documentation>
<version>2.0</version>
</wsdl:documentation>
I can deploy a service to the Service Bus 12c (12.2.1) and the service works fine. When I display the WSDL from the Service Bus console (so called resource WSDL), the WSDL is as I expect and includes:
<wsdl:documentation><version>2.0</version></wsdl:documentation>
However, if I get the effective WSDL (created by Service Bus from resource WSDL) by the URL:http://myserver:port/sbresource?PROXY/MyService/MyService
The element documentation is overwritten:
<WL5G3N0:documentation>2.0</WL5G3N0:documentation>
The element version is completely missing, however it's content is still present.
Can you please advise why this is happening and if there is any workaround available? We need to preserve the element "version", so that the parsers will be able to retrieve the service version.
My aim is to get an easy to use solution for the service consumers, i.e. have a single WSDL as the source of information and let the WSDL simple as possible to be easily parsed by XPath.