<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><title> :: komentarze do wpisu &quot;PHP+SOAP+WSSE&quot;</title><link>http://stronger.epsi.pl/2009/06/24/php-soap-wsse/</link><description>Wpisy z dziennika internetowego Jogger, wspomaganego przez Jabbera</description><lastBuildDate>Fri, 30 Jul 2010 15:59:13 +0200</lastBuildDate><generator>JoggerPL</generator><item><title>jac</title><link>http://stronger.epsi.pl/2009/06/24/php-soap-wsse/#c1441461</link><description>i wonder if it will works with IBM webservices in EPUAP</description><pubDate>Tue, 15 Sep 2009 09:43:53 +0200</pubDate><guid>http://stronger.epsi.pl/2009/06/24/php-soap-wsse/#c1441461</guid></item><item><title>tom</title><link>http://stronger.epsi.pl/2009/06/24/php-soap-wsse/#c1442069</link><description>probably yes but they prefer x.509 authentication ;)</description><pubDate>Wed, 16 Sep 2009 18:50:19 +0200</pubDate><guid>http://stronger.epsi.pl/2009/06/24/php-soap-wsse/#c1442069</guid></item><item><title>stronger</title><link>http://stronger.epsi.pl/2009/06/24/php-soap-wsse/#c1442083</link><description>Feel free to share your findings - good luck.</description><pubDate>Wed, 16 Sep 2009 19:24:03 +0200</pubDate><guid>http://stronger.epsi.pl/2009/06/24/php-soap-wsse/#c1442083</guid></item><item><title>Bhargav Khatana</title><link>http://stronger.epsi.pl/2009/06/24/php-soap-wsse/#c1517470</link><description>There is way in native PHP soap lib to add WSSE header without extending it, 

I have posted this recently on PHP.net
http://php.net/manual/en/soapclient.soapclient.php'

It took me longer than a week to figure out how to implement WSSE (Web Service Security) headers in native PHP SOAP. There are no much resource available on this, so thought to add this here for community benefit.

Step1: Create two classes to create a structure for WSSE headers



Step2: Create Soap Variables for UserName and Password



Step3: Create Object for Auth Class and pass in soap var



Step4: Create SoapVar out of object of Auth class



Step5: Create object for Token Class



Step6: Create SoapVar out of object of Token class



Step7: Create SoapVar for 'Security' node



Step8: Create header object out of security soapvar

</description><pubDate>Thu, 15 Apr 2010 17:54:23 +0200</pubDate><guid>http://stronger.epsi.pl/2009/06/24/php-soap-wsse/#c1517470</guid></item><item><title>stronger</title><link>http://stronger.epsi.pl/2009/06/24/php-soap-wsse/#c1517473</link><description>Well done Bhargav!</description><pubDate>Thu, 15 Apr 2010 17:58:23 +0200</pubDate><guid>http://stronger.epsi.pl/2009/06/24/php-soap-wsse/#c1517473</guid></item></channel></rss>