Diff for ".NetWebServiceWorkBook" | UserPreferences |
===== ¿ÀÀü 10:13 2004-05-28 =====
[http://www.akadia.com/services/naming_conventions.html Naming Conventions for .NET / C# Projects]
[http://www.microsoft.com/downloads/details.aspx?familyid=08e3d5f8-033d-420b-a3b1-3074505c03f3&displaylang=en 101 Visual Basic and C# Code Samples]
===== ¿ÀÈÄ 2:27 2004-05-22 =====
Á¦±â¶ö ´å³ÝÀº ÇÁ·Î±×·¥ ½ÇÇàµÇ´Â °æ·Î ¾Ë¾Æ³»´Â °Íµµ ¹¹ À̸® º¹ÀâÇØ.
System.AppDomain.CurrentDomain.BaseDirectory¿¡¼ ±Ü¾î¿ÀÀÚ =3
===== ¿ÀÀü 12:57 2004-05-19 =====
Á÷·ÄÈÀÇ ±âº»
{{{
Project test = new Project();
test.m_dTeamStrength = 1.0d;
test.m_strName = "TestProject";
test.m_strDesc = "This is my test Project";
System.IO.FileStream fsOutput = new System.IO.FileStream(@"C:\1.xml", System.IO.FileMode.Create);
System.Xml.Serialization.XmlSerializer serializer= new System.Xml.Serialization.XmlSerializer(test.GetType());
serializer.Serialize(fsOutput, test);
}}}
===== ¿ÀÈÄ 4:58 2004-05-17 =====
* All that WebService
keyword : SOAP(Simple Object Access Protocol), WSDL(Web Services Description Language), UDDI(Universal Description, Discovery and Integration)
* Flows
MS.net
vs.net, .net Framework ±â¹ÝÀÇ IIS, .net Remoting
Web Services Project @ Apache http://ws.apache.org/
Apache with Axis
SunONE(Sun Open Net Environment) ÇÁ·ÎÁ§Æ® ; ÀÚ¹Ù Áø¿µÀÇ Sun, HP, ¼Ò´Ï, ³ëÅ°¾Æ µî 16°³»ç¿Í Liberty Alliance Project·Î ÀÌÇà
Forte, iPlanet Application Server
[http://java.sun.com/webservices/downloads/webservicespack.html Java WSDP(Web Service Developer Pack)]
[Eclipse]/WSAD(WebSphere Studio Application Developer)
IBM, º¼·£µå, ·¡¼Å³Î µî°ú ÇÔ²² Eclipse Project ; Open Source ±â¹ÝÀÇ ide °³¹ß ÇÁ·ÎÁ§Æ®
WSAD(WebSphere Studio Application Developer)/EclipseÀÇ °³¹ß ȯ°æ ; IBM WebSphere 4.0(2003.8),
[http://www.jlab.net/ Eclipse Çѱ¹ »ç¿ëÀÚ ¸ðÀÓ] [http://eclipse.org/ Eclipse °ø½Ä ÆäÀÌÁö] [http://eclipsians.net/ WSAD/Eclipse »ç¿ëÀÚ ¸ðÀÓ]
===== ¿ÀÀü 11:03 2004-05-12 =====
º° Â÷ÀÌ°¡ ¾øÀ» °Í °°Áö¸¸, À§ ±¸¹®Àº ÆäÀÌÁö ·»´õ¸µÀÌ ³¡³ ´ÙÀ½¿¡ ¼¼¼Ç°ªÀÌ ¸»¼ÒµÈ´Ù.
Áï½Ã °ªÀ» Á¦°ÅÇÏ°í ºñ±³ÇÒ °æ¿ì°¡ Àְŵç RemoveAll()À» »ç¿ëÇÏÀÚ.
{{{
Session.Abandon();
Response.Write(null!=Session["user_pid"]);
}}}
{{{
Session.RemoveAll();
Response.Write(null!=Session["user_pid"]);
}}}
===== ¿ÀÀü 1:37 2004-05-09 =====
ƯÁ¤ À¥ ÆäÀÌÁöÀÇ ³»¿ëÀ» ±Ü¾î¿À±â.
{{{
System.Net.HttpWebRequest request =
(System.Net.HttpWebRequest)System.Net.WebRequest.Create("http://localhost");
System.Net.HttpWebResponse response =
(System.Net.HttpWebResponse)request.GetResponse();
System.IO.StreamReader reader = new
System.IO.StreamReader(response.GetResponseStream());
Response.Write(reader.ReadToEnd());
}}}
===== ¿ÀÈÄ 5:51 2004-05-06 =====
string¿¡ Io.StreamÀ» ¿¬°áÇؼ, XmlWriter·Î xml ³»çÇϱâ.
{{{
System.Text.StringBuilder strReturn = new System.Text.StringBuilder();
System.IO.StringWriter strWriter = new System.IO.StringWriter(strReturn);
System.Xml.XmlTextWriter xWriter = new System.Xml.XmlTextWriter(strWriter);
xWriter.WriteStartDocument();
xWriter.WriteStartElement("TestElement");
xWriter.WriteString("OK");
xWriter.WriteEndElement();
xWriter.WriteEndDocument();
strWriter.Close();
}}}
===== ¿ÀÀü 12:00 2004-05-05 =====
md5ÀÎÄÚµù..
{{{
System.Security.Cryptography.MD5CryptoServiceProvider md5 = new System.Security.Cryptography.MD5CryptoServiceProvider();
strReturn = new string(ByteToHex(md5.ComputeHash((new System.Text.UnicodeEncoding()).GetBytes(strPassword))));
}}}
{{{
System.Security.Cryptography.MD5CryptoServiceProvider md5 = new System.Security.Cryptography.MD5CryptoServiceProvider();
strReturn = new string(ByteToHex(md5.ComputeHash(CharToByte("MD5".ToCharArray()))));
}}}
===== ¿ÀÈÄ 5:34 2004-05-04 =====
oledb·ÎºÎÅÍ xml »Ì¾Æ¸Ô±â.
{{{
OleDbConnection conn = new OleDbConnection(ConfigurationSettings.AppSettings["DSNConnectionString"]);
OleDbCommand comm = new OleDbCommand("Select * from tbTarot", conn);
comm.CommandTimeout = 30;
OleDbDataAdapter da = new OleDbDataAdapter();
da.SelectCommand = comm;
DataSet ds = new DataSet();
da.Fill(ds, "tbTarot");
return ds.GetXml();
}}}
private byte[] CharToByte(char[] c)
{
private byte[] CharToByte(char[] c) {
private char[] ByteToHex(byte[] b)
{
private char[] ByteToHex(byte[] b) {
for (int i = 0; i < b.Length; i++)
{
for (int i = 0; i < b.Length; i++) {
//for(int i=0;i<b.Length;i++)
// c[i] = (char)b[i];
·Î±×ÀÎ
<request_login>
<userinfo id="tempid" />
<password method="md5">temppwd</password>
</request_login>
<response_login result="fail" error="error_no_id">
<response_login result="fail" error="error_password">
<response_login result="fail" error="error_unknown">
<response_login result="ok" user_pid="12" />
out:user_pid
ȸ¿ø°¡ÀÔ
<request_userjoin>
<userinfo id="tempid" email="[email protected]" etc... />
<password method="md5">temppwd</password>
</request_userjoin>
out:
<response_userjoin result="ok"/>
<response_userjoin result="fail" error="error_exist_id"/>
<response_userjoin result="fail" error="error_unknown"/>
ȸ¿øÁ¤º¸ º¯°æ
<request_usermodify>
<userinfo id="tempid" email="[email protected]" etc... />
<password method="md5">temppwd</password>
<password_new method="md5">temppwd</password_new>
</request_usermodify>
<response_usermodify result="ok"/>
<response_usermodify result="fail" error="error_password"/>
<response_usermodify result="fail" error="error_unknown"/>
Ä«µåÁ¤º¸ ¿¶÷
<request_cardinfo card_pid="1" />
<response_cardinfo>
<cardinfo card_pid="1" card_code="m01" image_url="">
<keyword>ÀÌ Ä«µå´Â..</keyword>
<content>ÀÌ Ä«µå´Â..</content>
</cardinfo>
</response_cardinfo>
Ä«µå ¹Þ±â (seed °ªÀ» ÀÌ¿ëÇؼ ·£´ýÇÏ°Ô)
<request_tarot method="nordic" user_pid="" />
<response_tarot result="ok" method="nordic" archive_pid="2" card_count="10">
<cardinfo>..</cardinfo>
<cardinfo>..</cardinfo>
<cardinfo>..</cardinfo>
</response_tarot>
Ä«µå Á¡ ¾ÆÄ«ÀÌºê ¸ñ·Ï °¡Á®¿À±â
<request_tarot_archivelist user_pid="1" page="0">
<response_tarot_archivelist result="ok" user_pid="1" page="0">
<archive archive_pid="0" archive_title="" archive_date="2004/10/2 17:33:12" />
<archive archive_pid="1" archive_title="" archive_date="2004/10/2 18:33:12" />
</response_tarot_archivelist>
Ä«µå Á¡ ¾ÆÄ«ÀÌºê °¡Á®¿À±â
<request_tarot_archive archive_pid="1" />
<response_tarot_archive result="ok" method="nordic" card_count="10">
<archive archive_pid="0" archive_title="" archive_date="2004/10/2 17:33:12" />
<cardinfo>..</cardinfo>
<cardinfo>..</cardinfo>
</response_tarot_archive>
À̸ÞÀÏ ¹ß¼Û
<request_tarot_archive_mail archive_pid="" />
<response_tarot_archive_mail result="ok" />
<response_tarot_archive_mail result="fail" error="error_smtp"/>
<request_xxxx>
<response_xxxx>
<invalid_message />
<Request_Authorization>
<User_ID>asd</User_ID>
<User_Password>asd</User_Password>
</Request_Authorization>
<Response_Authorization>
<Result>OK</Result>
<UserInfo>
<TarotUser>
<user_PID>2</user_PID>
<user_ID>asd</user_ID>
<user_Name>asd</user_Name>
<pwd>asd</pwd>
<email>[email protected]</email>
</TarotUser>
</UserInfo>
</Response_Authorization>
<Response_Authorization>
<Result>Fail</Result>
<Message>...</Message>
</Response_Authorization>
ȸ¿ø°¡ÀÔ
<Request_UserAdd>
<User_ID>Kenial</User_ID>
<User_Name>À̼ö°â</User_Name>
<User_Password>1234</User_Password>
<User_Email>[email protected]</User_Email>
</Request_UserAdd>
<Response_UserAdd>
<Result>OK</Result>
<UserInfo>
<TarotUser>
<user_PID>76</user_PID>
<user_ID>Kenial</user_ID>
<user_Name>À̼ö°â</user_Name>
<pwd>1234</pwd>
<email>[email protected]</email>
</TarotUser>
</UserInfo>
</Response_UserAdd>
ȸ¿øÁ¤º¸ º¯°æ
<Request_UserModify>
<User_ID>Kenial</User_ID>
<User_Name>À̼ö°â</User_Name>
<User_OldPassword>1234</User_OldPassword>
<User_NewPassword>4321</User_NewPassword>
<User_Email>[email protected]</User_Email>
</Request_UserModify>
<Response_UserModify>
<Result>OK</Result>
<UserInfo>
<TarotUser>
<user_PID>76</user_PID>
<user_ID>Kenial</user_ID>
<user_Name>À̼ö°â</user_Name>
<pwd>4321</pwd>
<email>[email protected]</email>
</TarotUser>
</UserInfo>
</Response_UserModify>
Ä«µåÁ¤º¸ ¿¶÷
<Request_GetCards>
<Card_Codes>m02;m01</Card_Codes>
</Request_GetCards>
<Response_Cards>
<Result>OK</Result>
<TarotCardList>
<TarotCard>
<Card_Name_Kr>¿©¼º ´ë»çÁ¦</Card_Name_Kr>
<Card_Name_En>The High Priestess</Card_Name_En>
<Contents>ÀÌ Ä«µå´Â....</Contents>
<Meaning>ÁöÇý, °ÇÀüÇÑ ÆÇ´Ü·Â, ¹«ÀÇ½Ä ¼ÓÀÇ ±ú´ÞÀ½, ½Åºñ½º·¯¿ò, ÀϹÝÀû
ÀÎ »ó½Ä, Æò¿Â°ú ħÂø, °´°üÀûÀΠŸ´ç¼º, »óȲÀÇ ÆÇ´Ü, ÅëÂû·Â, ²Þ°ú »ó»ó·ÂÀÇ ¿µÇâ·ÂÀ» ¹ÞÀ½, ´õ
¿í ³ÐÀº ½Çü¸¦ ÆľÇÇÔ, Á÷°ü, Áö½Ä, Áö°¢, ÀÎÁö, ÀÚ±â ÀÇÁ¸, ¹«Ç¥Á¤ÇÑ, °¨µ¿À» ½±°Ô µå·¯³»Áö ¾Ê
´Â, Á¤½ÅÀûÀÌ°í °ü³äÀûÀÎ ´ëÀÎ °ü°è</Meaning>
<Keyword>¼ø¼ö, Áö¼º</Keyword>
<Card_ImageFilename>m02.jpg</Card_ImageFilename>
</TarotCard>
<TarotCard>
<Card_Name_Kr>¸¶¹ý»ç</Card_Name_Kr>
<Card_Name_En>The Magician</Card_Name_En>
<Contents>Ÿ·Î Ä«µåÀÇ...</Contents>
<Meaning>µ¶Ã¢¼º, âÁ¶¼º, »ó»ó·Â, ÀÚ±â ÀÇÁ¸, ÀÚ¹ßÀûÀÎ Çൿ, ÀÚ±â È®½Å
, ¹ß¸íÀÇ ÀçÁÖ, Á¤±³ÇÔ, À¶Å뼺, ź·Â¼º, À¯¿¬¼º, ´É¼ö ´É¶õÇÔ, ÀÚ±â ÅëÁ¦, ÀÚÁ¦½É, ±Ø±â½É, Àçºü
¸¥ ¼ÕÀçÁÖ, Ã¥·«, ¼ÓÀÓ¼ö¸¦ ºÎ¸± ¼ö ÀÖÀ½</Meaning>
<Keyword>âÁ¶, ½ÃÃÊ</Keyword>
<Card_ImageFilename>m01.jpg</Card_ImageFilename>
</TarotCard>
</TarotCardList>
</Response_Cards>
Ä«µå Á¡ ¾ÆÄ«ÀÌºê ¸ñ·Ï °¡Á®¿À±â
<Request_ArchiveList>
<User_ID>asd</User_ID>
</Request_ArchiveList>
<Response_ArchiveList>
<Result>OK</Result>
<ArchiveList>
<TarotArchive>
<Archive_PID>1</Archive_PID>
<User_PID>2</User_PID>
<Question_Text>testquestion</Question_Text>
<Question_Date>2003-11-11T21:57:09.0000000+09:00</Question_Date>
<A_Card_Code_1>m01</A_Card_Code_1>
<A_Card_Code_2>m01</A_Card_Code_2>
<A_Card_Code_3>m01</A_Card_Code_3>
<A_Card_Code_4>m01</A_Card_Code_4>
<A_Card_Code_5>m01</A_Card_Code_5>
<A_Card_Code_6>m01</A_Card_Code_6>
<A_Card_Code_7>m01</A_Card_Code_7>
<A_Card_Code_8>m01</A_Card_Code_8>
<A_Card_Code_9>m01</A_Card_Code_9>
<A_Card_Code_10>m01</A_Card_Code_10>
</TarotArchive>
<TarotArchive>
<Archive_PID>2</Archive_PID>
<User_PID>2</User_PID>
<Question_Text>asd</Question_Text>
<Question_Date>2003-11-11T22:12:33.0000000+09:00</Question_Date>
<A_Card_Code_1 />
<A_Card_Code_2 />
<A_Card_Code_3 />
<A_Card_Code_4 />
<A_Card_Code_5 />
<A_Card_Code_6 />
<A_Card_Code_7 />
<A_Card_Code_8 />
<A_Card_Code_9 />
<A_Card_Code_10 />
</TarotArchive>
</ArchiveList>
</Response_ArchiveList>
Ä«µå Á¡ ¾ÆÄ«ÀÌºê °¡Á®¿À±â
<Request_ArchiveInfo>
<Archive_PID>23</Archive_PID>
</Request_ArchiveInfo>
Response_ArchiveInfo>
<Result>OK</Result>
<ArchiveInfo>
<TarotArchive>
<Archive_PID>13</Archive_PID>
<User_PID>2</User_PID>
<Question_Text>testquestion</Question_Text>
<Question_Date>2003-11-11T22:18:39.0000000+09:00</Question_Date>
<A_Card_Code_1>m01</A_Card_Code_1>
<A_Card_Code_2>m01</A_Card_Code_2>
<A_Card_Code_3>m01</A_Card_Code_3>
<A_Card_Code_4>m01</A_Card_Code_4>
<A_Card_Code_5>m01</A_Card_Code_5>
<A_Card_Code_6>m01</A_Card_Code_6>
<A_Card_Code_7>m01</A_Card_Code_7>
<A_Card_Code_8>m01</A_Card_Code_8>
<A_Card_Code_9>m01</A_Card_Code_9>
<A_Card_Code_10>m01</A_Card_Code_10>
</TarotArchive>
</ArchiveInfo>
</Response_ArchiveInfo>
À̸ÞÀÏ ¹ß¼Û
<Request_ArchiveMail>
<Archive_PID>54</Archive_PID>
</Request_ArchiveMail>
<Response_ArchiveMailSend>
<Result>OK</Result>
</Response_ArchiveMailSend>
<Request_xxxx>
<Response_xxxx>
<Invalid_Message />