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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T17:09:14+00:00 2026-05-30T17:09:14+00:00

I am trying to secure SOAP requests using WSO2’s Web Services Framework for PHP.

  • 0

I am trying to secure SOAP requests using WSO2’s Web Services Framework for PHP.

Here is my request:

$reqPayloadString = <<<XML
       <echo>
       <echoRequest>TEST</echoRequest>
       </echo>
XML;


$reqMessage = new WSMessage($reqPayloadString,
                                array("to" => "http://localhost/service/echo",
                                      "action" => "echo"));

$sec_token = new WSSecurityToken(array("user" => "myusername",
                                       "password" => "mypassword",
                                       "passwordType" => "Digest"));  

$client = new WSClient(array("useWSA" => TRUE,
                             "policy" => new WSPolicy(file_get_contents("policy.xml")),
                             "securityToken" => $sec_token));

$resMessage = $client->request($reqMessage);

However, I receive the following error:

Missing wsse:Security header in request

How should I set the wsse:Security header in the request above?

  • 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-05-30T17:09:16+00:00Added an answer on May 30, 2026 at 5:09 pm

    I have not been able to solve this unfortunately. I have tried the tips suggest by @Peter in his response.

    I am now using PHP/Java Bridge and native Java classes to make the secure request.

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

Sidebar

Related Questions

I'm trying to connect to a secure SOAP server using NuSOAP. (I gave the
I'm trying to secure a WCF service using windows accounts. The service should run
I am trying to secure communications via SSL/TLS for one of our Web Service
I am trying to secure my Flex application within my Java web application. Currently
I'm having a really frustrating error trying to secure an ASP.NET application using the
I'm trying to get secure web service connectivity on the iPhone over https via
I'm trying to add a secure web service to a (C#) project as a
I am trying to connect to a secure server using Apache Commons HttpClient 3.1
I'm trying to POST to a secure site using WinHttp, and running into a
i'm trying to secure some WCF services. I'd like to use IIS or the

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.