第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機(jī)立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

如何在客戶端使用jaxws訪問websevice響應(yīng)標(biāo)頭?

如何在客戶端使用jaxws訪問websevice響應(yīng)標(biāo)頭?

慕妹3242003 2021-05-11 13:18:15
我正在開發(fā)一個應(yīng)用程序,當(dāng)我用jaxws wsimport導(dǎo)入wsdl Web服務(wù)時,這抽象了Java類的復(fù)雜類型。但是它僅將主體響應(yīng)抽象為類,并且我需要在Web服務(wù)響應(yīng)標(biāo)頭中獲取一些數(shù)據(jù),如何在客戶端使用jaxws訪問Web服務(wù)響應(yīng)標(biāo)頭?代碼:    //Instance of Service       SessionCreateRQService sessionCreateService = new SessionCreateRQService();    SessionCreatePortType requestSessionCreate = sessionCreateService.getSessionCreatePortType();    //Get datas to request header     MessageHeader messageHeader = getMessageHeader(MESSAGE_ID, timestamp, URI_PartyId, Services.SessionCreateRQ ,Actions.SessionCreateRQ);    Holder<MessageHeader> holderMessage = new Holder<MessageHeader>(messageHeader);    //Get another datas to request header     Security security = getSecuritySessionCreateRQ();    Holder<Security> holderSecurity = new Holder<>(security);    //Get datas to quest body    SessionCreateRQ body = new SessionCreateRQ();    body.setPOS(getPOS());    //Call the websevice and receiving the response.    // ---->>>I need access the response webservice header here.<<-----    SessionCreateRS sessionCreateRS = requestSessionCreate.sessionCreateRQ(holderMessage, holderSecurity, body);謝謝你。
查看完整描述

1 回答

?
慕虎7371278

TA貢獻(xiàn)1802條經(jīng)驗 獲得超4個贊

您需要在客戶端中添加一個處理程序

您可以在這里找到更多詳細(xì)信息


查看完整回答
反對 回復(fù) 2021-05-26
  • 1 回答
  • 0 關(guān)注
  • 129 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號