锘??xml version="1.0" encoding="utf-8" standalone="yes"?>狠狠精品干练久久久无码中文字幕,伊人久久大香线蕉综合网站,久久91精品国产91久久麻豆http://m.shnenglu.com/BeyondCN/zh-cnSat, 28 Jun 2025 22:34:05 GMTSat, 28 Jun 2025 22:34:05 GMT60gSoap: How to add info to SOAP Header using gSOAP(杞?http://m.shnenglu.com/BeyondCN/archive/2009/03/28/78146.htmlBeyondCNBeyondCNSat, 28 Mar 2009 07:29:00 GMThttp://m.shnenglu.com/BeyondCN/archive/2009/03/28/78146.htmlhttp://m.shnenglu.com/BeyondCN/comments/78146.htmlhttp://m.shnenglu.com/BeyondCN/archive/2009/03/28/78146.html#Feedback0http://m.shnenglu.com/BeyondCN/comments/commentRss/78146.htmlhttp://m.shnenglu.com/BeyondCN/services/trackbacks/78146.html
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


BeyondCN 2009-03-28 15:29 鍙戣〃璇勮
]]>
濡備綍鍒涘緩铏氭嫙杞┍http://m.shnenglu.com/BeyondCN/archive/2009/03/21/77392.htmlBeyondCNBeyondCNSat, 21 Mar 2009 05:18:00 GMThttp://m.shnenglu.com/BeyondCN/archive/2009/03/21/77392.htmlhttp://m.shnenglu.com/BeyondCN/comments/77392.htmlhttp://m.shnenglu.com/BeyondCN/archive/2009/03/21/77392.html#Feedback0http://m.shnenglu.com/BeyondCN/comments/commentRss/77392.htmlhttp://m.shnenglu.com/BeyondCN/services/trackbacks/77392.html

1.subst.exe鐒曞彂闈掓槬 
subst.exe鏄竴涓笉澶父鐢ㄧ殑DOS鍛戒護錛屽畠鐨勪綅緗殣钘忓湪\Windows\Command\涓?閽堝Windows 9X/Me緋葷粺)錛屽鏋滄槸Windows 2000/XP錛屽垯搴旇闅愯棌鍦╘Windows\System32\涓嬶紝鍓嶈呯殑澶у皬涓?7.6KB錛屽悗鑰呯殑澶у皬鏇村皬涓浜涳紝鎵?.0KB鑰屽凡銆?nbsp;
subst.exe鐨勫畬鏁村悕縐版槸“緇欑洰褰曡祴椹卞姩鍣ㄧ鍛戒護”錛屽畠鐨勫姛鑳芥槸浠ョ鐩橀┍鍔ㄥ櫒鍙蜂唬鏇胯礬寰勫悕縐幫紝浠ヤ嬌椹卞姩鍣ㄥ彿涓庢寚瀹氱殑瀛愮洰褰曡礬寰勫叧鑱旓紝鍏跺懡浠ゆ牸寮忓緢綆鍗曪細 
subst.exe [Driver1: [Driver2:] Path] 
鍏朵腑鐨?#8220;Driver1”鏄寚瀹氭寚媧捐礬寰勭殑铏氭嫙椹卞姩鍣ㄧ洏絎︼紝“Driver2 Path”鍒欐槸鎸囧畾鐗╃悊椹卞姩鍣ㄥ拰瑕佹寚媧劇粰铏氭嫙椹卞姩鍣ㄧ殑璺緞銆?nbsp;
2.鍒╃敤subst.exe铏氭嫙杞┍ 
渚嬪錛屽湪瀹夎鐟炴槦鏉姣掕蔣浠跺墠錛屼綘鍙互鍏堥氳繃鍏朵粬鏂瑰紡(渚嬪灞鍩熺綉銆侀偖浠躲佸叡浜枃浠?灝咥鐩樼殑鎵鏈夋枃浠跺鍒跺埌鏈満鐨勪竴涓枃浠跺す涓紝渚嬪D:\temp涓嬨傜劧鍚庡湪鍛戒護鎻愮ず絎︾獥鍙d笅閿叆濡備笅鍛戒護“subst A: D:\temp”錛屽鍥?鎵紺猴紝鏈嬪弸浠彲浠ョ湅涓鐪嬭繖閲岀敤“dir A:”鍛戒護鍚庣殑鏂囦歡鍒楄〃錛屽氨鐭ラ亾涓寮犺蔣鐩樹腑鏄粷涓嶅彲鑳芥斁鍏ュ姝や箣澶氱殑涓滀笢鐨勩傝繖鏍鳳紝鎴戜滑灝卞彲浠ユ寜鐓ц繖縐嶆柟娉曞皢D:\temp鏂囦歡澶硅櫄鎷熸垚A鐩橈紝鐟炴槦鏉姣掕蔣浠剁殑瀹夎灝卞彲浠ラ『鍒╁畬鎴愪簡銆?nbsp;
褰撴垜浠櫄鎷熻蔣椹卞悗錛屼綘浼氬彂瑙夎蔣椹辯殑鍥炬爣宸茬粡鍙樻垚浜嗗浘2鎵紺虹殑紜洏鍥炬爣錛屽綋鐒跺弻鍑繪墦寮鍚庡氨鏄疍:\Temp鏂囦歡澶逛腑鐨勫唴瀹廣?nbsp;
3.鍒犻櫎铏氭嫙杞┍ 
濡傛灉浣犺鍒犻櫎榪欎釜铏氭嫙鍑烘潵鐨凙鐩橈紝鍙鎵ц“subst A:/D”鍛戒護灝辮浜嗭紝鍒囪宸ヤ綔緇撴潫鍚庝竴瀹氳鍙婃椂鍒犻櫎榪欎釜铏氭嫙鍑烘潵鐨凙鐩橈紝鍚﹀垯鏃犳硶姝e父浣跨敤鍘熸潵鐨勭墿鐞咥鐩樺摕銆?nbsp;
鏈変簺杞歡鍙兘鍦ㄨ蔣鐩樹笂榪愯錛岃繖鏄蔣浠跺紑鍙戣呯殑鐗瑰埆璁捐錛屼富瑕佺洰鐨勬槸涓轟簡闃叉闈炴硶鎷瘋礉銆備笉榪囷紝鎴戜滑鍙互鍏堥氳繃HD-COPY宸ュ叿灝嗚蔣鐩樺仛鎴愪竴涓墿灞曞悕涓篿mg鐨勯暅鍍忔枃浠跺瓨鏀懼湪紜洏涓婄殑鏌愪釜鏂囦歡澶逛腑錛岀劧鍚庡埄鐢↖MGDRIVE銆乁NDISK絳夊伐鍏瘋蔣浠跺皢璇ラ暅鍍忔枃浠跺睍寮錛岃繖鏍峰氨鍙互鍦ㄧ‖鐩樹笂鍒涘緩涓涓櫄鎷熻蔣鐩橈紝鑷劧涔熷氨鍙互姝e父榪愯浜嗭紝涓嶈繃濡傛灉鏄姞瀵嗙殑杞歡錛屽垯鏃犳硶閫氳繃榪欑鏂規硶姝e父榪愯銆?/p>

BeyondCN 2009-03-21 13:18 鍙戣〃璇勮
]]>
SECTOR, TRACK AND CLUSTERhttp://m.shnenglu.com/BeyondCN/archive/2009/03/19/77121.htmlBeyondCNBeyondCNThu, 19 Mar 2009 02:20:00 GMThttp://m.shnenglu.com/BeyondCN/archive/2009/03/19/77121.htmlhttp://m.shnenglu.com/BeyondCN/comments/77121.htmlhttp://m.shnenglu.com/BeyondCN/archive/2009/03/19/77121.html#Feedback0http://m.shnenglu.com/BeyondCN/comments/commentRss/77121.htmlhttp://m.shnenglu.com/BeyondCN/services/trackbacks/77121.html

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


BeyondCN 2009-03-19 10:20 鍙戣〃璇勮
]]>
鎵樼涓庨潪鎵樼浠g爜涔嬮棿鐨勭浉浜掕皟鐢?/title><link>http://m.shnenglu.com/BeyondCN/archive/2008/11/14/66895.html</link><dc:creator>BeyondCN</dc:creator><author>BeyondCN</author><pubDate>Fri, 14 Nov 2008 03:40:00 GMT</pubDate><guid>http://m.shnenglu.com/BeyondCN/archive/2008/11/14/66895.html</guid><wfw:comment>http://m.shnenglu.com/BeyondCN/comments/66895.html</wfw:comment><comments>http://m.shnenglu.com/BeyondCN/archive/2008/11/14/66895.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.shnenglu.com/BeyondCN/comments/commentRss/66895.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/BeyondCN/services/trackbacks/66895.html</trackback:ping><description><![CDATA[     鎽樿:   <a href='http://m.shnenglu.com/BeyondCN/archive/2008/11/14/66895.html'>闃呰鍏ㄦ枃</a><img src ="http://m.shnenglu.com/BeyondCN/aggbug/66895.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/BeyondCN/" target="_blank">BeyondCN</a> 2008-11-14 11:40 <a href="http://m.shnenglu.com/BeyondCN/archive/2008/11/14/66895.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>CLI/C++涓販鍚堢被鐨勪嬌鐢紙杞級http://m.shnenglu.com/BeyondCN/archive/2008/11/08/66321.htmlBeyondCNBeyondCNSat, 08 Nov 2008 05:26:00 GMThttp://m.shnenglu.com/BeyondCN/archive/2008/11/08/66321.htmlhttp://m.shnenglu.com/BeyondCN/comments/66321.htmlhttp://m.shnenglu.com/BeyondCN/archive/2008/11/08/66321.html#Feedback0http://m.shnenglu.com/BeyondCN/comments/commentRss/66321.htmlhttp://m.shnenglu.com/BeyondCN/services/trackbacks/66321.html闃呰鍏ㄦ枃

BeyondCN 2008-11-08 13:26 鍙戣〃璇勮
]]>
.net涓殑 delegate鐨勬爣鍑咰++妯℃嫙(杞?http://m.shnenglu.com/BeyondCN/archive/2008/11/07/66183.htmlBeyondCNBeyondCNThu, 06 Nov 2008 16:24:00 GMThttp://m.shnenglu.com/BeyondCN/archive/2008/11/07/66183.htmlhttp://m.shnenglu.com/BeyondCN/comments/66183.htmlhttp://m.shnenglu.com/BeyondCN/archive/2008/11/07/66183.html#Feedback0http://m.shnenglu.com/BeyondCN/comments/commentRss/66183.htmlhttp://m.shnenglu.com/BeyondCN/services/trackbacks/66183.html闃呰鍏ㄦ枃

BeyondCN 2008-11-07 00:24 鍙戣〃璇勮
]]>
ISO C++瀹炵幇 綾諱技 C#鐨?Delegatehttp://m.shnenglu.com/BeyondCN/archive/2008/11/06/66180.htmlBeyondCNBeyondCNThu, 06 Nov 2008 15:29:00 GMThttp://m.shnenglu.com/BeyondCN/archive/2008/11/06/66180.htmlhttp://m.shnenglu.com/BeyondCN/comments/66180.htmlhttp://m.shnenglu.com/BeyondCN/archive/2008/11/06/66180.html#Feedback0http://m.shnenglu.com/BeyondCN/comments/commentRss/66180.htmlhttp://m.shnenglu.com/BeyondCN/services/trackbacks/66180.html闃呰鍏ㄦ枃

