getProxyTicket SOAP Example

Client SOAP Request

In this example the Moria2-enabled service, having earlier aquired a ticket granting ticket (tgt attribute, here MDA3AAABAVvsT52YvxxKM3yKATVbQtD*sREX80W7cUNXLIvPtvgIYrUc7IjNp9fXQkFpR3fRqkDi0T4) through initiateAuthentication, see separate SOAP example), requests a proxy ticket for a subservice identified in Moria2's configuration as subservice_username.

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
	<SOAP-ENV:Body>
		<m:getProxyTicket xmlns:m="http://v2_1.webservices.moria.feide.no" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
			<ticketGrantingTicket xsi:type="xsd:string">MDA3AAABAVvsT52YvxxKM3yKATVbQtD*sREX80W7cUNXLIvPtvgIYrUc7IjNp9fXQkFpR3fRqkDi0T4</ticketGrantingTicket>
			<proxyServicePrincipal xsi:type="xsd:string">subservice_username</proxyServicePrincipal>
		</m:getProxyTicket>
	</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Moria2 SOAP Reply

Moria2 has checked the service's authorization data and found the above request to be valid. A proxy ticket for the subservice subservice_username is generated and returned.

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<soapenv:Body>
		<ns1:getProxyTicketResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://v2_1.webservices.moria.feide.no">
			<ns1:getProxyTicketReturn xsi:type="xsd:string">MDA3AAABAVwaUL6fRITMT0eux25M*s2yHbgbhQ3pWf8V8qWpYsaBfMFx-h0dafwwM7OgzxU4blCDgcY</ns1:getProxyTicketReturn>
		</ns1:getProxyTicketResponse>
	</soapenv:Body>
</soapenv:Envelope>