How to set soap address location to my virtual host
bagrehc Jun 27, 2007 8:56 AMHi all,
I have set a virtual host to my app in its jboss-web.xml like this:
<jboss-web> <context-root>/</context-root> <virtual-host>myapp</virtual-host> </jboss-web>
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"
configClass="org.jboss.web.tomcat.security.config.JBossContextConfig"
>
<Alias>myapp.mydomain.com.br</Alias>
<Valve className="org.jboss.web.tomcat.tc5.jca.CachedConnectionValve"
cachedConnectionManagerObjectName="jboss.jca:service=CachedConnectionManager"
transactionManagerObjectName="jboss:service=TransactionManager" />
<Valve className="org.apache.catalina.valves.AccessLogValve"
prefix="myapp" suffix=".log" pattern="common"
directory="${jboss.server.home.dir}/log"/>
<DefaultContext cookies="true" crossContext="true" override="true"/>
</Host>
...
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"/> </port> </service> ...
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.