BeyondCN 2008-11-06 23:29 鍙戣〃璇勮
]]>
C++/CLI 涓瓧絎︿覆綾誨瀷鐨勮漿鍖? std::string鍜孲ystem::String鐨勭浉浜掕漿鎹?/title><link>http://m.shnenglu.com/BeyondCN/archive/2008/11/06/66145.html</link><dc:creator>BeyondCN</dc:creator><author>BeyondCN</author><pubDate>Thu, 06 Nov 2008 09:31:00 GMT</pubDate><guid>http://m.shnenglu.com/BeyondCN/archive/2008/11/06/66145.html</guid><wfw:comment>http://m.shnenglu.com/BeyondCN/comments/66145.html</wfw:comment><comments>http://m.shnenglu.com/BeyondCN/archive/2008/11/06/66145.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://m.shnenglu.com/BeyondCN/comments/commentRss/66145.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/BeyondCN/services/trackbacks/66145.html</trackback:ping><description><![CDATA[     鎽樿:   <a href='http://m.shnenglu.com/BeyondCN/archive/2008/11/06/66145.html'>闃呰鍏ㄦ枃</a><img src ="http://m.shnenglu.com/BeyondCN/aggbug/66145.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/BeyondCN/" target="_blank">BeyondCN</a> 2008-11-06 17:31 <a href="http://m.shnenglu.com/BeyondCN/archive/2008/11/06/66145.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鍦?.Net 涓疄鐜拌嚜瀹氫箟浜嬩歡錛堣漿錛?/title><link>http://m.shnenglu.com/BeyondCN/archive/2008/11/03/65798.html</link><dc:creator>BeyondCN</dc:creator><author>BeyondCN</author><pubDate>Sun, 02 Nov 2008 16:58:00 GMT</pubDate><guid>http://m.shnenglu.com/BeyondCN/archive/2008/11/03/65798.html</guid><wfw:comment>http://m.shnenglu.com/BeyondCN/comments/65798.html</wfw:comment><comments>http://m.shnenglu.com/BeyondCN/archive/2008/11/03/65798.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.shnenglu.com/BeyondCN/comments/commentRss/65798.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/BeyondCN/services/trackbacks/65798.html</trackback:ping><description><![CDATA[     鎽樿: 鍦?.Net 涓疄鐜拌嚜瀹氫箟浜嬩歡 銆銆.Net 涓殑鑷畾涔変簨浠訛紝鍏跺疄鏄埄鐢ㄥ鎵樺疄鐜幫紝澶ф鍙互鍒嗕負浠ヤ笅鍑犱釜姝ラ錛?銆佸畾涔変簨浠朵紶閫佺殑 EventArgs 錛屽綋鐒朵篃鍙互鐩存帴浣跨敤緋葷粺鐨?EventArgs銆?銆佸畾涔夎浜嬩歡綾誨瀷鐨勫鎵樸?銆佸畾涔変簨浠剁殑澶勭悊鏂規硶銆?銆佸湪闇瑕佺殑鍦版柟鎶涘嚭浜嬩歡錛屾姏鍑虹殑浜嬩歡浼氬湪澶栭儴琚崟鎹夊埌銆傛垜浠互涓涓畝鍗曠殑璁$畻紼嬪簭涓轟緥璁茶В錛岃紼嬪簭瀹炵幇璁$畻涓や釜緇欏畾鏁板瓧鐨勫拰錛屽綋緇撴灉<=100鏃?..  <a href='http://m.shnenglu.com/BeyondCN/archive/2008/11/03/65798.html'>闃呰鍏ㄦ枃</a><img src ="http://m.shnenglu.com/BeyondCN/aggbug/65798.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/BeyondCN/" target="_blank">BeyondCN</a> 2008-11-03 00:58 <a href="http://m.shnenglu.com/BeyondCN/archive/2008/11/03/65798.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title> 浣跨敤Delegate綾誨瀷璁捐鑷畾涔変簨浠訛紙杞級http://m.shnenglu.com/BeyondCN/archive/2008/11/03/65797.htmlBeyondCNBeyondCNSun, 02 Nov 2008 16:55:00 GMThttp://m.shnenglu.com/BeyondCN/archive/2008/11/03/65797.htmlhttp://m.shnenglu.com/BeyondCN/comments/65797.htmlhttp://m.shnenglu.com/BeyondCN/archive/2008/11/03/65797.html#Feedback0http://m.shnenglu.com/BeyondCN/comments/commentRss/65797.htmlhttp://m.shnenglu.com/BeyondCN/services/trackbacks/65797.html闃呰鍏ㄦ枃

BeyondCN 2008-11-03 00:55 鍙戣〃璇勮
]]>
精品久久久久久久| 亚洲国产精品无码久久一区二区| 久久久久久一区国产精品| 久久成人影院精品777| 久久99精品久久只有精品| 青青草原综合久久大伊人精品| 精品乱码久久久久久夜夜嗨| 欧美亚洲国产精品久久久久| 综合网日日天干夜夜久久| 精品久久久久久无码专区不卡| 久久er99热精品一区二区| 香蕉99久久国产综合精品宅男自 | 久久伊人亚洲AV无码网站| 无码人妻久久一区二区三区免费| 久久精品国产亚洲av影院| 久久有码中文字幕| 99麻豆久久久国产精品免费 | 久久男人Av资源网站无码软件| 久久久久四虎国产精品| 久久无码AV中文出轨人妻| 久久天天躁狠狠躁夜夜av浪潮 | 久久综合丝袜日本网| 久久免费视频1| 精品无码人妻久久久久久| 国产产无码乱码精品久久鸭| 香蕉99久久国产综合精品宅男自| 国产高清国内精品福利99久久| 久久久精品人妻一区二区三区四| 久久久久亚洲av毛片大| 99久久精品费精品国产一区二区| 国产精品99久久久久久宅男小说| 久久精品无码免费不卡| 欧美激情精品久久久久| 97超级碰碰碰久久久久| 99久久国产精品免费一区二区| 香蕉99久久国产综合精品宅男自| 国产毛片久久久久久国产毛片| 久久久久国产一级毛片高清版| 久久最新精品国产| 丁香久久婷婷国产午夜视频| 亚洲一区二区三区日本久久九|