Consume Soap Webservices using WebServiceTemplate | Spring Boot | Java Techie

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ม.ค. 2025

ความคิดเห็น • 207

  • @drashtinaik8320
    @drashtinaik8320 3 ปีที่แล้ว +5

    Perfect example, good with the flow and pace. Thanks for covering all the small things ,too .

  • @huseyinaydin99
    @huseyinaydin99 ปีที่แล้ว +1

    I love Spring Blood, i love SOAP WS, i love JavaTechie! I love love love Java and Subtechnology.

  • @Baratinha
    @Baratinha 2 ปีที่แล้ว +1

    You've been helping me a lot with all your videos. Tnks so much my friend

  • @ravireddy8711
    @ravireddy8711 5 ปีที่แล้ว +2

    Awesome video. Clear and straight forward explanation.

    • @Javatechie
      @Javatechie  5 ปีที่แล้ว

      Thanks Ravi 😊

  • @prasannakumarbiswal5648
    @prasannakumarbiswal5648 3 ปีที่แล้ว +1

    Thank you. This video helped a lot and saved me lot of time.

  • @ashishsahu1310
    @ashishsahu1310 2 ปีที่แล้ว

    Thanks alot Basant. Always comes up with interesting and simplest solutions.

    • @samsharief7382
      @samsharief7382 ปีที่แล้ว

      Where did you get that Janet.jaxb2 plug-in???

  • @MrRafarosa
    @MrRafarosa 5 ปีที่แล้ว +5

    You are legend. Thank you.

  • @ascar66
    @ascar66 ปีที่แล้ว +1

    Thank you! Nice video helped a lot

  • @ugochukwu.chigozie9698
    @ugochukwu.chigozie9698 3 ปีที่แล้ว +1

    Great Tutorial God bless you

  • @unemployedcse3514
    @unemployedcse3514 3 หลายเดือนก่อน +1

    awesome ❤

  • @lance9533
    @lance9533 3 ปีที่แล้ว +1

    Thanks for video, it work and it's great)

  • @aruna-wasantha
    @aruna-wasantha ปีที่แล้ว +1

    awsome tutorials

  • @khairulumam6010
    @khairulumam6010 4 ปีที่แล้ว +1

    thankyou , for simple and easy to understand tutorial

  • @alealdev
    @alealdev 2 ปีที่แล้ว +1

    great job

  • @Premkumar-ln7gt
    @Premkumar-ln7gt 5 ปีที่แล้ว +1

    U r always awesome...thanks for such a simple explanation.

  • @abhinavmishra9690
    @abhinavmishra9690 ปีที่แล้ว

    Thanks for easy explanation

  • @8Basil
    @8Basil 4 ปีที่แล้ว +1

    Thanks for making this tutorial simple and great.. Cheers

  • @SidneyMiranda
    @SidneyMiranda ปีที่แล้ว +1

    Thanks my brother

  • @AleksandarT10
    @AleksandarT10 2 ปีที่แล้ว

    It seems that there is an issue with maven-jaxb2-plugin plugin - i have a use case where the provided WSDL for some operations does not provide Requests/Responses as complex types, meaning no Java Classes are created - thus i dont know how to use it.
    Example like this would be. Any idea how i can manage it?

  • @yuvaraj600
    @yuvaraj600 3 ปีที่แล้ว +1

    I have followed same you mentioned but, when I run the application.java its giving below error. Am i missing something ?
    **************************
    APPLICATION FAILED TO START
    ***************************
    Description:
    Field marshaller in com.soapwebservice.DemoApplication required a bean of type 'org.springframework.oxm.jaxb.Jaxb2Marshaller' that could not be found.

  • @tavleensingh8572
    @tavleensingh8572 4 ปีที่แล้ว +1

    While running, I'm getting the error "
    Exception in thread "restartedMain" java.lang.reflect.InvocationTargetException
    ......
    at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49)
    Caused by: java.lang.IllegalArgumentException: marshaller must not be null
    SoapClient->getLoanStatus - I think marshaller is not autowired correctly. Could you please help?

    • @Javatechie
      @Javatechie  4 ปีที่แล้ว

      Please Google this error , even I will do the same

    • @tavleensingh8572
      @tavleensingh8572 4 ปีที่แล้ว +1

      @@Javatechie I was just following these steps. that is why asked. Thank u

    • @Javatechie
      @Javatechie  4 ปีที่แล้ว

      When I tried this I was using different version and now you might using different version so may be implementation change am not sure .
      Share your project in GitHub

  • @nareshn6628
    @nareshn6628 3 ปีที่แล้ว +2

    how to write junit/mock for my spring boot soap web service with request xml file? please help me on this.

  • @nataliagonzalezcervantes9421
    @nataliagonzalezcervantes9421 6 หลายเดือนก่อน +1

    How can I set more than one context path? I'm calling two clients and I've been created a package for each one so I'm not able to configure this two packages, can you help me?

  • @tamilselvanr694
    @tamilselvanr694 3 ปีที่แล้ว +1

    Helpful. Thanks

  • @lazharothmani9527
    @lazharothmani9527 5 ปีที่แล้ว +1

    thanks for all tutos , i found them very helpfull

    • @Javatechie
      @Javatechie  5 ปีที่แล้ว +2

      Good to hear from you 😃

    • @sumeetrawale646
      @sumeetrawale646 5 ปีที่แล้ว

      Where is remaining video on soap please share link of soap services or playlist

    • @Javatechie
      @Javatechie  5 ปีที่แล้ว

      th-cam.com/video/ceSqN3CWd14/w-d-xo.html

  • @bhaskerreddy9457
    @bhaskerreddy9457 4 ปีที่แล้ว +3

    I am not able to with gradle with same example, am jaxb error, every time

    • @renatamalek8437
      @renatamalek8437 4 ปีที่แล้ว

      did you manage to do using gradle?

  • @lakshmikumarreddy3138
    @lakshmikumarreddy3138 ปีที่แล้ว

    I am not able to generate java files with the wsdl file generated by Oracle Service Bus, the notations in the wsdl file like WL5G3N0,

  • @minpandey5188
    @minpandey5188 2 ปีที่แล้ว +1

    You the Man

  • @ivanetinajero
    @ivanetinajero 3 ปีที่แล้ว +1

    Great tutorial. Thanks for sharing.

  • @suman5917
    @suman5917 2 ปีที่แล้ว +1

    Hi for me the binding class not generated... note the maven clean install successfully completed and refreshed the project.

    • @Javatechie
      @Javatechie  2 ปีที่แล้ว

      What is the error you are getting?

  • @eswaresh8944
    @eswaresh8944 ปีที่แล้ว +1

    We are using WebserviceTemplate for consuming soap service in existing application. Now the new requirement is to send header Authorization with Bearer token value. For this change, implemented Client interceptor and set Authorization header. It's giving Bad request with 400 status code. Tried implementation using callback method approach also,getting same Bad Request when we hit the service. Any idea, how to fix it

    • @Javatechie
      @Javatechie  ปีที่แล้ว +2

      I will check this. With security i haven't done any poc with soap

    • @arlandmv4053
      @arlandmv4053 ปีที่แล้ว

      What is a poc?

  • @rahulagrawal8300
    @rahulagrawal8300 2 ปีที่แล้ว

    Hi we have implemented the soap same way as you have done. it is working file on local computer but when we are deploying this on our test environment then we are getting error that it did not know the context of input object class. please help

  • @noors3417
    @noors3417 ปีที่แล้ว +1

    hi bro can i use RestTemplate in the place of webserviceTemplate to consume?

    • @Javatechie
      @Javatechie  ปีที่แล้ว

      No you can’t resttemplate is not meant for consuming soap web services

  • @koraboinaraju9522
    @koraboinaraju9522 3 ปีที่แล้ว +1

    Hi am facing issue like No marshaller registered. Check configuration of webservice templage

    • @Javatechie
      @Javatechie  3 ปีที่แล้ว

      Just google it buddy either you missed some configuration or spring boot version upgraded

  • @jvrk6644
    @jvrk6644 5 ปีที่แล้ว +1

    Super boss

  • @rocio5058
    @rocio5058 ปีที่แล้ว

    nice video!, i have a question, if you use jaxb2 to generate the java class are they able to generate just one time or more times?

  • @sudhanshugera6690
    @sudhanshugera6690 4 ปีที่แล้ว +2

    It gives a bean creation exception in the config file. actually i am creating this in a project and not sure if it could be because of anything else, because i followed your steps only.

    • @Javatechie
      @Javatechie  4 ปีที่แล้ว

      Did you added required dependency ?

    • @sudhanshugera6690
      @sudhanshugera6690 4 ปีที่แล้ว

      @@Javatechie yes. I did.

    • @sudhanshugera6690
      @sudhanshugera6690 4 ปีที่แล้ว +1

      Hey. Anything you could suggest?

    • @Javatechie
      @Javatechie  4 ปีที่แล้ว

      Share me the exception please

    • @sudhanshugera6690
      @sudhanshugera6690 4 ปีที่แล้ว +1

      @@Javatechie org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'marshaller' defined in class path resource ["my config file location"]: Invocation of init method failed; nested exception is org.springframework.oxm.UncategorizedMappingException: Unknown JAXB exception; nested exception is javax.xml.bind.JAXBException: Implementation of JAXB-API has not been found on module path or classpath.

  • @2RAJ21
    @2RAJ21 วันที่ผ่านมา

    Thank you.
    rest is better then soap

  • @marcosvarela379
    @marcosvarela379 ปีที่แล้ว

    Thanks for this video!!!!
    I have a problem, I kindly request your help,
    I have implemented the call to a Soap ws from a Rest ws. There are no exceptions on execution, but the template.marshalSendAndReceive call returns the not null response, but with all properties null.
    Not so when the soap service is consumed directly from soap ui in xml, with the same parameters and values.
    I'm not using lombok
    I can contact you by mail or by some other means to give you details, in case you can help me.

    • @Javatechie
      @Javatechie  ปีที่แล้ว

      I saw your email will check and update you

  • @eduardocastellanos2933
    @eduardocastellanos2933 7 หลายเดือนก่อน

    hello awesome your video i have a question how can i make 2 wsdl is it necessary 2 plugins in the pom.xml?

  • @kishordige9721
    @kishordige9721 ปีที่แล้ว

    How to provide headers and ntlm authentication to web service. I am integrating Navison

  • @shilpasingla1739
    @shilpasingla1739 ปีที่แล้ว

    Hi Basant..have you ever tried to deploy soap web service on liberty of IBM was served? Need it urgently

  • @tomeshwarshiwane7381
    @tomeshwarshiwane7381 4 ปีที่แล้ว +1

    Thanks a lot 😊😊

  • @alvaroestebanpedraza6182
    @alvaroestebanpedraza6182 ปีที่แล้ว

    Do you have an example of generated class using and type elements?

  • @dhavamaniv3648
    @dhavamaniv3648 3 ปีที่แล้ว +1

    It's is really helpful sir. I have created both webservice provider and consumer as u taught in the tutorials. But getting null values for all XML elements in request message in provider end when posting via the rest controller. I feel some problem with the marshalling. But I followed all the steps exactly as suggested by you..can you share if you have any idea on this issue

    • @Javatechie
      @Javatechie  3 ปีที่แล้ว

      Did you configure Lombok in your IDE

    • @rajaduraip1626
      @rajaduraip1626 3 ปีที่แล้ว +1

      Yes…configured lombok

    • @Javatechie
      @Javatechie  3 ปีที่แล้ว

      Which ide you are using

    • @dhavamaniv3648
      @dhavamaniv3648 3 ปีที่แล้ว +1

      Am using intellij. You asking me the Lombok dependency in pom?

    • @Javatechie
      @Javatechie  3 ปีที่แล้ว

      Did you add Lombok plugin in your intelij idea 💡 . It seems issue with getter and setter methods

  • @bigbeast007
    @bigbeast007 ปีที่แล้ว

    When I pasted the content of the wsdl file like you had shown, and did a Clean & Build, my classes didn't get generated in the package like you had shown 😞

    • @Javatechie
      @Javatechie  ปีที่แล้ว

      Are there any compilation errors in pom.xml ?

    • @bigbeast007
      @bigbeast007 ปีที่แล้ว

      Nope@@Javatechie

  • @satyajitrajbanshi3620
    @satyajitrajbanshi3620 2 หลายเดือนก่อน +1

    Is it correct way to consume Soap services as Rest Client? I want to know the correct way to consume Soap services as I'm new to Saop web services

    • @Javatechie
      @Javatechie  2 หลายเดือนก่อน

      Yes this is correct way to define soap client

  • @rekhakalasare4910
    @rekhakalasare4910 3 ปีที่แล้ว

    Nice video. I have one question. For processing soap req res when soapmessage and interceptor come into picture? Would appreciate response

  • @iscjorgerg
    @iscjorgerg 5 ปีที่แล้ว

    The jaxb2 plugin does not build the binding classes and the instruction of maven clean and install working correctly. What could be the problem?

    • @abhinavsudam5971
      @abhinavsudam5971 5 ปีที่แล้ว

      The problem persists in maven-jaxb2-plugin aswell, it's probably some sort of bug in 0.8.3. When you generate the files into the same directory, the plugin "thinks" that the files have allready been generated and skips that second execution.
      I found that in order to generate the second execution you will have to set the argument
      :
      true
      In the configuration section.

  • @roshenwashnekar7828
    @roshenwashnekar7828 ปีที่แล้ว

    I'm getting error, jakarta.xml.bind.JAXBException: class nor any of it's super class is know to this context. Please help me for this error 🙏

    • @akanshi_gupta
      @akanshi_gupta ปีที่แล้ว

      Were you able to solve it? I am facing the same error

  • @simon8284
    @simon8284 4 หลายเดือนก่อน +1

    L0L, we are consuming soap web service using rest web service, then what's the point? Why not directly use rest?

    • @Javatechie
      @Javatechie  4 หลายเดือนก่อน

      This demo explain how to use webserviceClient

    • @simon8284
      @simon8284 4 หลายเดือนก่อน

      @@Javatechie can you share few links for proper examples of soap ws and clients?

  • @Rtiee
    @Rtiee 4 ปีที่แล้ว +3

    I am getting error in (execution) tag of jaxb plugin in pom.xml
    Error showing is :
    Unable to parse input schema(s)
    I did maven update also but error still not resolved

    • @Javatechie
      @Javatechie  4 ปีที่แล้ว +1

      Check output and input directory is correct or not

  • @sachinbhalla14
    @sachinbhalla14 3 ปีที่แล้ว

    i have a soap service and i want to consume it i do not know how to create wsdl file can u please tell me ??

  • @samsharief7382
    @samsharief7382 ปีที่แล้ว

    From where to get that jvnet jaxb2 plugin ???

  • @venkiramana8181
    @venkiramana8181 5 ปีที่แล้ว +1

    i have header and body both in my soap api request xml. In this case how can make call using WebServiceTemplate. Can you please help me in this

    • @Javatechie
      @Javatechie  5 ปีที่แล้ว

      Can you share your resource webservices

    • @venkiramana8181
      @venkiramana8181 5 ปีที่แล้ว

      @@Javatechie



      username

      pwd
      111

    • @venkiramana8181
      @venkiramana8181 5 ปีที่แล้ว

      @@Javatechie can we chat for some time ? i need it urgent

  • @nookalakalyan16
    @nookalakalyan16 5 ปีที่แล้ว +1

    Thank you for the tutorial. I have couple of questions ,how to include basic authentication ? and also how do handle WS-A addressing feature in springboot

    • @Javatechie
      @Javatechie  5 ปีที่แล้ว +2

      Authentication and authorization video I will upload using soap don't worry

    • @nookalakalyan16
      @nookalakalyan16 5 ปีที่แล้ว

      @@Javatechie Actually my sprint is ending in another 4 days and I have a user story where I need to basic authentication..
      Also , I need to handle pass WS-A addressing parameters . I am struck here.. by when can I look forward for your video..
      TIA.

    • @nookalakalyan16
      @nookalakalyan16 5 ปีที่แล้ว

      @Bean
      public HttpComponentsMessageSender httpComponentsMessageSender() {
      HttpComponentsMessageSender httpComponentsMessageSender = new HttpComponentsMessageSender();
      // set the basic authorization credentials
      httpComponentsMessageSender.setCredentials(usernamePasswordCredentials());
      return httpComponentsMessageSender;
      }
      @Bean
      public UsernamePasswordCredentials usernamePasswordCredentials() {
      // pass the user name and password to be used
      System.out.println("userName is : " + userName);
      System.out.println("userPassword is : " + userPassword);
      return new UsernamePasswordCredentials(userName, userPassword);
      }
      I am able to handle basic authentication through internet ,
      I only need to handle WS-A addressing parameters while sending the request.
      TIA

    • @joshuacaponong3397
      @joshuacaponong3397 4 ปีที่แล้ว

      @@nookalakalyan16 lmao

  • @HiteshDutta13
    @HiteshDutta13 2 ปีที่แล้ว

    @Javatechie I am calling the soap client call where initially it was showing an Unauthorized error later I added header info to send authorization, accept, content_type, etc. now it's getting bad request error, is there any workaround?

    • @eswaresh8944
      @eswaresh8944 ปีที่แล้ว

      @Hitesh, did ur bad request problem resolve?

    • @eswaresh8944
      @eswaresh8944 ปีที่แล้ว

      I'm also facing same issue.

    • @HiteshDutta13
      @HiteshDutta13 ปีที่แล้ว

      @@eswaresh8944 No

  • @Nur_0077
    @Nur_0077 ปีที่แล้ว

    I am trying using gradle, but not able to fix the plugin issue. can anybody help pls?

  • @narendra_ingle
    @narendra_ingle 4 ปีที่แล้ว

    If we get Request as String in that case how can we handle or convert into object and how object identify stub class for casting object to relevant class .?

  • @Venkata-px6um
    @Venkata-px6um หลายเดือนก่อน

    How this webservice has to accept the xml input? Could you please provide any example

  • @luiskabal1595
    @luiskabal1595 3 ปีที่แล้ว +1

    Im trying to use this example but I cant figure out how to add soap user and pass to the request :(

    • @Javatechie
      @Javatechie  3 ปีที่แล้ว

      Please check my provider video

  • @techmore5501
    @techmore5501 3 ปีที่แล้ว +1

    How to send a request as a message to activemq using soap? Pls give me an idea sir

    • @Javatechie
      @Javatechie  3 ปีที่แล้ว

      You know how to produce and consume message to activeMQ ?

  • @hennabydharsh9443
    @hennabydharsh9443 10 หลายเดือนก่อน

    we need to marshall the request and then need to pass it in the webservice call right, instead why you are marshall the generated java classes

    • @Javatechie
      @Javatechie  10 หลายเดือนก่อน

      We are using spring framework here to play with pojo but if you use Apache cxf alone without any framework then what approach you have mentioned is absolutely correct

  • @imtiazkhan-qd5qe
    @imtiazkhan-qd5qe 5 ปีที่แล้ว +1

    I am not clear why you use another client(Postman tool) to test the SoapClient code base itself. I think the SoapClient code base itself should hit the service end point configered in the Server code base

    • @Javatechie
      @Javatechie  5 ปีที่แล้ว

      Yes from service am doing soap webservices call , please check the response which am getting from soap provider

  • @Rtiee
    @Rtiee 4 ปีที่แล้ว +1

    If there are multiple methods in a soap service, for example:
    Method A
    Method B
    Method C
    then how can we consume only one particular method of service lets say Method B ?

    • @Javatechie
      @Javatechie  4 ปีที่แล้ว

      Are you talking about provider part or consumer ?

  • @minjiang8407
    @minjiang8407 5 ปีที่แล้ว +1

    Great video. Clearly explained. Thank you! I have a question: Is it possible to do load balance for multiple instances of a spring boot soap web service using spring cloud + Eureka?

    • @Javatechie
      @Javatechie  5 ปีที่แล้ว +1

      Yes why not , implementation is same as I explained in my load balance video

  • @sudhanshugera6690
    @sudhanshugera6690 4 ปีที่แล้ว +1

    I am getting unsatisfied dependency Exception, Don't know why. I followed the same steps. if you could help.

    • @Javatechie
      @Javatechie  4 ปีที่แล้ว +1

      Complete error please

    • @sudhanshugera6690
      @sudhanshugera6690 4 ปีที่แล้ว

      @@Javatechie org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with the name 'SpringBootSopaWsClientApplication': Unsatisfied dependency expressed through field 'client'; nested exception is 'org.springframework.beans.factory.UnsatisfiedDependencyException': Error creating bean with the name 'SoapClinet': Unsatisfied dependency expressed through field 'marshaller'; nested exception is org.springframework.beans.factory.BeanCrationException: Error creating bean with name 'marshaller'; defined in class path resource [com/javatechie/spring/soap/api/config/SoapConfig.java]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: com/sun/xml/bind/v2/model/annotation/AnnotationReader

  • @sameerkeeran9679
    @sameerkeeran9679 4 ปีที่แล้ว +1

    Bhai are you Odia ? I have a question too, how to convert a soap request to rest to access a webservice. We have a existing webservice accessible through bpm request and response is soap. Now planned to migrate it into docker mickroservice rest API. Using spring boot. your which tutorial video will be helpful regarding it..

    • @Javatechie
      @Javatechie  4 ปีที่แล้ว

      Hi Sameer , can you mention what mediatype you are using while accessing webservices
      For example you have soap request with you and with this request you want to access one webservices right .?,
      So what that perticular webservices expecting ? Json or XML

    • @Javatechie
      @Javatechie  4 ปีที่แล้ว

      You can checkout my dockerize spring boot application for basic but I don't think it help you for content change

  • @shanujs216
    @shanujs216 5 ปีที่แล้ว

    Awesome video. Please explain how to pass bearer token in header of webservice template not body of the SOAP content.

  • @jvrk6644
    @jvrk6644 5 ปีที่แล้ว +2

    Like same please post jax-ws implementation with out spring both provider and consumer

    • @Javatechie
      @Javatechie  5 ปีที่แล้ว

      Without spring you want soap provider and consumer ?

    • @jvrk6644
      @jvrk6644 5 ปีที่แล้ว +1

      @@Javatechie @webservice and @web method this type of implementation ,not spring jaxws i am talking about java jax ws bro

    • @jvrk6644
      @jvrk6644 5 ปีที่แล้ว +1

      @@Javatechie i seen spring soap jax ws provider and consumer ,its really useful currently in my project we used same one 👌,please do the same with java jaxws old implementation ,example :- provider we will use @webProvider and @WebService and @Webmethod ....... I don't know actually which imple it is ,please correct me is it java jax-ws ?
      Thanks a lot bro ❤

    • @Javatechie
      @Javatechie  5 ปีที่แล้ว

      Ok will try this

    • @jvrk6644
      @jvrk6644 5 ปีที่แล้ว

      @@Javatechie i know its some what difficult compared with spring soap jax-ws but if we provided then every one knows this impl also its good 🙂
      Thanks bro for ur concern 👍

  • @VIVEKKUMAR-lp8so
    @VIVEKKUMAR-lp8so 5 ปีที่แล้ว +3

    please could you provide the code for implementing the WS Security that Encryption,signing,decryption and verify

  • @sushmakurdekar8370
    @sushmakurdekar8370 4 ปีที่แล้ว +1

    Thank you

  • @ommankar1501
    @ommankar1501 2 ปีที่แล้ว

    How to configure for https for soap in SpringBoot?

  • @jadsonsouzafaria
    @jadsonsouzafaria 5 ปีที่แล้ว +1

    hi, thanks for this tutorial. I managed to generate the Domain classes but I couldn't generate the requests and responses classes. What's the problem?

    • @Javatechie
      @Javatechie  5 ปีที่แล้ว +1

      Wsdl2java plugin should generate your all required binding classes
      Check in your pom.xml whether wsdl2java plugin added properly or not

  • @pedrovieira5090
    @pedrovieira5090 4 ปีที่แล้ว +1

    Congratulation for the video! I've a question too... I need a soap async client to consume async service. Can u help me with that?

    • @Javatechie
      @Javatechie  4 ปีที่แล้ว

      I mean you want to build soap client who will execute in async manner

  • @Recreationalmotivation
    @Recreationalmotivation 3 ปีที่แล้ว

    Hi sir, I need to configure authentication for webservicetemplate . Kindly help

  • @leoniluminati8981
    @leoniluminati8981 4 ปีที่แล้ว +1

    hi! thank you it's a great video. I´ve a question. I need consume a soap service but it have security. when I consume in soapui work correctly but here don´t works . can you help me please?
    you´ve a greate channel

    • @Javatechie
      @Javatechie  4 ปีที่แล้ว

      In request header you Just need to pass your credential that will resolve your issue

  • @KK_AlBarshaTeam
    @KK_AlBarshaTeam 2 ปีที่แล้ว

    I have doubt, How to consume two soap services please explain

  • @ericfth
    @ericfth 11 หลายเดือนก่อน

    How can I send autentication for acess server wsdl?

  • @elbafa33
    @elbafa33 4 ปีที่แล้ว +1

    Great tutorial, I tried to follow you tutorial consuming someone else webservices but I'm getting this error : "System.Web.Services.Protocols.SoapException: Server did not recognize the value of HTTP Header SOAPAction:". Thank you for your help

    • @Javatechie
      @Javatechie  4 ปีที่แล้ว

      Can you share your endpoint which you are consuming

    • @elbafa33
      @elbafa33 4 ปีที่แล้ว +1

      @@Javatechie in my service class I put this: @Service
      public class SoapClient {

      @Autowired
      private Jaxb2Marshaller marshaller;

      private WebServiceTemplate template;

      public AddResponse getAddResponse(Add addRequest) {

      template = new WebServiceTemplate(marshaller);
      AddResponse response = (AddResponse) template.marshalSendAndReceive("www.dneonline.com/calculator.asmx",addRequest);

      return response;
      }
      }
      I'm consuming the calculator webservice: www.dneonline.com/calculator.asmx

    • @Javatechie
      @Javatechie  4 ปีที่แล้ว

      While sending request you might missing some header
      Can you share your code in GitHub

  • @bhavyach1017
    @bhavyach1017 3 ปีที่แล้ว

    I am getting the error of no endpoint mapping ,help me

  • @acavaelnick
    @acavaelnick 3 ปีที่แล้ว +1

    thanks man

  • @jespinala
    @jespinala 2 ปีที่แล้ว

    Thanks for a great video! I just got to an error: org.springframework.ws.client.WebServiceTransportException: Forbidden [403] I am trying to execute signin method by sending and object with login and password. Our Wsdl have 158 methods I suspect that it does not know that I need to go with signin method. How did the compiler discover that? by the type of object we have in the service? I need to work with those 158 methods, I appreciate if you can comment on how can I assure the compiler knows which is the method I need to use.

  • @shubhambisht3090
    @shubhambisht3090 4 ปีที่แล้ว

    getting exception Server did not recognize the value of HTTP Header SOAPAction:
    please help

  • @chhayachaudhari4
    @chhayachaudhari4 4 ปีที่แล้ว

    Can you please create video on basic authentication ? How to authenticate called soap API? That will be really helpful

  • @ifeoluwaoluwafemi6865
    @ifeoluwaoluwafemi6865 3 ปีที่แล้ว +1

    Nice Video and clearly explained
    Although what if the WSDL file contains multiple endpoints and you need to create rest endpoints for each soap endpoint?

    • @Javatechie
      @Javatechie  3 ปีที่แล้ว

      Yes you have to create multiple rest endpoint using same stub

    • @ifeoluwaoluwafemi6865
      @ifeoluwaoluwafemi6865 3 ปีที่แล้ว +1

      @@Javatechie With a single WSDL file, how do you differentiate the different soap endpoints and call them?

    • @Javatechie
      @Javatechie  3 ปีที่แล้ว

      It will be easy if you know the structure of WSDL , please open PortType in wsdl file and check all the methods those are your soap endpoint .you need to create rest api and call those methods inside rest controller with valid input

  • @nagarjunagorantla3629
    @nagarjunagorantla3629 4 ปีที่แล้ว

    Hi dear. Great explanation. I have one question how to send username and password in header along with the URL and request .thanks in advance

  • @nivethikar3339
    @nivethikar3339 3 ปีที่แล้ว

    How to handle soap fault exception in response?

  • @misterblue81
    @misterblue81 5 ปีที่แล้ว +2

    How to add user password authentication when needed?

    • @Javatechie
      @Javatechie  5 ปีที่แล้ว +1

      You are talking about soap authentication?

  • @icefrog-1032
    @icefrog-1032 2 ปีที่แล้ว

    great video.
    can you show how to request with CDATA.
    my xml needed to insert symbols but in debug log my request get converted into for example "

  • @sushmakurdekar8370
    @sushmakurdekar8370 2 ปีที่แล้ว

    Hi , can we get the ip address of the client in soap web service

  • @srinidhi103
    @srinidhi103 4 ปีที่แล้ว

    How to make a call to soap service which is secured with basic authentication ?

    • @Javatechie
      @Javatechie  4 ปีที่แล้ว

      You need to pass authentication info as part of header

  • @nishantkumar3516
    @nishantkumar3516 4 ปีที่แล้ว +2

    I like your video. thanks! do you have a working example with header authentication ?

    • @bhaskarbapuji2272
      @bhaskarbapuji2272 4 ปีที่แล้ว

      Can you please share any reference for basic auth.

  • @khandeshRide
    @khandeshRide 2 ปีที่แล้ว

    how can add costom header in header

  • @rohitkorde8184
    @rohitkorde8184 3 ปีที่แล้ว +1

    Thank you for this video , I have exactly same requirement from client . Is it possible to pass passworddigest with request?

    • @Javatechie
      @Javatechie  3 ปีที่แล้ว

      Yes you can pass

  • @udhayasankar113
    @udhayasankar113 2 ปีที่แล้ว

    how to add keyId in the header?

  • @realworld_code
    @realworld_code 3 ปีที่แล้ว +1

    Great when set playback speed to 1.75

  • @linuxguruji3321
    @linuxguruji3321 ปีที่แล้ว

    How mock webServiceTemplate in junit
    Pls help

  • @ravireddy8711
    @ravireddy8711 5 ปีที่แล้ว

    Could you please upload video for consuming webservice's using SOAP

  • @brijmohanmahulkar3838
    @brijmohanmahulkar3838 4 ปีที่แล้ว

    how can I pass username and passwpor with soap request