PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 11th, 2013, 04:47 AM
hostguy hostguy is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2013
Posts: 4 hostguy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 17 sec
Reputation Power: 0
PHP-Programs - Opening Response in the Browser directly

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
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

Reply With Quote
  #2  
Old March 11th, 2013, 05:36 AM
Northie's Avatar
Northie Northie is offline
Square Peg in a Round Hole
Click here for more information.
 
Join Date: Oct 2007
Location: North Yorkshire, UK
Posts: 3,419 Northie User rank is General 44th Grade (Above 100000 Reputation Level)Northie User rank is General 44th Grade (Above 100000 Reputation Level)Northie User rank is General 44th Grade (Above 100000 Reputation Level)Northie User rank is General 44th Grade (Above 100000 Reputation Level)Northie User rank is General 44th Grade (Above 100000 Reputation Level)Northie User rank is General 44th Grade (Above 100000 Reputation Level)Northie User rank is General 44th Grade (Above 100000 Reputation Level)Northie User rank is General 44th Grade (Above 100000 Reputation Level)Northie User rank is General 44th Grade (Above 100000 Reputation Level)Northie User rank is General 44th Grade (Above 100000 Reputation Level)Northie User rank is General 44th Grade (Above 100000 Reputation Level)Northie User rank is General 44th Grade (Above 100000 Reputation Level)Northie User rank is General 44th Grade (Above 100000 Reputation Level)Northie User rank is General 44th Grade (Above 100000 Reputation Level)Northie User rank is General 44th Grade (Above 100000 Reputation Level)Northie User rank is General 44th Grade (Above 100000 Reputation Level) 
Time spent in forums: 3 Weeks 5 Days 10 h 15 m 39 sec
Reputation Power: 3896
if your tomcat java app is publicly available on the internet then it will probably need it's own URL/domain to access it, so use this at prepend to image/js/css files

If not, and the app runs privately within the server then you'll need to make a new proxy app, or extend your current php app to include a proxy "bridge"/"connector" to access the necessary files. You may be able to do this in apache, try googling it
__________________
PHP OOPS! <?php DB::Execute(SQL::makeFrom($_GET))->fetchArray()->FormatWith(Template::getInstance('default'))->printHtml(); ?>

PDO vs mysql_* functions: Find a Migration Guide Here

[ Xeneco - T'interweb Development ] - [ Are you a Help Vampire? ] - [ Read The manual! ] - [ W3 methods - GET, POST, etc ] - [ Web Design Hell ]

Reply With Quote
  #3  
Old March 11th, 2013, 07:37 AM
hostguy hostguy is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2013
Posts: 4 hostguy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 17 sec
Reputation Power: 0
Opening Response in the Browser directly

help me guys

Reply With Quote
  #4  
Old March 11th, 2013, 07:37 AM
hostguy hostguy is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2013
Posts: 4 hostguy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 17 sec
Reputation Power: 0
Quote:
Originally Posted by Northie
if your tomcat java app is publicly available on the internet then it will probably need it's own URL/domain to access it, so use this at prepend to image/js/css files

If not, and the app runs privately within the server then you'll need to make a new proxy app, or extend your current php app to include a proxy "bridge"/"connector" to access the necessary files. You may be able to do this in apache, try googling it


Hi Thanks for the reply.. java api is in different server I dont want the files to be accessed through bridge, i just wanna tat api to take control over the browser after the request has sent from the webservice. since am new these webservice pls guide me how to do it.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPHP Development > PHP-Programs - Opening Response in the Browser directly

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap