Skip to content
Advertisement

JBOSS EAP 6.4: Can not use the HTTPS schema in “soap:address” in generated WSDL

I have modified my standalone configuration to use HTTPS connector along with the HTTP connector:

JavaScript

With this configuration, I am able to transfer the HTTP traffic to HTTPS URL. It works fine. I also have a webservice written in JAVA:

JavaScript

Once application (service.ear) is deployed, I am able to see the wsdl at:

JavaScript

But the WSDL service definition uses HTTP URL inside “soap:address” element:

JavaScript

My webservice can be accessed from both URLs:

JavaScript

and

JavaScript

How can I change the URL generated inside “soap:address” element inside the generated WSDL file?

I tried to change webservice module configuration inside standalone XML as:

JavaScript

After this change WSDL shows “soap:address” as:

JavaScript

Port is not changed. URI schema is also not changed to HTTPS. I found couple of SO threads (thread1, thread2) which asks to add “wsdl-uri-scheme” attribute inside webservice definition inside standalone XML. But is not supported by JBOSS EAP 6.4 yet.

Please let me know if you have any idea on how to do this. If you need more information, please let me know.

Advertisement

Answer

I finally found how to make it work with JBOSS EAP 6.4. Refer to this RedHat knowledgebase.

There are multiple ways. I followed option 1 to dynamically rewrite soap:address. All you need to do is use wsdl-secure-port is webservice subsystem and set wsdl-host to value “jbossws.undefined.host”:

JavaScript

Then WSDL was generated with soap:address as:

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement