| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 690 人关注过本帖
标题:如何修改发送或返回的SOAP头
只看楼主 加入收藏
sdgjsddd
Rank: 1
等 级:新手上路
帖 子:199
专家分:0
注 册:2007-6-14
收藏
 问题点数:0 回复次数:1 
如何修改发送或返回的SOAP头
    本人正用WEB SERVICE写的一个接收程序,用于接收对方发送给我的SOAP消息,经处理后,又返回SOAP消息给对方
    我注意到,对方发给我的SOAP头是<SOAP-ENV>格式的,而我返回的SOAP头却是<soap>
    请看:
    以下是对方发给我的SOAP消息
    <?xml version="1.0" encoding="utf-8"?>
<SOAP-ENV:Envelope xmlns:xsi="http://www. xmlns:xsd="http://www. xmlns:SOAP-ENV="http://schemas. xmlns:SOAP-ENC="http://schemas.
  <TransactionID xmlns="http://www.
</SOAP-ENV:Header>
<SOAP-ENV:Body>
  <SyncOrderRelationReq xmlns="http://www.
    <Version>1.5.0</Version><MsgType>SyncOrderRelationReq</MsgType>
    <Send_Address><DeviceType>0</DeviceType><DeviceID>0001</DeviceID></Send_Address>
    <Dest_Address><DeviceType>400</DeviceType><DeviceID>0</DeviceID></Dest_Address>
    <FeeUser_ID><UserIDType>1</UserIDType><MSISDN>13800138000</MSISDN><PseudoCode></PseudoCode></FeeUser_ID>
    <DestUser_ID><UserIDType>1</UserIDType><MSISDN>13800138000</MSISDN><PseudoCode></PseudoCode></DestUser_ID>
    <LinkID>LinkID</LinkID>
    <ActionID>1</ActionID>
    <ActionReasonID>1</ActionReasonID>
    <SPID>900000</SPID>
    <SPServiceID>abcd</SPServiceID>
    <AccessMode>3</AccessMode>
    <FeatureStr></FeatureStr>
  </SyncOrderRelationReq></SOAP-ENV:Body>
</SOAP-ENV:Envelope>



     以下是我返回的SOAP消息:
     <?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.
 xmlns:xsi="http://www.
 xmlns:xsd="http://www.
<soap:Header>
<TransactionID xmlns="http://www.
</soap:Header>
<soap:Body>
<SyncOrderRelationResp xmlns="http://www.
<Version>1.5.0</Version>
<MsgType>SyncOrderRelationResp</MsgType>
<hRet>1</hRet>
</SyncOrderRelationResp>
</soap:Body>
</soap:Envelope>


如何将我的SOAP头<soap>改为<SOAP-ENV>返回去呢??请教,谢谢
搜索更多相关主题的帖子: SOAP 
2009-11-10 14:59
快速回复:如何修改发送或返回的SOAP头
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.015642 second(s), 9 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved