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

Support for Play 3 #421

Open
stivens opened this issue Dec 28, 2023 · 6 comments
Open

Support for Play 3 #421

stivens opened this issue Dec 28, 2023 · 6 comments

Comments

@stivens
Copy link

stivens commented Dec 28, 2023

I've seen that support for 2.9 is on the way. What about 3.0?

@ihostage
Copy link
Member

Hi, @stivens! Support Play 3 is on the same way as 2.9.
But I haven't to say when we will release a final Play SOAP 2.0 yet 🤷‍♂️

@hacetin
Copy link

hacetin commented May 3, 2024

Any progress on play 3 support? I see that the project uses 2.9.2 already https://github.com/playframework/play-soap/blob/main/project/Dependencies.scala#L16

@stivens
Copy link
Author

stivens commented May 4, 2024

@hacetin you can use raw JAX-WS/Apache CXF instead

@hacetin
Copy link

hacetin commented May 6, 2024

Thanks @stivens

I guess it is not that straightforward. I couldn't find a guide to use it in Scala projects (wsdl to code generation etc.). Do you know an up-to-date guide

@stivens
Copy link
Author

stivens commented May 6, 2024

Maybe you have been searching for 'WSDL to Scala' but you should generate Java code actually. You can wrap it into some Scala-async-thingy later on.

AFAIR I've used wsimport in my case
https://www.baeldung.com/jax-ws#1-generating-web-service-source-files-from-wsdl

@hacetin
Copy link

hacetin commented May 7, 2024

Thank you @stivens wsimport works

To help others:
I've tried using WSDL2Java ("org.apache.cxf:cxf-tools-wsdlto-frontend-jaxws" and "org.apache.cxf:cxf-tools-wsdlto-databinding-jaxb", just like this plugin used in version 1.2.0) in a custom sbt task.

However I couldn't fixTools plugin provider jaxb context init failed exception. It was caused by ClassNotFoundException: org.glassfish.jaxb.runtime.v2.ContextFactory. I've tried adding many different dependencies (for both old and new versions, so both javax and jakarta implementations) in project/build.sbt but I was not able to fix the exception.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants