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 7780161
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T18:49:27+00:00 2026-06-01T18:49:27+00:00

Can any one please advice how to parse nuSOAP headers and checking the username/password/Signature

  • 0

Can any one please advice how to parse nuSOAP headers and checking the username/password/Signature from the below SOAP Request

<SOAP-ENV:Header>
    <SOAP-ENV:Header xmlns:wsa="http://admin.example.com">
      <Username>testuser</Username>
      <Password>test123456</Password>
      <Signature>5595610031002</Signature>
    </SOAP-ENV:Header>
  </SOAP-ENV:Header>

i.e: i need to parse this header on server side and validate the credentials for every request.

  • 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-01T18:49:28+00:00Added an answer on June 1, 2026 at 6:49 pm

    Am not sure but i found an alternative to track the credentials by using the following code.
    let me explain.

    The code $sSoapRequest = file_get_contents('php://input'); which returns the entire SOAP request to the server side…

    The following 2 functions helps me to bring out the values..

    function doAuthenticate()
    {
        $sSoapRequest = file_get_contents('php://input');
        if(isset($sSoapRequest))
        {
            $sUsername = hookTextBetweenTags($sSoapRequest, 'Username');
            $sPassword = hookTextBetweenTags($sSoapRequest, 'Password');
            $sSignature = hookTextBetweenTags($sSoapRequest, 'Signature');
            if($sUsername=='testuser' && $sPassword=='test123456' && $sSignature=='5595610031002')
                return true;
            else
                return false;
        }
    }
    function hookTextBetweenTags($string, $tagname) {
        $pattern = "/<$tagname ?.*>(.*)<\/$tagname>/";
        preg_match($pattern, $string, $matches);
        return $matches[1];
    }
    

    and, use doAuthenticate() method for every process in server side.

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

Sidebar

Related Questions

Can any one please advice how do i change the mailing header Return-Path from
can any one please advice me, is there any possibilities to access .Net modules
Can any one please advice me, that, i need to generate an array dynamically
Can any one please tell me how to set notifications for different values at
Can any one please help me how to go to another activity in android
Can any one please tell me the difference between target and currenttarget in flex?
can any one please tell me how to get the Google places api key
Can any one please help me solve this. I am resizing some flash object/embed
1)Can Any one please tell me what are the prerequisites have been installed on
Can anyone please advise me if there will be any problems changing the wordpress

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.