【发布时间】:2017-10-15 07:36:39
【问题描述】:
您好,我正在开发包含 Siebel Web 服务集成的 Web 应用程序。所有请求/响应周期都将通过 XML 进行。它基本上是 SOAP 服务。我不知道siebel 和soap xml。我正在尝试将 siebel 服务集成到 WebAPi2 中。客户向我提供了请求和响应,并创建了示例服务进行测试。我可以在提琴手中调用 siebel 服务。在我的 webapi2 中,我想集成服务。
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:rol="Some Url">
<soapenv:Header/>
<soapenv:Body>
<rol:process>
<rol:IDType>National Id</rol:IDType>
<rol:Type>Customer</rol:Type>
// other parametrs
</rol:process>
</soapenv:Body>
</soapenv:Envelope>
下面是回复
<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsa="http://www.w3.org/2005/08/addressing">
<env:Header>
<wsa:MessageID>urn:some id</wsa:MessageID>
<wsa:ReplyTo>
<wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address>
</wsa:ReplyTo>
<wsa:FaultTo>
<wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address>
</wsa:FaultTo>
</env:Header>
<env:Body>
<processResponse xmlns="some url">
<result>1-198A3H</result>
<Contact_Integration_Id>1-198A3H</Contact_Integration_Id>
<SIEBEL_ERROR_CODE/>
<SIEBEL_ERRROR_MESSAGE/>
</processResponse>
</env:Body>
</env:Envelope>)
他们还提供了公共 url 来访问 API。 由于我不知道 .Net 中的 Siebel 集成,并且我没有找到任何合适的教程,我期待从这里得到一些帮助。我在这里得到的任何帮助/建议都非常感谢。谢谢你。
【问题讨论】:
-
这个问题实际上与 Siebel 无关:您有一个有效的 WSDL,并且不需要关心 Web 服务是用 Siebel、Java、C# 还是其他语言编写的。您可以忘记 Siebel 部分,而专注于如何在 .Net 中集成 any WSDL - 我猜应该更容易找到相关文档吧?虽然我从未使用过 .Net... :)
-
感谢您的建议。
标签: c# web-services soap siebel