sony MP3

C# SoapSample credentials (ID Password)

using System.Xml; using System.Net; using System.IO; using System.Text; namespace UniRecord { public class SoapClass { public static string CallWebService() { var _url = "https://test.com/B2BGateway/connect/uAPI"; var _action = "https://test.com/uAPI/UniversalRecordService"; //EndPoint XmlDocument soapEnvelopeXml = CreateSoapEnvelope(); HttpWebRequest webRequest = CreateWebRequest(_url, _action); InsertSoapEnvelopeIntoWebRequest(soapEnvelopeXml, webRequest); // begin async call to web request. IAsyncResult asyncResult = webRequest.BeginGetResponse(null, null); // suspend this thread until call is complete. You might want to
// do something usefull here like update your UI.
asyncResult.AsyncWaitHandle.WaitOne();

// get the response from the completed web request.
string soapResult;
using (WebResponse webResponse = webRequest.EndGetResponse(asyncResult))
{
using (StreamReader rd = new StreamReader(webResponse.GetResponseStream()))
{
soapResult = rd.ReadToEnd();
}
}
return soapResult;
}

private static HttpWebRequest CreateWebRequest(string url, string action)
{
string credentials = "ID:Password";
HttpWebRequest webRequest = (HttpWebRequest)WebRequest.Create(action); //action 사용
webRequest.Headers.Add("Authorization", "Basic " + Convert.ToBase64String(Encoding.UTF8.GetBytes(credentials)));
webRequest.ContentType = "text/xml;charset=\"utf-8\"";
webRequest.Accept = "text/xml";
webRequest.Method = "POST";

return webRequest;
}

private static XmlDocument CreateSoapEnvelope()
{
XmlDocument soapEnvelop = new XmlDocument();
soapEnvelop.LoadXml(@"<soapenv:Envelope xmlns:soapenv=’http://schemas.xmlsoap.org/soap/envelope/’ xmlns:univ=’http://www.travelport.com/schema/universal_v31_0′ xmlns:com=’http://www.travelport.com/schema/common_v31_0′>" +
"<soapenv:Header>" +
"<univ:SupportedVersions/>" +
"</soapenv:Header>" +
"<soapenv:Body>" +
"<univ:UniversalRecordRetrieveReq TraceId=’trace’ AuthorizedBy=’user’ TargetBranch=’ID’ RetrieveProviderReservationDetails=’false’ ViewOnlyInd=’false’>" +
"<com:BillingPointOfSaleInfo OriginApplication=’UAPI’/>" +
"<univ:UniversalRecordLocatorCode>PNR001</univ:UniversalRecordLocatorCode>" +
"</univ:UniversalRecordRetrieveReq>" +
"</soapenv:Body>" +
"</soapenv:Envelope>");
return soapEnvelop;
}

private static void InsertSoapEnvelopeIntoWebRequest(XmlDocument soapEnvelopeXml, HttpWebRequest webRequest)
{
using (Stream stream = webRequest.GetRequestStream())
{
soapEnvelopeXml.Save(stream);
}
}

}
}

참조 : http://stackoverflow.com/questions/4791794/client-to-send-soap-request-and-received-respons

메일 아웃룩 오류코드

아웃룩 오류코드 모음

1. 지정한 암호가 거부 되었습니다. (서버오류 : 0x800CCC90 , 오류번호 : 0x800CCC92)

-> 아이디(ID)에 사용하는 비밀번호(암호)가 틀리거나, 보내는 메일서버(SMTP)의 경우 인증체크를 하기 때문에 비밀번호가 틀리면 계속해서 재로그인 창이 나올 수 있습니다.

[점검사항] 정확한 비밀번호를 입력하셨는지, 보내는 메일서버(SMTP)의 경우 인증체크를 체크하였는지 확인해주시기 바랍니다.

2. 서버에 연결할 수 없습니다. ( 오류번호 : 0x800CCC0E ) […]

C# 기본 XSLTDefault.xslt

______________C# sample________________

E:Unable to Locate Package

sudo vi /etc/apt/sources.list.d/ferramroberto-java-precise.list //확인 및 삭제 apt-get clean cd /var/lib/apt mv lists lists.old mkdir -p lists/partial apt-get clean apt-get update

또는 http://kr.archive.ubuntu.com 를 http://ftp.daum.net 으로 변경 (추천)

확인후 수정

# sudo vi /etc/apt/sources.list # deb cdrom:[Ubuntu-Server 11.10 _Oneiric Ocelot_ – Release amd64 (20111011)]/ oneiric main restricted

# deb cdrom:[Ubuntu-Server 11.10 _Oneiric Ocelot_ – […]