how to create SOAP webservice?
hey guys. i need to code soap webservice. i was wondering if you could help me out with a couple of questions?
1. i have these dependencies in my gradle file. do ineed smth more?
2. im given a
wsdl
file. do i need to have an xsd
file too?
3. do i still need a controller?
thanks in advance35 Replies
⌛
This post has been reserved for your question.
Hey @bambyzas! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose Post
button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
You need to decide whether you want to use Java EE or Jakarta EE
your jaxb-impl dependency is Java EE and your bind-api dependency is Jakarta EE
well at least the version you listed
sorry, i completely dont understand what u mean. can u elaborate?
Stack Overflow
How to avoid compatibility issues between Java EE and Jakarta EE?
After Oracle donated Java EE to the Eclipse Foundation, it was renamed to Jakarta EE.
With that, the javax namespace was changed to jakarta.
What does one need to take care about in order to avoid
Do you know the difference between Java EE and Jakarta EE?
sorry, no idea. but i dont know how its related to my question 😦
the whole thing for generating SOAP webservices is part of Java EE/Jakarta EE
and Java EE was replaced by Jakarta EE
and you cannot use both together, you have to decide for one of them
lets say i just want to use whatever is used in my current project
What version of Spring Boot are you using?
idk what Java EE or Jakarta EE is and nor do i care
226 and 109
This version is outdated by a lot
You can't expect anything to work with that
Anyways this is Spring Boot 2.x so you cannot use Jakarta EE with that
wdym? the app is working fine and i successfully am developing new features on it
it might work until it breaks in a way that can't be fixed
once again, i dont undesrstand how its related to my initial question 😦
The dependencies you posted won't work with SOAP
these are incompatible
For example
xsd2java "jakarta.xml.bind:jakarta.xml.bind-api:2.3.2"
is incompatible with your Spring versionhow do u know?
because
jakarta.xml.bind:jakarta.xml.bind-api:2.3.2
is a Jakarta EE dependencyok. so i deleted this dependency
and Jakarta EE dependencies use the
jakarta
root package which Spring 2 cannot work with
you might still need the corresponding Java EE/javax dependencynow im starting to understand
but how do i know what dependencies i need? bc in the official spring guide theres not a word mentioned about gradle
I don't think Gradle was that common with the Spring Boot version you are using
Also you likely won't find recent guides for that version because it's outdated by a lot
ok, nvm, i found smth:
implementation 'org.springframework.ws:spring-ws:4.0.11'
so what are the next steps?Are you sure this is for Spring Boot 2.2.6?
can i have a controller, like REST services have?
no idea. theres no info. i guess ill need to try and see 😦
Can you use
implementation 'org.springframework.ws:spring-ws'
and let Spring Boot figure out the correct version?done
so, maybe smb can help me out?
💤
Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping
.
Warning: abusing this will result in moderative actions taken against you.
Withtwhat exactly?
What happens when writing the web service and how is that different from your expectations?
💤
Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping
.
Warning: abusing this will result in moderative actions taken against you.
wdym "what happens when writing the web service"?
What's the issue you are encountering?
i dont understand if i can have a controller, like rest webservices have?
thats one of my questions
💤
Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping
.
Warning: abusing this will result in moderative actions taken against you.
I think so, yes
though I only know Java EE's SOAP thingy
💤
Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping
.
Warning: abusing this will result in moderative actions taken against you.