Modificare il SOAP Address di un WebService su JBoss
Thursday 10 January, 2008 at 12:23
In JBoss 4.0.5.GA è presente jbossws 1.0.3.SP1 e per poter modificare indirizzo ip e porta del webservice è necessario andare in {istanza.del.server}/deploy/jbossws14.sar e recuperare il file jbossws.beans.
Si tratta di un archivio che presenta la struttura minima di un deployment:
META-INF/jboss-beans.xml META-INF/MANIFEST.MF
Esplodiamo il deployment ed eliminiamo l’archivio jbossws.beans; con lo stesso nome ora avremo una directory e i seguenti file all’interno:
{istanza.del.server}/deploy/jbossws14.sar/jbossws.beans/META-INF/jboss-beans.xml
{istanza.del.server}/deploy/jbossws14.sar/jbossws.beans/META-INF/MANIFEST.MF
Per poter modificare indirizzo ip e porta del webservice basta editare il file jboss-beans.xml:
[...]
<property name="webServiceHost">${jboss.bind.address}</property>
<property name="webServiceSecurePort">8443</property>
<property name="webServicePort">8080</property>
<property name="alwaysModifySOAPAddress">true</property>
[...]
Se invece avete un JBoss 4.0.5.GA con jbossws aggiornato, dalla versione 2.x, allora la directory di riferimento è {istanza.del.server}/deploy/jbossws.sar; jbossws.beans è già esploso, ma le definizioni delle porte (sia in chiaro che su ssl) risultano commentate:
[...]
<!--
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>
-->
[...]
Buzz This Post
Delicious
Digg This Post
Ping This Post
Entry Filed under: jboss,webservice
Leave a Comment
Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
Trackback this post | Subscribe to the comments via RSS Feed