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

  • SEARCH
  • Home
  • 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 9214121
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T01:54:21+00:00 2026-06-18T01:54:21+00:00

I need some help understanding concepts as Im not sure how to achieve this.

  • 0

I need some help understanding concepts as Im not sure how to achieve this.

I’ve got a database up on the web and it works pretty well with php which its written in. I now need to create the ability for an asp.net page to query my php database and return the results in a format which is fairly easy to manipulate at the other end, json would be good.

The problem I have is the security of the php database. If I have the credentials embedded in the file (like below), I run the db being insecure to queries. So doing some research, it looks like I need to look into webservices as I can pass the username and password from the ASPX page securely using SOAP headers. Can someone confirm that is true?

$databaseName = 'MySample';
$userName = 'MyUserName';
$passWord = 'MyPassword';

$db = & new Database();
$db->setProperty('database', $databaseName);
$db->setProperty('username', $userName);
$db->setProperty('password', $passWord);

//this is the find
$findCMD = $db->newFindCommand('Web');
$findCMD->AddFindCriterion('Field1',$_POST['Param1']);
$findCMD->AddFindCriterion('Field2',$_POST['Param2']);

//finally execute and return $Results back to the ASPX app
$Results = $findCMD->execute();

Can SOAP return results as JSON, or is it specifically XML? I’ve also been trying to find some turorials in setting up a webservice for PHP 5.3, most of them point towards nusoap – ive tried to follow a basic tutorial which failed. According to reports this library isnt compatible with 5.3 and there is a port, but is that the best library to try and use or shall I try and use the built in soap library, which there are not many tutorials about?

My main objective is to provide secure access to my PHP Database from an ASPX page, PS everything is being done in HTTPS.

Any advice would be great, continuing on my search in the meantime to sift through RESTful services, see if they are what I should be using.

Thanks as always

  • 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-18T01:54:22+00:00Added an answer on June 18, 2026 at 1:54 am
    1. Decide which protocol you want to support. SOAP, REST or something else.
    2. Figure which authorization scheme your api will use. Personally I prefer HMAC. With that its much harder to forge requests if packets were intercepted in a request.

    SOAP is primarily XML. You could send a json message inside a SOAP response, but its probably not going to be very effcient. With rest you can send back any format you want and/or use context switching to send a response in your preferred format.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need some help understanding this bit of code pre { white-space: pre; white-space:
I need some help understanding what's happening here. This code is from a models/log.py
I need some help in understanding a python concept. class TilePuzzleProblem(search.Problem): This class is
Hello I need some help understanding what is going on in this assembly code:
I need some help understanding the concept of a well-formed UTF-16 string as mentioned
I need some help understanding why the ArrayList is not being populated, I am
I am pretty new to php and could sure use some help understanding how
I need some help understanding how javascript protoypal inheritance works... or rather why its
OK, I need some help understanding the process behind Facebook's website integration process and
Oracle's PL/SQL is fairly new to me, so I need some help understanding if

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.