A Single Sign On process for the Uluro Web 3.0 is available. The Single Sign On process allows Customers to authorize the access to the New Uluro Web without requiring a User Login.
getusersession.asmx
In order for the Customer web site to authorize the access without login by requesting a User Session. In order to request the User Session the Customer Web site will make a Web call to the Uluro Web site with parameters. You can obtain the parameters list by calling the web site with getusersession.asmx. For Web site www.testsite.com call www.testsite.com/getusersession.asmx
Soap 1.1
The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.
POST /getusersession.asmx HTTP/1.1
Host: devtest.transdemoweb.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://uluro.com/GetSession"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<GetSession xmlns="http://uluro.com/">
<username>string</username>
<password>string</password>
<account>string</account>
<clientid>string</clientid>
</GetSession>
</soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<GetSessionResponse xmlns="http://uluro.com/">
<GetSessionResult>string</GetSessionResult>
</GetSessionResponse>
</soap:Body>
</soap:Envelope>
Soap 1.2
The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.
POST /getusersession.asmx HTTP/1.1
Host: devtest.transdemoweb.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<GetSession xmlns="http://uluro.com/">
<username>string</username>
<password>string</password>
<account>string</account>
<clientid>string</clientid>
</GetSession>
</soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<GetSessionResponse xmlns="http://uluro.com/">
<GetSessionResult>string</GetSessionResult>
</GetSessionResponse>
</soap12:Body>
</soap12:Envelope>
Parameters
username – any administrator User ID
password – any administrator Password
account – The account Number of the User (Found on the users document/s).
clientid – the Customer ID (CLID).
Expected output (Example)
http://example.com/sso.aspx?SSID=889A371A-2827-466A-A57B-24D9AC78778F
Example Programs
Perl
#!/usr/bin/perl -w
#
# Test File for Perl
# This file will request a Single Signon Session
#
use SOAP::Lite;
# do not forget to specify the soapaction (on_action),
# you will find it in the wsdl.
# uri is the target namespace in the wsdl
# proxy is the endpoint address
my $soap = SOAP::Lite
-> uri('http://uluro.com/')
-> on_action( sub { join '/', 'http://uluro.com', $_[1] } )
-> proxy('http://devtest.transdemoweb.com/getusersession.asmx');
my $method = SOAP::Data->name('GetSession')
->attr({xmlns => 'http://uluro.com/'});
my @params = (
SOAP::Data->name(username => 'admin'),
SOAP::Data->name(password => 'admin'),
SOAP::Data->name(account => '40000188'),
SOAP::Data->name(clientid => '41')
);
print $soap->call($method => @params)->result."\n";
C# (Example Solution Attached)
The attached C# solution contains a live example. You can compile this and it will return the expected string.
0 Comments