使用 PHP 中的 nusoap 将架构发送到 .NET Web 服务
不确定我的问题是什么,但我需要一些指示。
这是将保险保单信息发送到网络服务以获取报价回报的指南的一部分。其中“schema”和“xml”需要替换。
<soap:Body>
<Quote xmlns="http://[etc]/">
<PolicyDetails>
<xsd:schema>schema</xsd:schema>xml</PolicyDetails>
</Quote>
</soap:Body>
我正在使用 nusoap (PHP Soap 扩展不在服务器上,我无法安装它们),我通常会发送类似以下内容:
$client->call('Quote', 'PolicyDetails' => $xml);
但这不起作用。我收到错误:
Error: soap:Server: Server was unable to process request. ---> Object reference not set to an instance of an object.
我认为是因为我错过了“架构”部分。我知道 XML 应该是什么样子,但不知道我必须添加到“模式”中或应该如何添加。有人能指出我正确的方向吗?
Not sure what my question is here but I need some pointers.
This is part of a guide for sending Insurance policy information to a webservice to get a quote in return. Where 'schema' and 'xml' need to be replaced.
<soap:Body>
<Quote xmlns="http://[etc]/">
<PolicyDetails>
<xsd:schema>schema</xsd:schema>xml</PolicyDetails>
</Quote>
</soap:Body>
I am using nusoap (PHP soap extensions aren't on the server and I can't install them) and I would normally send something like:
$client->call('Quote', 'PolicyDetails' => $xml);
But this doesn't work. I get the error:
Error: soap:Server: Server was unable to process request. ---> Object reference not set to an instance of an object.
I assume because I'm missing out the 'schema' part. I know what the XML should look like but not what I have to add to 'schema' or how I should do it. Can anyone point me in the right direction?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您知道需要发送哪些变量吗?
尝试我在 webservices 案例中使用的代码:
Do you know what variables you need to send ?
Try my code which I use in my webserwice case: