unable to open web service tester page












-1















I wrote this code to test soap and see how its work but there is something wrong i don't know what is it, when i click on webservice then test web service it give me this message:



unable to open web service tester page, make sure the service has been deployed...



I used tomcat server and when i wrote restful its work with out any problem, but when i wrote soap its not work. Any help please??



this is my class



package com.appspro.calculator;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;

@WebService
public class CalculatorService {

@WebMethod
public int addition(@WebParam(name = "number1") int number1, @WebParam(name = "number2") int number2) {
return number1 + number2;
}

@WebMethod
public int subtraction(@WebParam(name = "number1") int number1, @WebParam(name = "number2") int number2) {
return number1 - number2;
}

@WebMethod
public int multiplication(@WebParam(name = "number1") int number1, @WebParam(name = "number2") int number2) {
return number1 * number2;
}

@WebMethod
public int devision(@WebParam(name = "number1") int number1, @WebParam(name = "number2") int number2) {
return number1 / number2;
}
}


and this is web.xml



<?xml version="1.0" encoding="UTF-8"?>
<web-app version="3.1" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd">
<listener>
<listener-class>com.sun.xml.ws.transport.http.servlet.WSServletContextListener</listener-class>
</listener>
<servlet>
<servlet-name>CalculatorServiceService</servlet-name>
<servlet-class>com.sun.xml.ws.transport.http.servlet.WSServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>CalculatorServiceService</servlet-name>
<url-pattern>/CalculatorServiceService</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>
30
</session-timeout>
</session-config>




I read many solution but i don't understand exactly what is the problem!!










