我正在开发一个我需要发送请求的项目 和envlope,header或body对象,如下所示
<Response>
<SrvType>GET_NUMBER_DETAILS</SrvType>
<AppName>IVR</AppName>
<ClientSessionId>KSJ77SDS678DF7</ClientSessionId>
<ClientTxnId>2145</ClientTxnId>
<MsgOrigin>ECHELON</MsgOrigin>
<MsgDest>IVRGW</MsgDest>
<Timestamp>03/07/2013 15:32:49:357</Timestamp>
<RespCode>SC0000</RespCode>
<RespDesc>SUCCESS</RespDesc>
<Data>
<Detail>
<Param>
<Name>MSISDN</Name>
<Value>987667756</Value>
</Param>
<Param>
<Name>ICCID</Name>
<Value>87655467898776544568</Value>
</Param>
<Param>
<Name>IMSI</Name>
<Value>879097897883212</Value>
</Param>
<Param>
<Name>Status</Name>
<Value>ACTIVE</Value>
</Param>
<Param>
<Name>LastStatusChangeDate</Name>
<Value>30/12/2012</Value>
</Param>
<Param>
<Name>CreationDate</Name>
<Value>22/11/2012</Value>
</Param>
<Param>
<Name>ActivationDate</Name>
<Value>30/12/2012</Value>
</Param>
<Param>
<Name>LastUpdationDate</Name>
<Value>30/12/2012</Value>
</Param>
<Param>
<Name>PIN1</Name>
<Value>0000</Value>
</Param>
<Param>
<Name>PIN2</Name>
<Value>1020</Value>
</Param>
<Param>
<Name>PUK1</Name>
<Value>24180410</Value>
</Param>
<Param>
<Name>PUK2</Name>
<Value>23171840</Value>
</Param>
</Detail>
</Data>
</Response>
到目前为止,我的最佳尝试产生了以下内容
是否可以生成以上方式请求
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header/>
<SOAP-ENV:Body/>
<Request>
<SrvType>GET_NUMBER_DETAILS</SrvType>
<Username>Tigocare</Username>
<Password>Tigocare1234</Password>
<AppName>Tigocare</AppName>
<ClientSessionId>617502789907903890</ClientSessionId>
<ClientTxnId>619246981138215392</ClientTxnId>
<MsgOrigin>Tigocare</MsgOrigin>
<MsgDest>ECHELON</MsgDest>
<Timestamp>08-06-2015 15:56:08:001</Timestamp>
<Data>
GET_NUMBER_DETAILS
<Detail>
<Param>
<Name>NumberType</Name>
<Value>3</Value>
</Param>
<Param>
<Name>MSISDN</Name>
<Value>277551488</Value>
</Param>
</Detail>
</Data>
</Request>
</SOAP-ENV:Envelope>
/ ........................................... .................................................. .................................................. 。 .................................................. ...................... /
答案 0 :(得分:2)
如果没有SOAP信封和正文,则无法创建SOAP消息,因为它们是确认SOAP标准的任何消息的必需参数。如果您需要,可以创建包含所有必需标记和属性的普通XML消息。但是,您必须处理与其名称等一起使用的所有标签。