How can I change soap address in a JBoss 7 java webservice

后端 未结 3 735
忘掉有多难
忘掉有多难 2021-01-03 02:50

How can I change the soap address in a web service. I\'m working on JBoss 7.1.1.

I have this web service class:

@WebService
public class Card {

   @         


        
相关标签:
3条回答
  • 2021-01-03 03:36

    To clarify,

    In the standalone.xml, just under the tag:

    <subsystem xmlns="urn:jboss:domain:webservices:1.1">
    

    You must modify these entries

    <modify-wsdl-address>true</modify-wsdl-address>
    <wsdl-host>www.myhost.com</wsdl-host>
    

    To change port:

    <wsdl-port>80</wsdl-port> <!-- case you need change port, instead 8080 -->
    <wsdl-secure-port>443</wsdl-secure-port> <!-- case you need change port, instead 8443 -->
    

    To change URI Schema:

    <wsdl-uri-scheme>https</wsdl-uri-scheme> <!-- or http for non secure -->
    
    0 讨论(0)
  • 2021-01-03 03:51

    You have to configure jboss to listen to the interface you want. To do so you have to edit the standalone.xml file and add some new interface tags. I think this post might be useful. https://community.jboss.org/message/614897

    0 讨论(0)
  • 2021-01-03 03:51

    If you need to deploy SOAP web services for public access e.g. via Apache you can remove in the standalone.xml this line: <wsdl-host>${jboss.bind.address:127.0.0.1}</wsdl-host> at all.
    Then the host name will be taken over from the WSDL URL.
    In this case you do not need to change the configuration for every deployment stage. For example dev.myhost.com, qa.myhost.com or ww.myhost.com.

    This avoids also the problem with wrong SSL port 8443 for public services.

    0 讨论(0)
提交回复
热议问题