简体   繁体   English

带有动态XSD的WSDL

[英]WSDL with a dynamic XSD

Is anyone know how to expose a WSDL with a dynamic XSD ? 有谁知道如何使用动态XSD公开WSDL? The choice of the XSD should depend of URL parameters given during the WSDL request. XSD的选择应取决于WSDL请求期间给出的URL参数。 The operations of the WSDL WSDL的操作

Prefered framework is Spring Web Service but other solutions are welcome. 首选框架是Spring Web Service,但欢迎其他解决方案。

Regards, 问候,

Spring-ws is able to generate the WSDL on the fly, based on your XSD files. Spring-ws能够根据您的XSD文件即时生成WSDL。 I'm not sure if this is what you want since you're changing the webservice definition. 我不确定这是否是您要的,因为您正在更改Web服务定义。 In my opinion you should only have one definition. 我认为您应该只有一个定义。

Perhaps it's an option to provide multiple entry points, based on different XSD's. 也许可以选择基于不同的XSD提供多个入口点。 Since Spring-WS can take care of generating the WSDL that might be an option for you. 由于Spring-WS可以负责生成WSDL,因此您可以选择使用它。 It would at least provide you with only one WSDL. 至少将只为您提供一个WSDL。

Another option is of course to create a REST service where you're free to implement this any way you'd like. 当然,另一种选择是创建一个REST服务,您可以在其中随意选择任何方式来实现它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM