Demo Session

Step 1.Login
Step 2.LoginIM
Step 3.KeepSessionAlive - OnLog/OnLogin/OnNicknameChanged/OnReceiveGroups/OnReceiveBuddies/OnStatusChanged/OnBuddyStatusChanged
Step 4.ChangeStatus
Step 5.KeepSessionAlive - OnStatusChanged
Step 6.SendMessage
Step 7.KeepSessionAlive - OnMessage

Step 1. Login

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/Login"
Host: www.imcomponents.com
Content-Length: 350
Expect: 100-continue
Connection: Keep-Alive

<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>
		<Login xmlns="http://www.imcomponents.com">
			<userId>
				testing
			</userId>
			<password>
				password
			</password>
		</Login>
	</soap:Body>
</soap:Envelope>			

HTTP/1.1 200 OK
Date: Tue, 01 Jul 2008 05:14:03 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: 500

<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>
        <LoginResponse xmlns="http://www.imcomponents.com">
            <LoginResult>
                <SessionId>
                    73EDE71C-2239-4707-BA85-0ABB408E6458
                </SessionId>
                <UserId>
                    testing
                </UserId>
                <LoginTime>
                    2008-06-30 22:14:03
                </LoginTime>
                <ClientIP>
                    210.13.111.138
                </ClientIP>
            </LoginResult>
        </LoginResponse>
    </soap:Body>
</soap:Envelope>				
Step 2. LoginIM

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/LoginIM"
Host: www.imcomponents.com
Content-Length: 564
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>
        <LoginIM 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>
            <imType>
                msn
            </imType>
            <account>
                bstest2@live.com
            </account>
            <password>
                123456789
            </password>
        </LoginIM>
    </soap:Body>
</soap:Envelope>		

HTTP/1.1 200 OK
Date: Tue, 01 Jul 2008 05:14:14 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

<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>
        <LoginIMResponse xmlns="http://www.imcomponents.com"/>
    </soap:Body>
</soap:Envelope>			
Step 3. KeepSessionAlive - OnLog/OnLogin/OnNicknameChanged/OnReceiveGroups/OnReceiveBuddies

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>			

<?xml version="1.0" encoding="utf-8"?>
<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>
				<Session id="73EDE71C-2239-4707-BA85-0ABB408E6458">
					<IM type="msn" account="bstest2@live.com">
						<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>
						<OnLogin datetime="2008-06-30 22:14:17"/>
						<OnNicknameChanged>dddddddddddd</OnNicknameChanged>
						<OnReceiveBuddies>
							<Buddy>
								<Account>bstest01@live.com</Account>
								<Nickname>bstest01%40live%2Ecom</Nickname>
								<GroupId/>
								<Status>HDN</Status>
								<Id>91be2c63-d59f-4259-bb15-1f06f70039bb</Id>
								<Blocked>0</Blocked>
								<PersonalMessage/>
							</Buddy>
							<Buddy>
								<Account>51topview007@live.com</Account>
								<Nickname>51topview007%40live%2Ecom</Nickname>
								<GroupId/>
								<Status>HDN</Status>
								<Id>9cb23706-3822-4e20-9027-24c172e8491f</Id>
								<Blocked>0</Blocked>
								<PersonalMessage/>
							</Buddy>
							<Buddy>
								<Account>antichat2007@hotmail.com</Account>
								<Nickname>antichat2007%40hotmail%2Ecom</Nickname>
								<GroupId/>
								<Status>HDN</Status>
								<Id>41aacadb-bb27-405c-bd49-29b2b5c11851</Id>
								<Blocked>0</Blocked>
								<PersonalMessage/>
							</Buddy>
							<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>bsmsnrobot4@hotmail.com</Account>
								<Nickname>bsmsnrobot4%40hotmail%2Ecom</Nickname>
								<GroupId/>
								<Status>HDN</Status>
								<Id>a48a852d-c20e-4933-bad3-34dcd201b79f</Id>
								<Blocked>0</Blocked>
								<PersonalMessage/>
							</Buddy>
							<Buddy>
								<Account>lihua@lihua.com</Account>
								<Nickname>%E4%B8%BD%E5%8D%8E%E8%AE%A2%E9%A4%90%E6%9C%BA%E5%99%A8%E4%BA%BA%5E%5F%5E</Nickname>
								<GroupId/>
								<Status>HDN</Status>
								<Id>16bab53d-c4d9-469f-981d-40957b213772</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>
							<Buddy>
								<Account>bsmsnrobot3@hotmail.com</Account>
								<Nickname>bsmsnrobot3%40hotmail%2Ecom</Nickname>
								<GroupId/>
								<Status>HDN</Status>
								<Id>27b53294-2183-4df2-ad60-65d36fb4cc0b</Id>
								<Blocked>0</Blocked>
								<PersonalMessage/>
							</Buddy>
							<Buddy>
								<Account>msn.help@live.com</Account>
								<Nickname>%E5%B0%8F%E7%BE%8E%28R%29%E6%94%AF%E6%8F%B4%E6%B1%B6%E5%B7%9D</Nickname>
								<GroupId/>
								<Status>HDN</Status>
								<Id>6ce73ae3-16c4-40ee-95de-6aa75d7dc85b</Id>
								<Blocked>0</Blocked>
								<PersonalMessage/>
							</Buddy>
							<Buddy>
								<Account>bstest03@live.com</Account>
								<Nickname>bstest03%40live%2Ecom</Nickname>
								<GroupId/>
								<Status>HDN</Status>
								<Id>46296a81-7b87-4d4e-9559-7244e2ef77f0</Id>
								<Blocked>0</Blocked>
								<PersonalMessage/>
							</Buddy>
							<Buddy>
								<Account>arnjoz3@msn.com</Account>
								<Nickname>arnjoz3%40msn%2Ecom</Nickname>
								<GroupId/>
								<Status>HDN</Status>
								<Id>ce25487f-1f59-4727-9c69-8ad3b0bdd239</Id>
								<Blocked>0</Blocked>
								<PersonalMessage/>
							</Buddy>
							<Buddy>
								<Account>bstest1@live.com</Account>
								<Nickname>bstest1%40live%2Ecom</Nickname>
								<GroupId/>
								<Status>HDN</Status>
								<Id>fa3a65d0-a93f-45d8-858b-9d2230d7e929</Id>
								<Blocked>0</Blocked>
								<PersonalMessage/>
							</Buddy>
							<Buddy>
								<Account>bstest3@live.com</Account>
								<Nickname>dddd</Nickname>
								<GroupId/>
								<Status>HDN</Status>
								<Id>270551f1-ed24-4070-8d64-9ef7dd12c426</Id>
								<Blocked>0</Blocked>
								<PersonalMessage/>
							</Buddy>
							<Buddy>
								<Account>bsmsnrobot2@hotmail.com</Account>
								<Nickname>bsmsnrobot2%40hotmail%2Ecom</Nickname>
								<GroupId/>
								<Status>HDN</Status>
								<Id>da1dac28-ecfc-4c80-9dde-b685053b8dba</Id>
								<Blocked>0</Blocked>
								<PersonalMessage/>
							</Buddy>
							<Buddy>
								<Account>bstest8@live.com</Account>
								<Nickname>bstest8%40live%2Ecom</Nickname>
								<GroupId/>
								<Status>HDN</Status>
								<Id>451a60e4-ce6d-435e-9cb8-d7e3d58d91f8</Id>
								<Blocked>0</Blocked>
								<PersonalMessage/>
							</Buddy>
							<Buddy>
								<Account>bstest10@live.com</Account>
								<Nickname>bstest10%40live%2Ecom</Nickname>
								<GroupId/>
								<Status>HDN</Status>
								<Id>86ac33fd-aca9-4459-ae87-f772c9c4cdb1</Id>
								<Blocked>0</Blocked>
								<PersonalMessage/>
							</Buddy>
						</OnReceiveBuddies>
						<OnStatusChanged>NLN</OnStatusChanged>
						<OnBuddyStatusChanged>
							<Buddy>
								<Account>lihua@lihua.com</Account>
								<Nickname>%E4%B8%BD%E5%8D%8E%E8%AE%A2%E9%A4%90%E6%9C%BA%E5%99%A8%E4%BA%BA%5E%5F%5E</Nickname>
								<GroupId/>
								<Status>NLN</Status>
								<Id>16bab53d-c4d9-469f-981d-40957b213772</Id>
								<Blocked>0</Blocked>
								<PersonalMessage>%E8%B0%81%E7%9F%A5%E7%9B%98%E4%B8%AD%E9%A4%90%EF%BC%8C%E7%B2%92%E7%B2%92%E7%9A%86%E8%BE%9B%E8%8B%A6%EF%BC%81</PersonalMessage>
							</Buddy>
							<Buddy>
								<Account>msn.help@live.com</Account>
								<Nickname>%E5%B0%8F%E7%BE%8E%28beta%29</Nickname>
								<GroupId/>
								<Status>NLN</Status>
								<Id>6ce73ae3-16c4-40ee-95de-6aa75d7dc85b</Id>
								<Blocked>0</Blocked>
								<PersonalMessage>%E9%97%AA%E5%B1%8F%E5%B0%8F%E7%BE%8E%EF%BC%8C%E9%80%89%E6%8B%A91%EF%BC%8C%E5%8F%82%E4%B8%8E%E2%80%9C%E5%BE%AE%E7%AC%91%E5%8C%97%E4%BA%AC%20%E5%A5%A5%E8%BF%90%E6%9C%89%E6%88%91%E2%80%9D%20%E8%B5%A2%E5%A4%A7%E5%A5%96%EF%BC%81</PersonalMessage>
							</Buddy>
						</OnBuddyStatusChanged>
					</IM>
				</Session>
			</KeepSessionAliveResult>
		</KeepSessionAliveResponse>
	</soap:Body>
</soap:Envelope>
Step 4. ChangeStatus

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/ChangeStatus"
Host: www.imcomponents.com
Content-Length: 568
Expect: 100-continue

<?xml version="1.0" encoding="utf-8"?>
<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>
		<ChangeStatus 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>
			<IMType>msn</IMType>
			<IMAccount>bstest2@live.com</IMAccount>
			<Status>NLN</Status>
		</ChangeStatus>
	</soap:Body>
</soap:Envelope>		

HTTP/1.1 200 OK
Date: Tue, 01 Jul 2008 05:14:22 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: 306

<?xml version="1.0" encoding="utf-8"?>
<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>
		<ChangeStatusResponse xmlns="http://www.imcomponents.com"/>
	</soap:Body>
</soap:Envelope>
Step 5. KeepSessionAlive - OnStatusChanged

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>			

HTTP/1.1 200 OK
Date: Tue, 01 Jul 2008 05:14:27 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: 611

<?xml version="1.0" encoding="utf-8"?>
<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>
				<Session id="73EDE71C-2239-4707-BA85-0ABB408E6458">
					<IM type="msn" account="bstest2@live.com">
						<OnStatusChanged>NLN</OnStatusChanged>
					</IM>
				</Session>
			</KeepSessionAliveResult>
		</KeepSessionAliveResponse>
	</soap:Body>
</soap:Envelope>
Step 6. SendMessage

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/SendMessage"
Host: www.imcomponents.com
Content-Length: 612
Expect: 100-continue

<?xml version="1.0" encoding="utf-8"?>
<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>
		<SendMessage 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>
			<imType>msn</imType>
			<account>bstest2@live.com</account>
			<toAccount>bstest02@live.com</toAccount>
			<message>Test+Message</message>
		</SendMessage>
	</soap:Body>
</soap:Envelope>

HTTP/1.1 200 OK
Date: Tue, 01 Jul 2008 05:14:22 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: 306

<?xml version="1.0" encoding="utf-8"?>
<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>
		<SendMessageResponse xmlns="http://www.imcomponents.com"/>
	</soap:Body>
</soap:Envelope>
Step 7. KeepSessionAlive - OnMessage

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>			

HTTP/1.1 200 OK
Date: Tue, 01 Jul 2008 05:14:27 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: 611

<?xml version="1.0" encoding="utf-8"?>
<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>
				<Session id="73EDE71C-2239-4707-BA85-0ABB408E6458">
					<IM type="msn" account="bstest2@live.com">
						<OnMessage>
							<Message from="bstest02@live.com">Retur%2E%2E%2E%20%20%28TRIAL%20MESSAGE%29</Message>
						</OnMessage>
					</IM>
				</Session>
			</KeepSessionAliveResult>
		</KeepSessionAliveResponse>
	</soap:Body>
</soap:Envelope>