Click here to Skip to main content
15,881,089 members

Opening Response in the Browser directly instead of loading it from the Apache server

Member 9826052 asked:

Open original thread
Actually i've a page named(vehicle.php) inside apache server and Java api page (someheader://someip:someport/track/Track?page=map.fleet) inside tomcat server. I created a Restful Webservice in PHP using this link http://viralpatel.net/blogs/restful-web-service-tutorial-introduction-rest-restful/
And then i sent a username and password from apache server to the java api through webservice, it sends the request correctly and the Java api verifies the username and password and sends back the response page to the webservice. When i call a response function inside webservice from my php page and echoed , it simply prints the values from the api without any scripts and images and links and If i click on any of the link it shows page not found.

I checked the headers using Firebug it shows the response code 404 not found for js and images. It actually checks for those files and images in apache server but they are inside tomcat.

Can anyone tell how to open the response in the browser after am sending the request. Response should load the images and scripts from Java api not from apache server.

If there is any way to solve my problem let me know guys.

Help me.....

Thanks,

SJ
Tags: Java, PHP, Webservice

Plain Text
ASM
ASP
ASP.NET
BASIC
BAT
C#
C++
COBOL
CoffeeScript
CSS
Dart
dbase
F#
FORTRAN
HTML
Java
Javascript
Kotlin
Lua
MIDL
MSIL
ObjectiveC
Pascal
PERL
PHP
PowerShell
Python
Razor
Ruby
Scala
Shell
SLN
SQL
Swift
T4
Terminal
TypeScript
VB
VBScript
XML
YAML

Preview



When answering a question please:
  1. Read the question carefully.
  2. Understand that English isn't everyone's first language so be lenient of bad spelling and grammar.
  3. If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Insults are not welcome.
  4. Don't tell someone to read the manual. Chances are they have and don't get it. Provide an answer or move on to the next question.
Let's work to help developers, not make them feel stupid.
Please note that all posts will be submitted under the http://www.codeproject.com/info/cpol10.aspx.



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900