4 Replies Latest reply on May 22, 2010 1:43 PM by creativegalaxy

    HTTPS Endpoint Address

      I have created a simple webservice using a POJO and I would like the system generated WSDL to use HTTPS in the soap:address.  I tried address rewriting as described in serveral discussions such as this one http://community.jboss.org/message/524256 but the WSDL still points to HTTP.  Any suggestions?

       

      Best,

       

      Aaron

        • 1. Re: HTTPS Endpoint Address
          creativegalaxy

          Before deploy your wsdl file, you need to make sure that, the URL protocol is "https". If it is "http", you need to manually change that to "https".

           

          <wsdlsoap:address location="https://this.value.is.replaced.by.jboss"/>

           

           

          At the deployment time, jboss will asign the perfect port number based on the url protocol.  You can change the jboss "URL- Rewriting" behavoiur by configuring the "jboss-beans.xml", esspecially the following four lines,

           

                <property name="webServiceHost">${jboss.bind.address}</property>
                <property name="webServiceSecurePort">443</property>
                <property name="webServicePort">80</property>
                <property name="alwaysModifySOAPAddress">true</property>

          • 2. Re: HTTPS Endpoint Address

            Thanks for the tip but Jboss WS generates my WSDL automatically, how do i convert the HTTP to HTTPS?

            • 3. Re: HTTPS Endpoint Address
              creativegalaxy

              In my case also, wsdl was auto generated. I have enabled the http over ssl by modified the protocol in wsdl file.

               

              You have to change the protocol in wsdl file after its generated and before you up the jboss. (In my case, I have kept the wsdl file in jar file. What I was done is, I have updated the protocol and restarted the server… wow I done.. )

              • 4. Re: HTTPS Endpoint Address
                creativegalaxy

                http://community.jboss.org/wiki/JBossWS-SecureTransport

                 

                 

                you can get the answer from the above url too.. It provides the solution for webservice with EJB and POJO as well.