web-services – 如何在使用Transaction Exchange Server Web服务时正确获取名称空间?

web-services – 如何在使用Transaction Exchange Server Web服务时正确获取名称空间?,第1张

概述我正在尝试使用 TxServer web service,但我收到了错误响应 Unmarshalling Error: unexpected element (uri: “http://txserver.sut.softekpr.com/1″, local:”transaction”). Expected elements are<{}transaction>`. 我发现Delphi生成的XML不 我正在尝试使用 TxServer web service,但我收到了错误响应

Unmarshalling Error: unexpected element (uri: “http://txserver.sut.softekpr.com/1″,local:”transaction”). Expected elements are<{}transaction>`.

我发现Delphi生成的XML不能与服务一起使用,
但如果我将xmlns =“”添加到事务标记,它就可以工作.
任何人都可以帮我添加xmlns =“”到事务标记?
我想要:< transaction xmlns =“”>.

BTW我尝试改变:InvRegistry.RegisterInvokeOptions(TypeInfo(TxServer),iodocument);所有的io ..选项,但它不起作用.

<?xml version="1.0"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"  xmlns:xsd="http://www.w3.org/2001/XMLSchema"   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">  <SOAP-ENV:Body>    <requestIVuloto xmlns="http://txserver.sut.softekpr.com/1">      <transaction>        <merchantID>00000000000</merchantID>        <municipalTax>.01</municipalTax>        <stateTax>.06</stateTax>        <subTotal>1</subTotal>        <tenderType>CASH</tenderType>        <terminalID>POS02</terminalID>        <terminalPassword/>        <total>1.07</total>        <txDate>2011-05-05T10:02:17.708Z</txDate>        <txType>SALE</txType>      </transaction>    </requestIVuloto>  </SOAP-ENV:Body></SOAP-ENV:Envelope>
解决方法 RemClassRegistry.RegisterXSClass(InstitutionCode,#0,’InstitutionCode’);

其中InstitutionCode是某个节点名称,#0为空字符,只是空字符串”不工作,它被生成的名称替换.

它可能是宽字符串的问题,但您可以使用TXsstring

总结

以上是内存溢出为你收集整理的web-services – 如何在使用Transaction Exchange Server Web服务时正确获取名称空间?全部内容,希望文章能够帮你解决web-services – 如何在使用Transaction Exchange Server Web服务时正确获取名称空间?所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/web/1073193.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-26
下一篇 2022-05-26

发表评论

登录后才能评论

评论列表(0条)

保存