KeepSessionAlive Method Request


POST /imsoap/BSIMService.asmx HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client Protocol 2.0.50727.42)
Content-Type: text/xml; charset=utf-8
SOAPAction: "http://www.imcomponents.com/KeepSessionAlive"
Host: www.imcomponents.com
Content-Length: 498
Expect: 100-continue

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <soap:Body>
        <KeepSessionAlive xmlns="http://www.imcomponents.com">
            <session>
                <SessionId>
                    73EDE71C-2239-4707-BA85-0ABB408E6458
                </SessionId>
                <UserId>
                    testing
                </UserId>
                <LoginTime>
                    2008-06-30 22:14:03
                </LoginTime>
                <ClientIP>
                    210.13.111.138
                </ClientIP>
            </session>
        </KeepSessionAlive>
    </soap:Body>
</soap:Envelope>			
KeepSessionAlive Method Response


HTTP/1.1 200 OK
Date: Tue, 01 Jul 2008 05:14:16 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-Powered-By: PleskWin
X-AspNet-Version: 2.0.50727
Cache-Control: private, max-age=0
Content-Type: text/xml; charset=utf-8
Content-Length: 627

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <soap:Body>
        <KeepSessionAliveResponse xmlns="http://www.imcomponents.com">
            <KeepSessionAliveResult>
<?xml version="1.0" encoding="UTF-8"?>
<Session id="D2CBF121-B292-449F-B901-656ED900C376">
	<!-- Occurs when login IM account -->
	<IM type="msn" account="bstest2@live.com">
		<!-- Occurs when having log -->
		<OnLog>
			<item>Checking MSN Protocol...</item>
			<item>Checking MSN Version...</item>
			<item>Checking User...</item>
			<item>Connecting NS...</item>
			<item>Checking MSN Protocol...</item>
			<item>Checking MSN Version...</item>
			<item>Checking User...</item>
			<item>Authenticate MSN Passport...</item>
			<item>Login OK.</item>
			<item>Requesting address book...</item>
			<item>Received address book.</item>
			<item>Processed address book.</item>
			<item>Requesting membership list...</item>
			<item>Received membership lists.</item>
			<item>Processed membership list.</item>
		</OnLog>
		<!-- Occurs when receive error -->
		<OnError>
			<item>Error Message</item>
		</OnError>
		<!-- Occurs after login OK -->
		<OnLogin datetime="2008-06-03 19:33:36"/>
		<!-- Occurs after logout OK -->
		<OnLogout datetime="2008-06-03 19:33:36"/>
		<!-- Occurs when nickname changed -->
		<OnNicknameChanged>dddddddddddd</OnNicknameChanged>
		<!-- Occurs when receive groups -->
		<OnReceiveGroups>
			<Group>
				<Id/>
				<Name/>
			</Group>
		</OnReceiveGroups>
		<!-- Occurs when receive buddies -->
		<OnReceiveBuddies>
			<Buddy>
				<Account>bstest06@live.com</Account>
				<Nickname>bstest06%40live%2Ecom</Nickname>
				<GroupId/>
				<Status>HDN</Status>
				<Id>017005a2-38e7-4021-bdbc-2ce97bdf6d5e</Id>
				<Blocked>0</Blocked>
				<PersonalMessage/>
			</Buddy>
			<Buddy>
				<Account>bstest02@live.com</Account>
				<Nickname>bstest02%40live%2Ecom</Nickname>
				<GroupId/>
				<Status>HDN</Status>
				<Id>615a79b2-6906-49d2-bd7b-4dffdb6fe901</Id>
				<Blocked>0</Blocked>
				<PersonalMessage/>
			</Buddy>
		</OnReceiveBuddies>
		<!-- Occurs when IM account status changed -->
		<OnStatusChanged>NLN</OnStatusChanged>
		<!-- Occurs when buddy status changed -->
		<OnBuddyStatusChanged>
			<Buddy>
				<Account>imbsrobot@hotmail.com</Account>
				<Nickname>Bricksoft%20Robot</Nickname>
				<GroupId/>
				<Status>NLN</Status>
				<Id>80babb17-57c9-4135-b311-cc59f2dc4242</Id>
				<Blocked>0</Blocked>
				<PersonalMessage/>
			</Buddy>
		</OnBuddyStatusChanged>
		<!-- Occurs when delete buddy -->
		<OnDeleteBuddy account=""/>
		<!-- Occurs after add buddy -->
		<OnAddBuddy>
			<Buddy>
				<Account>bstest02@live.com</Account>
				<Nickname>bstest02%40live%2Ecom</Nickname>
				<GroupId/>
				<Status>HDN</Status>
				<Id>615a79b2-6906-49d2-bd7b-4dffdb6fe901</Id>
				<Blocked>0</Blocked>
				<PersonalMessage/>
			</Buddy>
		</OnAddBuddy>
		<!-- Occurs when buddy add you request -->
		<OnBuddyAddYouRequest>
			<Buddy account=""/>
		</OnBuddyAddYouRequest>
		<!-- Occurs when receive instant message -->
		<OnMessage from="">Instant Message </OnMessage>		
		<!-- Occurs when receive offline message -->
		<OnOfflineMessage from="">Offline Message </OnOfflineMessage>		
	</IM>
</Session>

            </KeepSessionAliveResult>
        </KeepSessionAliveResponse>
    </soap:Body>
</soap:Envelope>