Axis2 - always getting 404 errors

前端 未结 2 1296
遥遥无期
遥遥无期 2020-12-10 17:29

I\'m trying to move some Web Service stubs from Metro to Axis2, however after generating my stubs using wsdl2java I\'m constently getting 404 errors whenever I try and make

相关标签:
2条回答
  • 2020-12-10 17:35

    You didn't provide much information about the environment in which you try to deploy your WS. E.g. is this a webapp running under Tomcat/JBoss or maybe the standalone server deployed with Axis2?

    From the trace that you have posted I suppose that there is a connection with your server but your WS is not successfully deployed. I assume that you may use the standalone server for your tests and I suggest:

    1. Go to your WS repository. On my test machine this would be something like ~/axis2-x.x.x/repository/services and make sure that your service is there (either the .aar file or the unpacked version).

    2. Start the server and check if your service is really deployed. On my installation, for example the server will generate the following output (not complete):

      me@melinuxpc:~/axis2-1.5.1/bin> ./axis2server.sh
      Using AXIS2_HOME: xxx
      Using JAVA_HOME: xxx
      Using JAVA_OPTS: -Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n Listening for transport dt_socket at address: 8000 [INFO] [SimpleAxisServer] Starting [INFO] [SimpleAxisServer] Using the Axis2 Repository xxx [SimpleAxisServer] Using the Axis2 Repository xxx [SimpleAxisServer] Using the Axis2 Configuration File xxx [INFO] Clustering has been disabled [INFO] Deploying module: xxx [INFO] Deploying Web service: MyTestService - file: ~/axis2-1.5.1/repository/services/MyTestService/

    Check if your web service is deployed and there are no errors. You may check if the WSDL of the service is available "in the browser". On my test machine the URL will be:

    http://localhost:8080/axis2/services/MyTestService?wsdl

    While a list with all deployed services may be seen at:

    http://localhost:8080/axis2/services/

    And do not be too quick in abandoning Axis2 ;)

    Good luck!

    0 讨论(0)
  • 2020-12-10 17:38

    I also see this error when use "axis2-wsdl2code-maven-plugin" to generate stub for a .NET webservice (.asmx).

    I fixed by disable "chunked" of _serviceClient. Only add below code in method Constructor of file stub.

    _serviceClient.getOptions().setProperty(HTTPConstants.CHUNKED, "false");
    
    0 讨论(0)
提交回复
热议问题