gungor / spring-webclient-soap

38 stars 24 forks source link

Error In Jaxb2SoapDecoder #3

Closed MaToxZ closed 3 years ago

MaToxZ commented 3 years ago

Hello gungor,

First of all thanks for this approach how to use webclient to consume SOAP service, I was trying to compile your working example, since I'll be needing to consume SOAP service from a reactive spring application I'm currently building. But I'm facing issue while trying to compile the project, since it seems that Jaxb2XmlDecoder has change or something, your Decode class is showing errors for the "decode" method, since the Jaxb2XmlDecoder signature has change and your custom implementation for decode doesn't match with the supertype method. I'm going to leave an screenshot here:

I'm using JDK 11 (Coretto)

imagen

I really hope you help me to solve this issue. Thanks in Advance!. Have a great day.

gungor commented 3 years ago

Hi MaToxZ,

What is your spring-boot-starter-parent version ?

MaToxZ commented 3 years ago

I was just trying to compile and then run your working example, so I assume the spring-boot-starter-parent version is the one that you have in your POM.xml (working example) which is: 2.1.8.RELEASE. In case of my webflux application, It's running on `

org.springframework.boot
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>2.4.1</version>
    <relativePath/>
</parent>`

But I repeat, I haven't integrated your implementation in my project yet. I got the mentioned error while I was trying to compile and run the sources in https://github.com/gungor/spring-webclient-soap.git

gungor commented 3 years ago

I have updated spring-boot-starter-parent dependency to 2.4.1. It works now

MaToxZ commented 3 years ago

Yes, I updated the pom based on your last commit, and I was able to compile it and Run it. Thanks you @gungor