7 Replies Latest reply on Feb 20, 2014 11:16 AM by glauberrs26

    JBoss7 modifySOAPAddress

    generic1

      Hi,

       

      with JBoss5 it was possible to do the following:

       

      <property name="webServiceHost">jbossws.undefined.host</property>
      <property name="modifySOAPAddress">true</property>

       


      instead of

       

      <property name="webServiceHost">${jboss.bind.address}</property>
      <property name="modifySOAPAddress">true</property>

       

      Now I work with JBoss 7 but I can't find how I can do this with JBoss7?

      Does anybody know where I can set modifySOAPAddress with JBoss7?

       

      Thanks a lot,

      Hannes

        • 1. Re: JBoss7 modifySOAPAddress
          vphanibhushanreddy

          Change the value like below in standalone.xml file.

           

          <wsdl-host>jbossws.undefined.host</wsdl-host>

           

          under subsystem  'urn:jboss:domain:webservices:1.1'.

          • 2. Re: JBoss7 modifySOAPAddress
            generic1

            Hi,

             

            thanks a lot for the answer.

            The problem is that I can't find a xml tag with urn:jboss:domain:webservices:1.1 as attribut in the standalone.xml.

            Would it be possible to post the whole xml section where urn:jboss:domain:webservices:1.1 is define.

             

            Thanks a lot,

            Hannes

            • 3. Re: JBoss7 modifySOAPAddress
              vphanibhushanreddy

              Please follow the below steps to add respective entries in standalone.xml file:

               

              1) Add  to <extensions> tag <extension module="org.jboss.as.webservices"/>

              2) Add below lines to <profiles> tag.

                  

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

              • 4. Re: JBoss7 modifySOAPAddress
                vphanibhushanreddy

                I have verified the JBoss 7.0.2 version, but couldn't find webservices related information. If it throws the errors saying 1.1 specification not found because I copied the web services extension from 7.1.1 release. Please go through the below link for JBoss 7.

                http://jbossws.blogspot.in/2011/07/jboss-as-7-webservices-features.html

                • 5. Re: JBoss7 modifySOAPAddress
                  generic1

                  Thanks,

                  I have added the lines of http://jbossws.blogspot.in/2011/07/jboss-as-7-webservices-features.html in my standalone.xml, now I get the following exception:

                   

                  Module org.jboss.as.webservices:main is not found - there is the folder hierachy JBOSS_HOME/modules/org/jboss/as/webservices but the webservices- folder is empty.

                  Do you have still any idea what I'am  doing wrong?

                  Thanks,

                  Hannes

                  • 6. Re: JBoss7 modifySOAPAddress
                    vphanibhushanreddy

                    If you read the link I gave, in comments people have mentioned on how to find the corresponding libraries and fix it or else download JBoss 7.1.1 copy all jars from webservices directory and replace with the entry I have mentioned in one of my responses.

                    • 7. Re: JBoss7 modifySOAPAddress
                      glauberrs26

                      I faced the same problem in JBoss 7.1

                      Apache (https) --> AJP --> JBoss 7.1

                      In stadalone-ha.xml:

                       

                                  <connector name="ajp" protocol="AJP/1.3" scheme="https" socket-binding="ajp" proxy-port="443" />

                       

                      It's possible use proxy-name property too in the connector

                      It's possible use the properties in connector http too.

                       

                      Now, everything is ok:

                       

                      <soap:address location="https://rewrite-host-request-client:443/ws-xxx/ServiceWS"/>

                       

                      <subsystem xmlns="urn:jboss:domain:webservices:1.2"> I left default.