青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品

posts - 17,  comments - 2,  trackbacks - 0
 
October 09

gSoap: How to add info to SOAP Header using gSOAP

gSoap: How to add info to SOAP Header using gSOAP
There's some misleading info in gSOAP's official documents in SOAP Header Processing Part. 
This article leads you to the right way and can make your program work.
The use case is: 
Client needs to pass user name and password to Server Side to get authenticated.
The username and password info should be embeded in SOAP Header.
Steps:
1. Edit struct SOAP_ENV__Header in soapStub.h file which is generated by gSOAP's soapcpp2 compiler
Add the neccesary info to this struct 
For example:
The original one is:
struct SOAP_ENV__Header
{
public:
 void *dummy; /* transient */
};
This should be changed to:
struct SOAP_ENV__Header
{
public:
 void *dummy; /* transient */
 char *username;
 char *password;
};
2.  Edit function soap_out_SOAP_ENV__Header in soapC.cpp file which is also generated by gSOAP
Add statements to serialize those info into SOAP Header.
For example:
The original one is:
SOAP_FMAC3 int SOAP_FMAC4 soap_out_SOAP_ENV__Header(struct soap *soap, const char *tag, int id, const struct SOAP_ENV__Header *a, const char *type)
{
    soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_SOAP_ENV__Header), type);
    /* transient dummy skipped */
    soap_element_end_out(soap, tag);
    return SOAP_OK;
}
This could be changed to:
SOAP_FMAC3 int SOAP_FMAC4 soap_out_SOAP_ENV__Header(struct soap *soap, const char *tag, int id, const struct SOAP_ENV__Header *a, const char *type)
{
    soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_SOAP_ENV__Header), type);
    /* transient dummy skipped */
    soap_out_string(soap, "headerNS:username", 1, &(a->username), "");
    soap_out_string(soap, "headerNS:password", 2, &(a->password), "");
    soap_element_end_out(soap, tag);
    return SOAP_OK;
}
3. Add the namespace mapping to namespaces array in .nsmap file.
 {"headerNS", "http://customeheader.test.com", NULL, NULL},
 
4. Set the header before invoking Web Service Method. This part you can also refer to the gSOAP's official documenthttp://www.cs.fsu.edu/~engelen/soapdoc2.html#tth_sEc12.
   struct soap soap; 
   soap_init(&soap);  
...
    soap->header = (SOAP_ENV__Header *)soap_malloc(soap, sizeof(SOAP_ENV__Header));
    soap->header->username = (char*)malloc(MAX_NAME_SIZE * sizeof(char));
    soap->header->password = (char*)malloc(MAX_NAME_SIZE * sizeof(char));
    strcpy(soap->header->username, username);
    strcpy(soap->header->password, passwd);
    soap_call_method(&soap, ...);  //the SOAP Header will be in the request
...
5. Compile
6. Run. 
The SOAP Message could be
... 
<SOAP-ENV:Envelope xmlns:headerNS="
http://customeheader.vpamws.com">
<SOAP-ENV:Header>
<headerNS:username>admin</headerNS:username>
<headerNS:password>default</headerNS:password>
</SOAP-ENV:Header>
<SOAP-ENV:Body> 
... 
</SOAP-ENV:Body> 
</SOAP-ENV:Envelope>
 
Any Questions, Please let me know. Thanks.
 
-Debora
posted @ 2009-03-28 15:29 BeyondCN 閱讀(1205) | 評論 (0)編輯 收藏

1.subst.exe煥發青春 
subst.exe是一個不太常用的DOS命令,它的位置隱藏在\Windows\Command\下(針對Windows 9X/Me系統),如果是Windows 2000/XP,則應該隱藏在\Windows\System32\下,前者的大小為17.6KB,后者的大小更小一些,才9.0KB而已。 
subst.exe的完整名稱是“給目錄賦驅動器符命令”,它的功能是以磁盤驅動器號代替路徑名稱,以使驅動器號與指定的子目錄路徑關聯,其命令格式很簡單: 
subst.exe [Driver1: [Driver2:] Path] 
其中的“Driver1”是指定指派路徑的虛擬驅動器盤符,“Driver2 Path”則是指定物理驅動器和要指派給虛擬驅動器的路徑。 
2.利用subst.exe虛擬軟驅 
例如,在安裝瑞星殺毒軟件前,你可以先通過其他方式(例如局域網、郵件、共享文件)將A盤的所有文件復制到本機的一個文件夾中,例如D:\temp下。然后在命令提示符窗口下鍵入如下命令“subst A: D:\temp”,如圖1所示,朋友們可以看一看這里用“dir A:”命令后的文件列表,就知道一張軟盤中是絕不可能放入如此之多的東東的。這樣,我們就可以按照這種方法將D:\temp文件夾虛擬成A盤,瑞星殺毒軟件的安裝就可以順利完成了。 
當我們虛擬軟驅后,你會發覺軟驅的圖標已經變成了圖2所示的硬盤圖標,當然雙擊打開后就是D:\Temp文件夾中的內容。 
3.刪除虛擬軟驅 
如果你要刪除這個虛擬出來的A盤,只要執行“subst A:/D”命令就行了,切記工作結束后一定要及時刪除這個虛擬出來的A盤,否則無法正常使用原來的物理A盤喲。 
有些軟件只能在軟盤上運行,這是軟件開發者的特別設計,主要目的是為了防止非法拷貝。不過,我們可以先通過HD-COPY工具將軟盤做成一個擴展名為img的鏡像文件存放在硬盤上的某個文件夾中,然后利用IMGDRIVE、UNDISK等工具軟件將該鏡像文件展開,這樣就可以在硬盤上創建一個虛擬軟盤,自然也就可以正常運行了,不過如果是加密的軟件,則無法通過這種方法正常運行。

posted @ 2009-03-21 13:18 BeyondCN 閱讀(604) | 評論 (0)編輯 收藏

Sector, Boot Sector, Track, Cluster, Bad Sector, Lost Cluster

Sector, Track and Cluster

Sector, Track and Cluster

A Sector in the context of computing refers to a small area of a storage device, for example a hard disk drive. 
For more detailed information please see below.
spr
AddThisThis page is © Copyright 2001-2008 helpwithpcs.com
spr

Sector, Track and Cluster continued...

A typical hard disk drive when low-level formatted is split into tracks, sectors and clusters:
  • Tracks are concentric circles around the disk.
  • Sectors are segments of a track.
  • Clusters are a set of sectors.

Sector, track and cluster example
In the example on the left in fig 1.1 we have only illustrated one track, one sector and one cluster, but you can see where the other tracks, sectors and clusters would reside. 

A typical hard drive may have 30 or more tracks, and 10 or more sectors per track. 

The size of a cluster will vary depending on the size of the partition.

Bad Sector

A bad sector refers to a single sector that has some physical flaw. Although a disk can operate with a bad sector, any data that was stored in that sector will be lost, further, no data can be written to that sector. 

Lost Cluster

A lost cluster is a cluster that the operating system has classed as being in use, but actually contains no data. The ScanDisk utility within Windows is designed to search for lost clusters and make them available to the file system again. 

The Boot Process and the boot sector

Boot sector refers to a single sector (normally the first in the active partition) that contains the code to boot the operating system. 

Before the boot sector is read, the computer's bios will call a small program called an MBR (Master Boot Record), which normally resides in the first record of the first disk. 

The MBR will query the FAT (File Allocation Table) to establish the primary partition and then pass control over to the boot sector of that partition. 

The small program stored in the boot sector is then executed and the operating system will begin to load.
spr
posted @ 2009-03-19 10:20 BeyondCN 閱讀(529) | 評論 (0)編輯 收藏
     摘要:   閱讀全文
posted @ 2008-11-14 11:40 BeyondCN 閱讀(1048) | 評論 (0)編輯 收藏
     摘要:   閱讀全文
posted @ 2008-11-08 13:26 BeyondCN 閱讀(885) | 評論 (0)編輯 收藏
     摘要:   閱讀全文
posted @ 2008-11-07 00:24 BeyondCN 閱讀(251) | 評論 (0)編輯 收藏
     摘要:   閱讀全文
posted @ 2008-11-06 23:29 BeyondCN 閱讀(549) | 評論 (0)編輯 收藏
     摘要:   閱讀全文
posted @ 2008-11-06 17:31 BeyondCN 閱讀(4647) | 評論 (1)編輯 收藏
     摘要: 在 .Net 中實現自定義事件   .Net 中的自定義事件,其實是利用委托實現,大概可以分為以下幾個步驟:1、定義事件傳送的 EventArgs ,當然也可以直接使用系統的 EventArgs。2、定義該事件類型的委托。3、定義事件的處理方法。4、在需要的地方拋出事件,拋出的事件會在外部被捕捉到。我們以一個簡單的計算程序為例講解,該程序實現計算兩個給定數字的和,當結果<=100時...  閱讀全文
posted @ 2008-11-03 00:58 BeyondCN 閱讀(531) | 評論 (0)編輯 收藏
     摘要:  使用Delegate類型設計自定義事件作者:羅會濤    在C#編程中,除了Method和Property,任何Class都可以有自己的事件(Event)。定義和使用自定義事件的步驟如下: (1)在Class之外定義一個delegate類型,用于確定事件程序的接口   (2)在Class內部,聲明一個public e...  閱讀全文
posted @ 2008-11-03 00:55 BeyondCN 閱讀(620) | 評論 (0)編輯 收藏
僅列出標題
共2頁: 1 2 
青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            91久久精品一区| 快播亚洲色图| 亚洲日韩欧美视频一区| 欧美日韩大片一区二区三区| 欧美尤物一区| 亚洲主播在线观看| 欧美暴力喷水在线| 久久精品三级| 午夜在线成人av| 99国产精品视频免费观看| 亚洲第一页自拍| 欧美xxx成人| 亚洲成人自拍视频| 亚洲激情中文1区| 欧美国产高清| 乱码第一页成人| 久久免费偷拍视频| 欧美国产成人精品| 亚洲日本无吗高清不卡| 91久久久久久久久| 夜夜嗨网站十八久久| 这里只有精品视频| 久久er精品视频| 欧美激情亚洲综合一区| 欧美日韩在线播放三区四区| 欧美性视频网站| 国产一区二区三区的电影 | 欧美一区二区三区在线免费观看| 欧美激情在线免费观看| 欧美成人精品影院| 欧美**字幕| 亚洲视频免费观看| 欧美阿v一级看视频| 国产亚洲第一区| 一本色道久久综合狠狠躁的推荐| 亚洲欧美一级二级三级| 亚洲免费大片| 久久国产视频网| 亚洲国产成人高清精品| 久久www免费人成看片高清| 欧美激情一区二区三级高清视频| 国产精品久久久久久一区二区三区 | 久久av二区| 国产精品爽爽ⅴa在线观看| 日韩亚洲一区二区| 亚洲娇小video精品| 久久九九久精品国产免费直播| 国产精品日韩欧美大师| 亚洲一区在线免费观看| 亚洲国产精品电影在线观看| 久久亚洲免费| 亚洲精品在线观| 亚洲国产精品免费| 欧美美女操人视频| 新67194成人永久网站| 亚洲欧美另类国产| 亚洲二区在线观看| 亚洲日本无吗高清不卡| 国产精品综合视频| 久久综合色婷婷| 欧美日韩色一区| 久久婷婷久久| 欧美日韩精品一区二区在线播放| 亚洲影院污污.| 久久影院午夜论| 欧美在线观看一区二区| 蘑菇福利视频一区播放| 久久精品国产亚洲5555| 欧美大片免费观看| 久久不射中文字幕| 欧美日韩一区二区三区免费看| 欧美日韩一区三区四区| 久久国产综合精品| 欧美日韩国产综合在线| 久久综合五月| 国产欧美二区| 亚洲色图在线视频| 亚洲一级高清| 欧美精品一区二| 亚洲福利视频专区| 狠狠色综合色区| 亚洲欧美视频在线观看| 亚洲天堂网在线观看| 亚洲激情在线激情| 亚洲欧美激情在线视频| 99在线热播精品免费99热| 久久久久天天天天| 久久午夜电影网| 国产一区二区三区久久 | 国产精品毛片| 亚洲成色999久久网站| 亚洲风情在线资源站| 欧美成人伊人久久综合网| 老色批av在线精品| 日韩一级大片| 国产精品成av人在线视午夜片| 日韩一区二区精品视频| 久久福利视频导航| 精品999在线观看| 欧美精品在线观看91| 一本色道久久综合一区| 欧美一区视频| 亚洲黄色免费| 欧美日韩一区精品| 久久精品九九| 99国产精品99久久久久久| 久热re这里精品视频在线6| 久久久亚洲欧洲日产国码αv| 一区免费观看| 欧美精品v国产精品v日韩精品 | 国产精品乱码人人做人人爱 | 国产在线精品自拍| 欧美精品国产精品日韩精品| 亚洲午夜精品网| 99riav国产精品| 欧美1区视频| 久久久www成人免费毛片麻豆| 亚洲免费电影在线| 好吊妞这里只有精品| 国产精品免费看片| 欧美三区在线视频| 欧美视频二区| 欧美日韩精品一本二本三本| 欧美大片免费久久精品三p| 久久久久久久久伊人| 欧美亚洲综合久久| 久久精品国产99国产精品澳门| 亚洲欧美日韩天堂| 久久国产精品第一页| 久久激情久久| 欧美精品一区二区在线观看| 欧美色123| 狠狠色噜噜狠狠狠狠色吗综合| 狠狠综合久久av一区二区小说 | 欧美国产大片| 国产精品v日韩精品| 欧美激情综合网| 欧美一区二区三区日韩| 香蕉乱码成人久久天堂爱免费 | 欧美专区第一页| 久久国产黑丝| 亚洲第一福利社区| 国产精品99久久久久久有的能看| 午夜日韩福利| 欧美午夜片在线观看| 好看不卡的中文字幕| 日韩视频一区二区三区| 午夜影院日韩| 9l视频自拍蝌蚪9l视频成人| 欧美在线看片| 国产精品拍天天在线| 亚洲精品一区在线| 欧美成人亚洲| 久久蜜桃香蕉精品一区二区三区| 国产精品第十页| 亚洲一区二区三区在线观看视频| 久久久噜久噜久久综合| 一区二区欧美精品| 欧美精品一区二区三区一线天视频| 国产视频一区欧美| 久久精品国产在热久久| 亚洲无线视频| 国产女同一区二区| 久久国产精品一区二区三区四区| 亚洲欧美怡红院| 国产亚洲亚洲| 欧美在线免费播放| 久久精品视频在线看| 在线成人激情黄色| 最新日韩在线| 国产精品一区久久久| 久久国产天堂福利天堂| 久久久999精品| 亚洲精品极品| 亚洲视频在线免费观看| 国产一区二区三区四区| 另类av导航| 欧美四级剧情无删版影片| 欧美自拍偷拍午夜视频| 裸体一区二区| 亚洲无限av看| 久久综合久色欧美综合狠狠 | 亚洲人成网在线播放| 欧美人体xx| 久久久亚洲一区| 欧美视频一区二区| 久久综合网hezyo| 国产精品美女黄网| 亚洲精选久久| 亚洲精品国产视频| 久久这里有精品视频| 欧美一区在线看| 国产精品成人一区二区艾草| 免费不卡亚洲欧美| 激情久久久久久久| 欧美一级免费视频| 久久久精品日韩欧美| 国产主播精品| 欧美在线视频一区| 久久精品一二三|