dsjbest2014
2016-03-02 11:45
浏览 110
已采纳

php nusoap服务器无法读取标头安全性

I'am a newbie to SOAP and I was asked to building a nusoap customized client and server. Actually, I am having a problem reading the following nusoap request header.

<wsa:Action> OTA_HotelRatePlanRQ </wsa:Action> 
<wsa:From> 
    <wsa:Address> urn:connect </wsa:Address> 
</wsa:From> 
<wsa:To> PartnerURL </wsa:To> 
<wsa:ReplyTo> 
    <wsa:Address> http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous </wsa:Address> 
</wsa:ReplyTo> 
<wsa:MessageID> 5f2c4c6b-642f-4d07-ad9c-02e5b5cdaa29 </wsa:MessageID> 
<wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis200401-wss-wssecurity-secext-1.0.xsd">
    <wsse:UsernameToken wsu:Id="SecurityToken-627f1ab1-338a-451f-9829-84f248e57ad8" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
        <wsse:Username> Username </wsse:Username> 
        <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile1.0#PasswordText"> password </wsse:Password> 
        <wsu:Created> 2014-12-19T16:09:15 </wsu:Created> 
    </wsse:UsernameToken> 
</wsse:Security>

In fact I've had hard time managing to send it from the client side; finally, I was able to send it using serializeEnvelope() and send() nusoap functions. Right now, I can't find a way to read it from the server side. it show the following error message: "Undefined index: wsa". Can any one help me please.

Thank you

图片转代码服务由CSDN问答提供 功能建议

我是SOAP的新手,我被要求构建一个nusoap自定义客户端和服务器。 实际上,我在阅读以下nusoap请求标题时遇到问题。

 &lt; wsa:Action&gt;  OTA_HotelRatePlanRQ&lt; / wsa:Action&gt;  
&LT; WSA:从大于;  
&lt; wsa:地址&gt;  urn:connect&lt; / wsa:地址&gt;  
&LT; / WSA:从大于;  
&LT; WSA:至大于 PartnerURL&lt; / wsa:To&gt;  
&LT; WSA:的ReplyTo&GT;  
&lt; wsa:地址&gt;  http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous&lt; / wsa:地址&gt;  
&LT; / WSA:的ReplyTo&GT;  
&LT; WSA:邮件ID&GT;  5f2c4c6b-642f-4d07-ad9c-02e5b5cdaa29&lt; / wsa:MessageID&gt;  
&lt; wsse:Security soapenv:mustUnderstand =“1”xmlns:wsse =“http://docs.oasis-open.org/wss/2004/01/oasis200401-wss-wssecurity-secext-1.0.xsd”&gt;  
&lt; wsse:UsernameToken wsu:Id =“SecurityToken-627f1ab1-338a-451f-9829-84f248e57ad8”xmlns:wsu =“http://docs.oasis-open.org/wss/2004/01/oasis-200401  -wss-wssecurity-utility-1.0.xsd“&gt; 
&lt; wsse:用户名&gt; 用户名&lt; / wsse:用户名&gt;  
&lt; wsse:Password Type =“http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile1.0#PasswordText”&gt; 密码&lt; / wsse:密码&gt;  
&lt; wsu:创建&gt;  2014-12-19T16:09:15&lt; / wsu:创建&gt;  
&lt; / wsse:UsernameToken&gt;  
&lt; / wsse:安全&gt; 
   
 
 

事实上,我很难设法从客户端发送它; 最后,我能够使用serializeEnvelope()和send()nusoap函数发送它。 现在,我找不到从服务器端读取它的方法。 它显示以下错误消息:“未定义的索引:wsa”。 任何人都可以帮助我。

谢谢

  • 写回答
  • 好问题 提建议
  • 追加酬金
  • 关注问题
  • 邀请回答

1条回答 默认 最新

相关推荐 更多相似问题