[JBossWS] - Re: replacement of REPLACE_WITH_ACTUAL_URL when using annota
by bschmoll1
I've been recently struggling with the same issue. Apache operates as a front-end for our JBoss server which host several apps, one of which is a web service.
Look at the:
../deploy/jbossws.sar/jbossws.beans/META-INF/jboss-beans.xml
| <bean name="ServiceEndpointManager" class="org.jboss.ws.core.server.ServiceEndpointManager">
|
| <!--
| 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 'alwaysModifySOAPAddress' is true.
| If the content of <soap:address> is not a valid URL, JBossWS will rewrite it using the attribute values given below.
|
| If next line (webServiceHost) is commented, JBossWS uses requesters protocolo, host and port when rewriting the <soap:address>.
| -->
| <!-- <property name="webServiceHost">192.168.1.101</property> -->
| <property name="alwaysModifySOAPAddress">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>
| -->
|
The webServiceHost property should be commented out. I believe this is what your looking for.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4188943#4188943
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4188943
16 years, 10 months
[JBossWS] - the generated java file has errors when using wsprovide
by Grid.Qian
Hi guys,
I used wsprovide in the bin folder of jboss as 4.2.2GA to generate wsdl and java files.
the class is :
package echo;
|
| @javax.jws.WebService
| public class Echo
| {
| public String echo(String input)
| {
| return input;
| }
| }
the command line : wsprovide.bat -ktw echo.Echo
the generated files have a wsdl and two java files.
A java file is : EchoResponse.java
| package echo.jaxws;
|
| import javax.xml.bind.annotation.XmlAccessType;
| import javax.xml.bind.annotation.XmlAccessorType;
| import javax.xml.bind.annotation.XmlElement;
| import javax.xml.bind.annotation.XmlRootElement;
| import javax.xml.bind.annotation.XmlType;
|
| @XmlRootElement(namespace = "http://echo/", name = "echoResponse")
| @XmlType(namespace = "http://echo/", name = "echoResponse")
| @XmlAccessorType(XmlAccessType.FIELD)
| public class EchoResponse {
|
| @XmlElement(namespace = "", name = "return")
| private String return;
|
| public String getReturn() {
| return this.return;
| }
|
| public void setReturn(String return) {
| this.return = return;
| }
|
| }
the return is key of java, but in the java file , return is used to the name of a variable. This is big issue.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4188640#4188640
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4188640
16 years, 10 months