share|improve this question



























    -1















    I wrote this code to test soap and see how its work but there is something wrong i don't know what is it, when i click on webservice then test web service it give me this message:



    unable to open web service tester page, make sure the service has been deployed...



    I used tomcat server and when i wrote restful its work with out any problem, but when i wrote soap its not work. Any help please??



    this is my class



    package com.appspro.calculator;

    import javax.jws.WebMethod;
    import javax.jws.WebParam;
    import javax.jws.WebService;

    @WebService
    public class CalculatorService {

    @WebMethod
    public int addition(@WebParam(name = "number1") int number1, @WebParam(name = "number2") int number2) {
    return number1 + number2;
    }

    @WebMethod
    public int subtraction(@WebParam(name = "number1") int number1, @WebParam(name = "number2") int number2) {
    return number1 - number2;
    }

    @WebMethod
    public int multiplication(@WebParam(name = "number1") int number1, @WebParam(name = "number2") int number2) {
    return number1 * number2;
    }

    @WebMethod
    public int devision(@WebParam(name = "number1") int number1, @WebParam(name = "number2") int number2) {
    return number1 / number2;
    }
    }


    and this is web.xml



    <?xml version="1.0" encoding="UTF-8"?>
    <web-app version="3.1" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd">
    <listener>
    <listener-class>com.sun.xml.ws.transport.http.servlet.WSServletContextListener</listener-class>
    </listener>
    <servlet>
    <servlet-name>CalculatorServiceService</servlet-name>
    <servlet-class>com.sun.xml.ws.transport.http.servlet.WSServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>CalculatorServiceService</servlet-name>
    <url-pattern>/CalculatorServiceService</url-pattern>
    </servlet-mapping>
    <session-config>
    <session-timeout>
    30
    </session-timeout>
    </session-config>




    I read many solution but i don't understand exactly what is the problem!!










    share|improve this question

























      -1












      -1








      -1








      I wrote this code to test soap and see how its work but there is something wrong i don't know what is it, when i click on webservice then test web service it give me this message:



      unable to open web service tester page, make sure the service has been deployed...



      I used tomcat server and when i wrote restful its work with out any problem, but when i wrote soap its not work. Any help please??



      this is my class



      package com.appspro.calculator;

      import javax.jws.WebMethod;
      import javax.jws.WebParam;
      import javax.jws.WebService;

      @WebService
      public class CalculatorService {

      @WebMethod
      public int addition(@WebParam(name = "number1") int number1, @WebParam(name = "number2") int number2) {
      return number1 + number2;
      }

      @WebMethod
      public int subtraction(@WebParam(name = "number1") int number1, @WebParam(name = "number2") int number2) {
      return number1 - number2;
      }

      @WebMethod
      public int multiplication(@WebParam(name = "number1") int number1, @WebParam(name = "number2") int number2) {
      return number1 * number2;
      }

      @WebMethod
      public int devision(@WebParam(name = "number1") int number1, @WebParam(name = "number2") int number2) {
      return number1 / number2;
      }
      }


      and this is web.xml



      <?xml version="1.0" encoding="UTF-8"?>
      <web-app version="3.1" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd">
      <listener>
      <listener-class>com.sun.xml.ws.transport.http.servlet.WSServletContextListener</listener-class>
      </listener>
      <servlet>
      <servlet-name>CalculatorServiceService</servlet-name>
      <servlet-class>com.sun.xml.ws.transport.http.servlet.WSServlet</servlet-class>
      <load-on-startup>1</load-on-startup>
      </servlet>
      <servlet-mapping>
      <servlet-name>CalculatorServiceService</servlet-name>
      <url-pattern>/CalculatorServiceService</url-pattern>
      </servlet-mapping>
      <session-config>
      <session-timeout>
      30
      </session-timeout>
      </session-config>




      I read many solution but i don't understand exactly what is the problem!!










      share|improve this question














      I wrote this code to test soap and see how its work but there is something wrong i don't know what is it, when i click on webservice then test web service it give me this message:



      unable to open web service tester page, make sure the service has been deployed...



      I used tomcat server and when i wrote restful its work with out any problem, but when i wrote soap its not work. Any help please??



      this is my class



      package com.appspro.calculator;

      import javax.jws.WebMethod;
      import javax.jws.WebParam;
      import javax.jws.WebService;

      @WebService
      public class CalculatorService {

      @WebMethod
      public int addition(@WebParam(name = "number1") int number1, @WebParam(name = "number2") int number2) {
      return number1 + number2;
      }

      @WebMethod
      public int subtraction(@WebParam(name = "number1") int number1, @WebParam(name = "number2") int number2) {
      return number1 - number2;
      }

      @WebMethod
      public int multiplication(@WebParam(name = "number1") int number1, @WebParam(name = "number2") int number2) {
      return number1 * number2;
      }

      @WebMethod
      public int devision(@WebParam(name = "number1") int number1, @WebParam(name = "number2") int number2) {
      return number1 / number2;
      }
      }


      and this is web.xml



      <?xml version="1.0" encoding="UTF-8"?>
      <web-app version="3.1" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd">
      <listener>
      <listener-class>com.sun.xml.ws.transport.http.servlet.WSServletContextListener</listener-class>
      </listener>
      <servlet>
      <servlet-name>CalculatorServiceService</servlet-name>
      <servlet-class>com.sun.xml.ws.transport.http.servlet.WSServlet</servlet-class>
      <load-on-startup>1</load-on-startup>
      </servlet>
      <servlet-mapping>
      <servlet-name>CalculatorServiceService</servlet-name>
      <url-pattern>/CalculatorServiceService</url-pattern>
      </servlet-mapping>
      <session-config>
      <session-timeout>
      30
      </session-timeout>
      </session-config>




      I read many solution but i don't understand exactly what is the problem!!







      java tomcat






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jan 20 at 12:08









      H. GhassH. Ghass

      288




      288
























          0






          active

          oldest

          votes











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54276264%2funable-to-open-web-service-tester-page%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54276264%2funable-to-open-web-service-tester-page%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Homophylophilia

          Updating UILabel text programmatically using a function

          Cloud Functions - OpenCV Videocapture Read method fails for larger files from cloud storage