-
2. Re: Changing of soap:address location
marius.oancea Jan 9, 2008 8:07 AM (in response to marius.oancea)Yes. I know this and works but on my jboss there are many application with different webServiceHost(s)
/deployment/bean[@name='WSServerConfig']/property[@name='webServiceHost']
That is why i need this setting to be done service specific not jboss install specific. -
3. Re: Changing of soap:address location
memema Jan 9, 2008 8:52 AM (in response to marius.oancea)I have the same problem. Some solution or workaround? Thanks
-
4. Re: Changing of soap:address location
marius.oancea Jan 10, 2008 5:48 AM (in response to marius.oancea)The only solution I found is to:
1. Modify \jboss-4.2.1.GA\server\default\deploy\jbossws.sar\jbossws.beans\META-INF\jboss-beans.xml so that<property name="alwaysModifySOAPAddress">false</property>
2. Use wsdlLocation in WebService anotation
Take care, if abc is not existing, jboss will still replace abc with the ${jboss.bind.address}.<soap:address location="http://abc/services/MyService" />
-
5. Re: Changing of soap:address location
memema Jan 10, 2008 8:05 AM (in response to marius.oancea)I have a more complex situation: one internal JBoss server with the web service, and several forwards from externals apache web servers (sorry for my bad english). Different customers have different access points thought differents urls and domains (the customer A access to http://serverA/ws, customer B to http://serverB/ws, etc), but the internal web service and jboss are the same. The annotation solution doesn't work in my case. Another idea?
-
6. Re: Changing of soap:address location
asoldano Jan 11, 2008 7:19 PM (in response to marius.oancea)"memema" wrote:
I have a more complex situation: one internal JBoss server with the web service, and several forwards from externals apache web servers (sorry for my bad english). Different customers have different access points thought differents urls and domains (the customer A access to http://serverA/ws, customer B to http://serverB/ws, etc), but the internal web service and jboss are the same. The annotation solution doesn't work in my case. Another idea?
Not sure if this is exactly your use case, however you could comment out this<property name="webServiceHost">${jboss.bind.address}</property>
in your jbossws.beans/META-INF/jboss-beans.xml file (leave modifySOAPAddress to true). This way the engine should rewrite the soap:address using the host/port used to invoke the servlet providing you the wsdl. -
7. Re: Changing of soap:address location
markusdöring Feb 12, 2008 6:29 AM (in response to marius.oancea)Sorry for bumping this old topic, but i have the same problem as memema.
I have commented out the webServiceHost and the rewrite worked just fine on JBossAS4.2.0 (JBossWS1.2).
Recently i updated to JBossAS4.2.2 (JBossWS2.0.1) and now it don't work anymore. it always generates the endpoint to http://jbossws.undefined.host:8080
Is this a knows issue in the current JBossWS? -
8. Re: Changing of soap:address location
gbc1 Feb 26, 2008 3:32 AM (in response to marius.oancea)I have same issue with jboaa ws 2.03... Does anyone have infos how to solve it?
-
9. Re: Changing of soap:address location
janekdb2 Mar 6, 2009 10:34 AM (in response to marius.oancea)I was able to edit jbossws.beans/META-INF/jboss-beans.xml to change this
<soap address location="http://127.0.0.1:11011/ws/t"/>
to the public facing url,<soap address location="http://www.mydomaine.com:80/ws/t"/>
Versions:
JBoss 4.2.2.GA
JBossWS Native 3.0.3.GA
libapache-mod-jk 1.2.18-3
apache 1.3.34-4.1
Changed part of jboss-beans.xml<!-- An abstraction of server configuration aspects. --> <bean name="WSServerConfig" class="org.jboss.wsf.stack.jbws.NativeServerConfig"> <property name="mbeanServer"><inject bean="WSMBeanServerLocator" property="mbeanServer"/></property> <!-- The WSDL, that is a required deployment artifact for an endpoint, has a <soap:address> element which points to the location of the endpoint. JBoss supports rewriting of that SOAP address. If the content of <soap:address> is a valid URL, JBossWS will not rewrite it unless 'modifySOAPAddress' is true. If the content of <soap:address> is not a valid URL, JBossWS will rewrite it using the attribute values given below. If 'webServiceHost' is not set, JBossWS uses requesters protocol host when rewriting the <soap:address>. --> <!-- <property name="webServiceHost">${jboss.bind.address}</property> --> <property name="modifySOAPAddress">true</property> <!-- Set these properties to explicitly define the ports that will be used for rewriting the SOAP address. Otherwise the ports will be identified by querying the list of installed connectors. If multiple connectors are found the port of the first connector is used. <property name="webServiceSecurePort">8443</property> <property name="webServicePort">8080</property> --> <property name="webServicePort">80</property> </bean>
I commented out the webServiceHost property and uncommented the webServicePort port setting it to 80.
It would be better if JBossWS could also get the port from the requesters protocol port. -
10. Re: Changing of soap:address location
izgur Nov 30, 2010 6:23 AM (in response to janekdb2)Where do I find jbossws.beans/META-INF/jboss-beans.xml in JBoss 5.1 ?
Thank you!
-
11. Re: Changing of soap:address location
izgur Nov 30, 2010 8:35 AM (in response to izgur)I have do all steps but nothing changes...
I see that jbossws.beans/META-INF/jboss-beans.xml in only in jboss/server/all configuration, so I changes it there although i use the default configuration. Did Jboss took the changes made in all ???
If he made, then probably this commenting lines doesn't work if u run jboss with -Djava.bind.address=x.x.x.x. Then it always takes the java.bind.address for the soap:address ?!
karamba.)
-
12. Re: Changing of soap:address location
rosdi Apr 4, 2011 5:25 AM (in response to izgur)For JBoss 5.1 the jboss-beans.xml is in server/{instance}/deployers/jbossws.deployer/META-INF/jboss-beans.xml
-
13. Re: Changing of soap:address location
dtonhofer Aug 2, 2011 10:01 AM (in response to marius.oancea)Alessio Soldano's approach above works nicely - http://community.jboss.org/message/337798#337798
In JBoss 6 proxied behind an Apache HTTPd, go to
./deployers/jbossws.deployer/META-INF/stack-agnostic-jboss-beans.xml
and comment out the line
<property name="webServiceHost">${jboss.bind.address}</property>
The WSDL will then show the correct soap:address location, not 127.0.0.1 or something like that.