发送带有嵌入式swift消息的请求?

时间:2019-02-18 15:31:35

标签: java c# xml soap postman

Postman 我试图使用带有原始正文的邮递员发送带有嵌入式swift消息的xml请求。预期的响应是ACK。

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:int="http://integration.gwclient.smallsystems.cma.se/"> 
        <soapenv:Header/> 
        <soapenv:Body> 
        <int:send><message> 
        <block4>{1:F01ZBCSZWHXEXXX0001000005}{2:I998CDCZZWHXSXXXN}{3:{108:170123150100004}{113:1080}}
        {4:
        :20:201901111611001
        :12:921
        :77E:
        :23:NEWM
        :03:/INVESTOR
        /TMPL/INVCTRADE
        /PCOD/CTR100000001
        /BIRD/19911215
        :79:/ACCT/SECU
        /SSAC/ZBCSZWHX
        /DAAS/ZBCSZWHX
        /INVA/CTR000002
        /INVN/CLIVEMUNASHE
        /INVD/20180211
        -}
        </block4> 
        <msgReceiver>CDCZZWHXSXXX</msgReceiver> 
        <msgSender>ESCMonitor10</msgSender> 
        <msgType>598</msgType> 
        <msgUserReference>FT1331669661</msgUserReference> 
        <format>MT</format> 
        </message></int:send> 
        </soapenv:Body>
        </soapenv:Envelope>


    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
        <soap:Body>
            <ns2:sendResponse xmlns:ns2="http://integration.gwclient.smallsystems.cma.se/">
                <data>
                    <type>NAK</type>
                    <datetime>190218</datetime>
                    <mir>190218ESCMonitor100001000023</mir>
                    <code>EV28010</code>
                    <description>Invalid text block. Excpected characters not found</description>
                    <info>\r\n-}</info>
                </data>
            </ns2:sendResponse>
        </soap:Body>
    </soap:Envelope>

我期望的响应是ACK。邮递员无法识别换行符并通知\ r \ n-}。每次发送请求时,都会得到NAK。

0 个答案:

没有答案