Skip to main content

Async in c#, web service Credential

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SimActivation.aspx.cs"  Async="true" Inherits="SimActivation" %>




com.att.wireless.eod.Provision p = new com.att.wireless.eod.Provision();
p.Credentials = new System.Net.NetworkCredential("xx",
"xx", "costudio.com");

p.Activate_SIM_PPUCompleted +=new com.att.wireless.eod.Activate_SIM_PPUCompletedEventHandler(UpdatePhoneNumber);
p.Activate_SIM_PPUAsync(koreId, "VRG1", activateDate,
"lbt", string.Empty, string.Empty,
string.Empty, string.Empty, string.Empty, string.Empty, 99, string.Empty);




public void UpdatePhoneNumber(object o, com.att.wireless.eod.Activate_SIM_PPUCompletedEventArgs e)
{
if (e.Result.Status_Code.Equals("1"))
dm.ActivateWithPhone(koreId, e.Result.MSISDN);
Response.Write("Status Code: " + e.Result.Status_Code + ", MSISDN:" + e.Result.MSISDN + ", Batch_Identifier:" + e.Result.Batch_Identifier);
Response.End();
}

Comments

Popular posts from this blog

Web synchronization option for merge replication

http://msdn2.microsoft.com/en-us/library/ms151319.aspx SQL Server 2005 Books Online Implementing Replication over the Internet Replicating data over the Internet allows remote, disconnected users to access data when they need it using a connection to the Internet. Replicate data over the Internet using: A Virtual Private Network (VPN). For more information, see Publishing Data over the Internet Using VPN . The Web synchronization option for merge replication. For more information, see Web Synchronization for Merge Replication . All types of Microsoft SQL Server replication can replicate data over a VPN, but you should consider Web synchronization if you are using merge replication.

Request Signatures in Blackberry

Request Signatures in Blackberry need copy sigtool.db, sigtool.csk to SDK/component/Bin folder for example V 4.2.1 ../eclipse\plugins\net.rim.eide.componentpack4.2.1_4.2.1.17\components\bin