0 Replies Latest reply on Jun 27, 2007 8:56 AM by Reginaldo L. Russinholi

    How to set soap address location to my virtual host

    Reginaldo L. Russinholi Newbie

      Hi all,

      I have set a virtual host to my app in its jboss-web.xml like this:


      and include my virtual host at server.xml file on {jboss_home}/server/default/jbossweb-tomcat55.sar/ like this:
      <Host name="myapp"
       autoDeploy="false" deployOnStartup="false" deployXML="false"
       <Valve className="org.jboss.web.tomcat.tc5.jca.CachedConnectionValve"
       transactionManagerObjectName="jboss:service=TransactionManager" />
       <Valve className="org.apache.catalina.valves.AccessLogValve"
       prefix="myapp" suffix=".log" pattern="common"
       <DefaultContext cookies="true" crossContext="true" override="true"/>

      So, I have a Web Service include with my app and when I access its wsdl file via "http://myapp.mydomain.com.br/MyWebServiceWS?wsdl", I see the following at the end of the file:
      <service name="MyWebServiceWSService">
       <port binding="tns:MyWebServiceWSBinding" name="MyWebServiceWSPort">
       <soap:address location="http://mymachine:8080/MyWebServiceWS"/>

      So my question is, Is there any way to JBoss generate my wsdl with the <soap:address> location pointing to "http://myapp.mydomain.com.br:8080/MyWebServiceWS" ?

      Besides that, I have other applications with their own virtual host domain in this same machine, and I can't change the property "webServiceHost" in the {jboss_home}/server/default/jbossws.sar/jbossws.beans/META-INF/jboss-beans.xml to statically point to "myapp.mydomain.com.br".

      So, is it possible? How?

      Well, I'm using JBoss 4.0.5GA with JBossWS 1.2.1GA, and in the {jboss_home}/server/default/jbossws.sar/jbossws.beans/META-INF/jboss-beans.xml file are this two elements included:
       <property name="webServiceHost">${jboss.bind.address}</property>
       <property name="alwaysModifySOAPAddress">true</property>

      I would be glad if someone could help me.