萨翁身体问题

发布于 2024-12-04 19:10:13 字数 787 浏览 1 评论 0原文

require "savon"

client = Savon::Client.new "http://www.brenda-enzymes.org/soap2/brenda.wsdl"

response = client.request (:get_km_value) do |soap|
    soap.body = {'ecNumber' => '1.1.1.1'}
end

x = response[:get_km_value_response][:return]
puts x

给出结果 {"@xsi:type"=>"xsd:string"}

Expected Result:

"ecNumber*string#kmValue*string#kmValueMaximum*string#substrate*string#commentary*string#organism*string#ligandStructureId*string! ecNumber*string#kmValue*string#kmValueMaximum*string#substrate*string#commentary*string#organism*string#ligandStructureId*string! ecNumber*string#kmValue*string#kmValueMaximum*string#substrate*string#commentary*string#organism*string#ligandStructureId*string! ..."
require "savon"

client = Savon::Client.new "http://www.brenda-enzymes.org/soap2/brenda.wsdl"

response = client.request (:get_km_value) do |soap|
    soap.body = {'ecNumber' => '1.1.1.1'}
end

x = response[:get_km_value_response][:return]
puts x

Gives results {"@xsi:type"=>"xsd:string"}

Expected Result:

"ecNumber*string#kmValue*string#kmValueMaximum*string#substrate*string#commentary*string#organism*string#ligandStructureId*string! ecNumber*string#kmValue*string#kmValueMaximum*string#substrate*string#commentary*string#organism*string#ligandStructureId*string! ecNumber*string#kmValue*string#kmValueMaximum*string#substrate*string#commentary*string#organism*string#ligandStructureId*string! ..."

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

秋千易 2024-12-11 19:10:13

我终于通过使用 SOAP::Lite Perl 库 使其工作,启用 调试输出 并从其网站执行示例请求。

client = Savon::Client.new "http://www.brenda-enzymes.org/soap2/brenda.wsdl"

response = client.request(:get_km_value) do
  soap.body = {
    "c-gensym3" => "ecNumber*1.1.1.1#organism*Homo sapiens#"
  }
end

puts response[:get_km_value_response][:return]

I finally got it working by using the SOAP::Lite Perl library, enabling debug output and executing a sample request from their website.

client = Savon::Client.new "http://www.brenda-enzymes.org/soap2/brenda.wsdl"

response = client.request(:get_km_value) do
  soap.body = {
    "c-gensym3" => "ecNumber*1.1.1.1#organism*Homo sapiens#"
  }
end

puts response[:get_km_value_response][:return]
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文