Scala equivalent to wsdl2java?

柔情痞子 提交于 2019-12-05 13:18:12

问题


Is ther any equivalent to wsdl2java that will take a WSDL file and generate scala stubs for the server and/or client?

I googled, but either there isn't or my google-fu is weak.


回答1:


scalaxb has some support for this, but it's still very much experimental and it's still client-side only. The only reliable techniques I've seen for handling the server side is either to generate the Java code via wsdl2java or other tools and then wrap that in Scala or, possibly, to use annotations to generate the WSDL from the Scala code. The later option is likely to lead to some pain, though, as you learn where Scala does and does not map readily to Java conventions.




回答2:


Not sure if it is what you want, but have you looked at http://scalaxb.org/wsdl-support?




回答3:


Looking at this old thread it seems possible to create custom mapping templates: http://www.mail-archive.com/axis-user@ws.apache.org/msg35857.html

Maybe you could use wsdl2java tool with custom templates creating Scala code?




回答4:


Thinking one can try to combine wsdl2avro and avro4s



来源:https://stackoverflow.com/questions/6388589/scala-equivalent-to-wsdl2java

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