簡體   English   中英

沒有 <wsse:Security> TerminateSequence消息中的元素

[英]No <wsse:Security> element in TerminateSequence message

我正在使用帶有WS-Reliable MessagingWS-Securitygsoap庫來實現一個肥皂客戶端,以調用單向遠程操作。

TerminateSequence數據包外,所有肥皂消息( CreateSequence ,實際消息, CloseSequence )在肥皂頭中都有一個<wsse:Security>元素。 我想念什么嗎?

我的代碼(SSCCE)如下所示:

// load plugins
soap_register_plugin(soap, soap_wsa);
soap_register_plugin(soap, soap_wsrm);
soap_register_plugin(soap, soap_wsse);

// set security
soap_wsse_add_Security(soap);
soap_wsse_add_Security_actor(soap, "recipient");
soap_wsse_add_UsernameTokenText(soap, NULL, "username", "password"); //plain text

// start sequence
soap_wsrm_create(soap, "http://localhost:4242/", NULL, 0, NULL, &seq);

// set wsrm header
soap_wsrm_request(soap, seq, NULL, "http://some/action/here/");

// call remote action
some_remote_method(param);

// close sequence
soap_wsrm_close(soap, seq, NULL);

// terminate sequence
soap_wsrm_terminate(soap, seq, NULL);

//clean up soap object here

出現這種情況是由於一個錯誤的gSOAP的庫v2.8.15的WSRM插件。 該修補程序在v2.8.18中可用

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM