B4J Question call external Servlet

Discussion in 'B4J Questions' started by Roberto P., Apr 17, 2015.

  1. Roberto P.

    Roberto P. Well-Known Member Licensed User

    how can I call a servlet (third-party) contained TomCat with objects available in B4J?
    thanks
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    You cannot send objects to an external servlets. However you can use HttpUtils2 to contact the external service like any other web service.
     
  3. Roberto P.

    Roberto P. Well-Known Member Licensed User

    Hello Erel,
    I have not asked the question in the right way! I will not send items to a servlet, but data.

    Forgive me if I repeat the question.

    We tried again: from B4J I can call a Servlet and send data, even in the form of parameters?

    thanks
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    Yes. The way to do it depends on the format the external servlet expects.
     
  5. Roberto P.

    Roberto P. Well-Known Member Licensed User

    great.
    which object of B4J use to call the servlet?
    is there any example in the forum?
    thanks
     
  6. Erel

    Erel Administrator Staff Member Licensed User

    HttpUtils2. There are many examples of using it.
     
  7. Roberto P.

    Roberto P. Well-Known Member Licensed User

    Ok, thanks Erel
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice