Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8121625
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T05:33:12+00:00 2026-06-06T05:33:12+00:00

I have an application with php at front end and Java as Backend. I

  • 0

I have an application with php at front end and Java as Backend. I was using Hessian from php to call Java methodes with returns data from Java to php. and now i got some problem with hessian and I am getting some exception u can see the question i posted earlier.
https://stackoverflow.com/questions/11121340/hessianserviceexporter-only-supports-post-requests

Is there any other method to call java functions from php code, just like hessian?

If so can someone tell me know?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T05:33:13+00:00Added an answer on June 6, 2026 at 5:33 am

    Easiest way would be to implement a REST layer using JAX-RS. Apache CXF is an excellent, very simple system for deploying JAX-RS services. You can build out the entire service layer without having to worry about Java/PHP interaction that way.

    To give you an idea of how easy it is:

    import javax.ws.rs.GET;
    import javax.ws.rs.Path;
    import javax.ws.rs.Produces;
    import javax.ws.rs.QueryParam;
    import javax.ws.rs.core.MediaType;
    
    public class DemoService {
        @GET
        @Path("sayHello")
        @Produces(MediaType.TEXT_PLAIN)
        public String sayHello() { return "Hello, world!"; }
    }
    

    The content of the beans.xml for CXF’s servlet would look like this:

    <import resource="classpath:META-INF/cxf/cxf.xml"/>
    <import resource="classpath:META-INF/cxf/cxf-servlet.xml"/>
    
    <jaxrs:server id="demoService" address="/demoService">
        <jaxrs:serviceBeans>
            <ref bean="serviceBean"/>
        </jaxrs:serviceBeans>
    </jaxrs:server>
    
    <bean id="serviceBean" class="com.company.DemoService"/>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently rebuilding an existing PHP application using Java. I therefore have an existing
I have a website that consists of 2 applications: Front end application Backend application
I have a very simple textbox in a front end application (like php although
I have a PHP application that sends email using the pear Mail function. Unfortunately
I have a PHP application using an Oracle XE database. Whenever I add a
I have a python application that communicates with a PHP application. Right now, I
I have web services written using java which interacts with the android application only
I'm using PHP as a template engine in an MVC-style application. However, we now
I have a php application that is installed on several servers and all of
I have a PHP application that is built around the MVC architecture without any

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.