Skip to Content.
Sympa Menu

grouper-dev - RE: [grouper-dev] Grouper web services, php samples..

Subject: Grouper Developers Forum

List archive

RE: [grouper-dev] Grouper web services, php samples..


Chronological Thread 
  • From: "Sanjay Vivek" <>
  • To: <>
  • Cc: "Grouper Dev" <>
  • Subject: RE: [grouper-dev] Grouper web services, php samples..
  • Date: Tue, 29 Apr 2008 16:21:43 +0100

I forgot to mention that we're using Rampart for authentication so our
PHP clients are authenticating against a Rampart enabled Grouper WS.
WSF/PHP uses WS-Security Policy to define the authentication mechanism
of the service, which in our case is UsernameToken.

I've attached both getMembers.php (which calls the getMembersLite
method) and the policy file for this client. Cheers.

Regards
Sanjay

>-----Original Message-----
>From:
>
>
>[mailto:]
>
>Sent: 29 April 2008 15:51
>To: Sanjay Vivek
>Cc: Grouper Dev
>Subject: RE: [grouper-dev] Grouper web services, php samples..
>
>At 8:46 AM +0100 4/29/08, Sanjay Vivek wrote:
>>Hi Steven,
>>
>>We are using the WSO2 Web Services Framework for PHP (WSO2
>WSF/PHP. It
>>is an open source framework that supports a wide range of WS-*
>>specification implementations. It can be downloaded at
>>http://wso2.org/downloads/wsf/php/
>
>thanks very much, for sharing your experiences!
>
>>
>>I could also provide you with sample code to consume Grouper WS using
>>PHP clients if you like. Cheers.
>>
>
>that would be absolutely marvelous!
>
<?xml version="1.0" encoding="UTF-8"?>
<!--
 !
 ! Copyright 2006 The Apache Software Foundation.
 !
 ! Licensed under the Apache License, Version 2.0 (the "License");
 ! you may not use this file except in compliance with the License.
 ! You may obtain a copy of the License at
 !
 !      http://www.apache.org/licenses/LICENSE-2.0
 !
 ! Unless required by applicable law or agreed to in writing, software
 ! distributed under the License is distributed on an "AS IS" BASIS,
 ! WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 ! See the License for the specific language governing permissions and
 ! limitations under the License.
 !-->
<wsp:Policy wsu:Id="UTOverTransport" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"; xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy";>
	<wsp:ExactlyOne>
	  <wsp:All>
		<sp:TransportBinding xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy";>
		  <wsp:Policy>
			<sp:TransportToken>
			  <wsp:Policy>
				<sp:HttpsToken RequireClientCertificate="false"/>
			  </wsp:Policy>
			</sp:TransportToken>
			<sp:AlgorithmSuite>
			  <wsp:Policy>
				<sp:Basic256/>
			  </wsp:Policy>
			</sp:AlgorithmSuite>
			<sp:Layout>
			  <wsp:Policy>
				<sp:Lax/>
			  </wsp:Policy>
			</sp:Layout>
		  </wsp:Policy>
		</sp:TransportBinding>
		<sp:SignedSupportingTokens xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy";>
			<wsp:Policy>
				<sp:UsernameToken sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient"; />
		  </wsp:Policy>
		</sp:SignedSupportingTokens>	
	  </wsp:All>
	</wsp:ExactlyOne>
</wsp:Policy>



Archive powered by MHonArc 2.6.16.

Top of Page