在Oracle上发送soap xml

时间:2014-05-20 13:19:30

标签: xml oracle soap

我如何在Oracle上发送关注的soap xml。我发现了一个关于这个问题的话题,但我没有根据指定的主题解决这个问题。实际上我想最基本地发送这个消息。

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
    <s:Body>
        <registerFor xmlns="http://tempuri.org/">
            <composite xmlns:a="http://schemas.datacontract.org/2004/07/ServiceWcf" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
                <a:AppKey>456DSFSDFDS789DSFSDFSDF</a:AppKey>
                <a:AppSecret>SDFSDF7894DSF465DSF46546DSFSDF</a:AppSecret>
                <a:args xmlns:b="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
                    <b:KeyValueOfstringanyType>
                        <b:Key>username</b:Key>
                        <b:Value i:type="c:string" xmlns:c="http://www.w3.org/2001/XMLSchema">mjora</b:Value>
                    </b:KeyValueOfstringanyType>
                    <b:KeyValueOfstringanyType>
                        <b:Key>body</b:Key>
                        <b:Value i:type="c:string" xmlns:c="http://www.w3.org/2001/XMLSchema">Message detail</b:Value>
                    </b:KeyValueOfstringanyType>
                </a:args>
            </composite>
        </registerFor>
    </s:Body>
</s:Envelope>

1 个答案:

答案 0 :(得分:0)

有两种常见方式:

  • 使用普通PL / SQL和UTL_HTTP包发送请求;
  • 使用UTL_DBWS包与SOAP级别的文档样式服务进行交互。

网络上有很多这样的案例,即使是在StackOverflow(serach-1serach-2上)也是如此,而且过于通用的主题可以在回答中发布完整的解释。