3 Replies Latest reply: May 11, 2012 4:35 AM by Richard Opalka RSS

    soap:address rewrite in 7.1.1. Final

    Pasqualino Imbemba Newbie

      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):

       

       

      <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>
      

       

       

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

       

       <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>
      

       

       

       

      but it didn't work.

       

      Thanks!

        • 1. Re: soap:address rewrite in 7.1.1. Final
          Tomaz Cerar Master

          Hi,

           

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

           

           

          --

          tomaz

          • 2. Re: soap:address rewrite in 7.1.1. Final
            Pasqualino Imbemba Newbie

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

             

             

             

            <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>
            

             

             

             

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

            • 3. Re: soap:address rewrite in 7.1.1. Final
              Richard Opalka Master

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

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