How to write path to location in XML/WSDL doc in Rails?

落爺英雄遲暮 提交于 2019-12-11 01:33:52

问题


I have a WSDL doc with XSD import.

 <xsd:import namespace="http://site.com" schemaLocation="schema.xsd"/>

WSDL tool assumes that schema is in the same directory, but load fails in rails with error

 <RuntimeError: Unable to find schema for "http://site.com">

I've tried write path from rails root and from system root, but with no success.

I use Savon 3 to deal with WSDL in rails. SoapUI works with this schemas normally.

So, what is the right way to write this path?

来源:https://stackoverflow.com/questions/19518266/how-to-write-path-to-location-in-xml-wsdl-doc-in-rails

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!