简体   繁体   中英

Scala equivalent to wsdl2java?

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.

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.

不确定它是否是你想要的,但是你看过http://scalaxb.org/wsdl-support吗?

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?

思考一个可以尝试结合wsdl2avroavro4s

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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