Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Savon doesn't follow xsd:import in wsdl's xsd:schema #258

Closed
kjg opened this issue Jan 25, 2012 · 7 comments
Closed

Savon doesn't follow xsd:import in wsdl's xsd:schema #258

kjg opened this issue Jan 25, 2012 · 7 comments
Assignees
Milestone

Comments

@kjg
Copy link
Contributor

kjg commented Jan 25, 2012

For example https://ws5.responsys.net/webservices/wsdl/ResponsysWS_Level1.wsdl contains the following, but doesn't pull in and evaluate the resources at the specified schemaLocations.

<xsd:schema>
    <xsd:import namespace="urn:ws.rsys.com" schemaLocation="../services/ResponsysWSService/_resources_/xsd/ResponsysWSTypes_Schema.xsd"/>
</xsd:schema>
<xsd:schema>
    <xsd:import namespace="urn:fault.ws.rsys.com" schemaLocation="../services/ResponsysWSService/_resources_/xsd/ResponsysWSFaults_Schema.xsd"/>
</xsd:schema>
@rubiii
Copy link
Contributor

rubiii commented Feb 20, 2012

you're right. in lack of a decent wsdl/xsd parser, savon uses wasabi, which is a very simple parser and one of the feature it lacks is support for wsdl imports. i guess it wouldn't be too difficult to support it, but i simply haven't had the time to do it.

@rubiii
Copy link
Contributor

rubiii commented Jun 6, 2012

closing this as it's stale. if you can help fixing this issue, please let me know.

@rubiii rubiii closed this as completed Jun 6, 2012
@rajeev-sourcebits
Copy link
Contributor

Was this feature of supporting wsdl:imports included in the LIbrary ?
If not, what is the workaround I can use to support SOAP Services with wsdl:imports.

Thanks
Rajeev

@rubiii rubiii reopened this Jun 5, 2013
@rubiii
Copy link
Contributor

rubiii commented Jun 5, 2013

version 3.0 is supposed to finally solve this.
everyone: please follow savonrb/wasabi#27 for now.

@rubiii
Copy link
Contributor

rubiii commented Jul 1, 2013

the milestone ticket for version 3 is #473 and initial documentation for version 3 is online.
both wsdl and xml schema imports are already supported. please give it a try and report any problems.

@rubiii rubiii closed this as completed Jul 1, 2013
@rubiii
Copy link
Contributor

rubiii commented Jul 1, 2013

fyi: it's possible to work around this problem. if savon can't find the types due to imports, you may need to handle things like namespaces yourself. please read up on how you can use gyoku to create a request hash that matches an example request generated by soapUI.

ps. and learn about namespaces. namespace identifiers don't mean anything. compare their values. end of rant ;)

@rubiii rubiii reopened this Jul 1, 2013
@rubiii rubiii closed this as completed Jul 1, 2013
@rajeev-sourcebits
Copy link
Contributor

👍

@ghost ghost assigned rubiii Jul 5, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants