1 Reply Latest reply on Aug 25, 2005 7:12 PM by Thomas Diesler

    Webservices wsdl issue

    Rajiv Newbie

      Hi,

      I generate the WSDL through wscompile. The wsdl that gets generated has an entry at the bottom.



      <soap:address location="REPLACE_WITH_ACTUAL_URL"/>

      According to the wiki the "REPLACE_WITH_ACTUAL_URL" is replace with the correct url (http://localhost:8080/ myWebService\wdbservice) by jboss server when the web service is deployed. This works fine for local environment.

      I need to deploy the web service to a jboss instance running on different box, where http port is 16501 NOT 8080. When the app gets deployed the text is replace by (http://localhost:8080/ myWebService\wdbservice) which is not correct as when client tries to use the service we get error. I have manually changed the entry to correct port before deploying the web service but server overrides is and use 8080. Is there any way to specify a different the url at deploy time.

      The error i get when client tries to use the web service is as follows:


      13:20:45,377 ERROR [Engine] StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
      AxisFault
      faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client
      faultSubcode:
      faultString: java.net.ConnectException: Connection refused
      faultActor:
      faultNode:
      faultDetail:
      {http://xml.apache.org/axis/}stackTrace: java.net.ConnectException: Connection refused
      at java.net.PlainSocketImpl.socketConnect(Native Method)
      at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
      at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
      at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
      at java.net.Socket.connect(Socket.java:452)
      at java.net.Socket.connect(Socket.java:402)
      at java.net.Socket.<init>(Socket.java:309)
      at java.net.Socket.<init>(Socket.java:124)
      at org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:135)
      at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:162)
      at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:118)
      at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:73)
      at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:162)
      at org.apache.axis.SimpleChain.invoke(SimpleChain.java:125)
      at org.jboss.webservice.client.ClientEngine.invoke(ClientEngine.java:126)
      at org.apache.axis.client.Call.invokeEngine(Call.java:3039)
      at org.apache.axis.client.Call.invoke(Call.java:3024)
      at org.apache.axis.client.Call.invoke(Call.java:2619)
      at org.apache.axis.client.Call.invoke(Call.java:2524)
      at org.apache.axis.client.Call.invokeInternal(Call.java:1976)
      at org.apache.axis.client.Call.invoke(Call.java:1917)
      at org.jboss.webservice.client.CallImpl.invoke(CallImpl.java:175)
      at org.apache.jsp.getLoanMarketData_jsp._jspService(getLoanMarketData_jsp.java:101)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:66)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:540)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:169)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
      at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
      at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300)
      at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374)
      at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)
      at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675)
      at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
      at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
      at java.lang.Thread.run(Thread.java:534)



        • 1. Re: Webservices wsdl issue
          Thomas Diesler Master

          Have a look at jboss-ws4ee.sar/META-INF/jboss-service.xml

           <!--
           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, JBoss will not rewrite it unless AlwaysModifySOAPAddress=true
           If the content of <soap:address> is not a valid URL, JBoss will rewrite it using the attribute values given below.
           -->
           <attribute name="WebServiceHost">${jboss.bind.address}</attribute>
           <attribute name="WebServiceSecurePort">8443</attribute>
           <attribute name="WebServicePort">8080</attribute>
           <attribute name="AlwaysModifySOAPAddress">true</attribute>