3 Replies Latest reply on May 11, 2012 4:35 AM by ropalka

    soap:address rewrite in 7.1.1. Final

    pi4630

      Hi,

       

      I'd like to modify the <soap:address> element of my EJB3 based, generated WSDL on my localhost.

      I've found this guide link, but I don't understand what to do precisely.

       

      My subsystem looks like this (running standalone-full.xml):

       

       

      {code:xml}

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

                  <modify-wsdl-address>true</modify-wsdl-address>

                  <wsdl-host>${jboss.bind.address:127.0.0.1}</wsdl-host>

                  <endpoint-config name="Standard-Endpoint-Config"/>

                  <endpoint-config name="Recording-Endpoint-Config">

                      <pre-handler-chain name="recording-handlers" protocol-bindings="##SOAP11_HTTP ##SOAP11_HTTP_MTOM ##SOAP12_HTTP ##SOAP12_HTTP_MTOM">

                          <handler name="RecordingHandler" class="org.jboss.ws.common.invocation.RecordingServerHandler"/>

                      </pre-handler-chain>

                  </endpoint-config>

              </subsystem>

      {code}

       

      Does this mean I just need to change the value in wsdl-host tag to change soap:address? I tried this

       

      {code:xml}

      <modify-wsdl-address>true</modify-wsdl-address>

                  <!--<wsdl-host>${jboss.bind.address:127.0.0.1}</wsdl-host>-->

                  <wsdl-host>http://10.159.45.107<wsdl-host>

      {code}

       

       

      but it didn't work.

       

      Thanks!

        • 1. Re: soap:address rewrite in 7.1.1. Final
          ctomc

          Hi,

           

          you are missing <modify-wsdl-address>true</modify-wsdl-address>

           

           

          --

          tomaz

          • 2. Re: soap:address rewrite in 7.1.1. Final
            pi4630

            I think I'm not. This is my complete subsystem:

             

             

             

            {code:xml}

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

                        <modify-wsdl-address>true</modify-wsdl-address>

                        <!--<wsdl-host>${jboss.bind.address:127.0.0.1}</wsdl-host>-->

                        <wsdl-host>http://10.159.45.107<wsdl-host>

                        <endpoint-config name="Standard-Endpoint-Config"/>

                        <endpoint-config name="Recording-Endpoint-Config">

                            <pre-handler-chain name="recording-handlers" protocol-bindings="##SOAP11_HTTP ##SOAP11_HTTP_MTOM ##SOAP12_HTTP ##SOAP12_HTTP_MTOM">

                                <handler name="RecordingHandler" class="org.jboss.ws.common.invocation.RecordingServerHandler"/>

                            </pre-handler-chain>

                        </endpoint-config>

                    </subsystem>

            {code}

             

             

            As you can see, modify-wsdl-address is set to true.

            • 3. Re: soap:address rewrite in 7.1.1. Final
              ropalka

              <wsdl-host> can contain IP address only, not URI.

              http:// prefix causes your problems, because IP address isn't resolved.