gungor / spring-webclient-soap

38 stars 24 forks source link

Getting Error while trying to invoke SOAP service #6

Open pavithra10391 opened 1 year ago

pavithra10391 commented 1 year ago

Hi... I am trying to convert the existing SOAP call happening via WebServiceTemplate extends WebServiceGatewaySupport to reactive SOAP call. Thanks for the repo, very useful. But When I tried to implement the same in my application, getting error during marshalling(Jaxb2SoapEncoder)

No generated classes in my application having @XmlRootElement annotation.

Could you please let me know whether we need to use same Jaxb2SoapEncoder or some other marshaller(Jaxb2Marshaller) and how to add SSL certificate, keystore and Interceptors to WebClient before making SOAP call.

It will be very helpful if I get reply soon.

pavithra10391 commented 1 year ago

Could you please let me know, how to generate class with @XmlRootElement annotation, is there any configuration we need to do ?

Gus-2 commented 1 year ago

@pavithra10391 Hi, did you find a solution for that ?

pavithra10391 commented 1 year ago

Hi

  1. For now, modified Jaxb2SoapEncoder.java to encode for specific request instead of generic SoapEnvelopeRequest.
  2. If this is implemented with hibernate, I could see hibernate select queries executing more than once, that is taking time to get response
  3. This repo using WebServiceMessage to marshal the request, that is removing the purpose of reactive nature. Is this correct?
  4. I tried to add intercepter at Config.java, that is not printing the reuest and response properly. Please address my queries