JBoss Community

Re: How to configure a service-ref in the environment?

created by Richard Opalka in JBoss AS7 Development - View the full discussion

Provide jboss-web.xml with the /jboss-web/service-ref/wsdl-override element.

See the following example:

 

<jboss-web>

 

      <!-- usecase 1 --> 

      <service-ref>

        <service-ref-name>service2</service-ref-name>

        <wsdl-override>WEB-INF/wsdl/Endpoint.wsdl</wsdl-override>

      </service-ref>

 

      <!-- usecase 2 -->

      <service-ref>

        <service-ref-name>service2</service-ref-name>

        <wsdl-override>http://foo/bar/Endpoint.wsdl</wsdl-override>

      </service-ref>

 

      <!-- usecase 3 -->

      <service-ref>

        <service-ref-name>service2</service-ref-name>

        <wsdl-override>file:///var/data/webapp1/Endpoint.wsdl</wsdl-override>

      </service-ref>

 

</jboss-web>

Reply to this message by going to Community

Start a new discussion in JBoss AS7 Development at Community