Steps to configure Soap webservice in Hybris.? The Next CEO of Stack OverflowHow to access SOAP services from iPhoneRepresentational state transfer (REST) and Simple Object Access Protocol (SOAP)How to call a SOAP web service on AndroidSecure Web Services: REST over HTTPS vs SOAP + WS-Security. Which is better?Understanding REST: Verbs, error codes, and authenticationMain differences between SOAP and RESTful web services in javaHow to pass “Null” (a real surname!) to a SOAP web service in ActionScript 3?Compare and contrast REST and SOAP web services?SOAP vs REST (differences)Hybris Create Web Service with Intellij

Lucky Feat: How can "more than one creature spend a luck point to influence the outcome of a roll"?

What CSS properties can the br tag have?

Decide between Polyglossia and Babel for LuaLaTeX in 2019

Won the lottery - how do I keep the money?

How to use ReplaceAll on an expression that contains a rule

From jafe to El-Guest

Help/tips for a first time writer?

Audio Conversion With ADS1243

Do I need to write [sic] when including a quotation with a number less than 10 that isn't written out?

Can I board the first leg of the flight without having final country's visa?

What is the difference between "hamstring tendon" and "common hamstring tendon"?

How did some of my text get highlighted with a magenta background?

In the "Harry Potter and the Order of the Phoenix" videogame, what potion is used to sabotage Umbridge's speakers?

How to set page number in right side in chapter title page?

Physiological effects of huge anime eyes

Is there such a thing as a proper verb, like a proper noun?

Is it okay to majorly distort historical facts while writing a fiction story?

Why is the US ranked as #45 in Press Freedom ratings, despite its extremely permissive free speech laws?

Can you teleport closer to a creature you are Frightened of?

What day is it again?

Defamation due to breach of confidentiality

What happened in Rome, when the western empire "fell"?

Film where the government was corrupt with aliens, people sent to kill aliens are given rigged visors not showing the right aliens

How to find image of a complex function with given constraints?



Steps to configure Soap webservice in Hybris.?



The Next CEO of Stack OverflowHow to access SOAP services from iPhoneRepresentational state transfer (REST) and Simple Object Access Protocol (SOAP)How to call a SOAP web service on AndroidSecure Web Services: REST over HTTPS vs SOAP + WS-Security. Which is better?Understanding REST: Verbs, error codes, and authenticationMain differences between SOAP and RESTful web services in javaHow to pass “Null” (a real surname!) to a SOAP web service in ActionScript 3?Compare and contrast REST and SOAP web services?SOAP vs REST (differences)Hybris Create Web Service with Intellij










0















Can someone help with the steps for configuring SOAP web service in Hybris.
We have received a requirement wherein the business user wants to consume a SOAP web service. They do not support REST web service.










share|improve this question


























    0















    Can someone help with the steps for configuring SOAP web service in Hybris.
    We have received a requirement wherein the business user wants to consume a SOAP web service. They do not support REST web service.










    share|improve this question
























      0












      0








      0








      Can someone help with the steps for configuring SOAP web service in Hybris.
      We have received a requirement wherein the business user wants to consume a SOAP web service. They do not support REST web service.










      share|improve this question














      Can someone help with the steps for configuring SOAP web service in Hybris.
      We have received a requirement wherein the business user wants to consume a SOAP web service. They do not support REST web service.







      web-services soap hybris






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 7 at 18:02









      Vineeshia ValsanVineeshia Valsan

      154




      154






















          1 Answer
          1






          active

          oldest

          votes


















          1














          Hybris does not provide integration with SOAP based web services. We did a similar kind of integration with SOAP webservice in Hybris using XJC. To configure SOAP web service, you will need to do the following:



          1. Create a custom extension and define the following dependencies in your external-dependencies.xml to download the following JAR'sin your custom extension library :



          • jaxb-api

          • jaxb-xjc

          • jaxws-api

          • jaxws-tools

          2. Define an XJC task in the buildcallback.xml of your custom extension to generate the java classes out of your WSDL.



          <xjc schema="$CustomPathToWsdl/custom.wsdl" destdir="$customExtensionBaseDir/gensrc/" extension="true" package="com.mycustomextension.ws.dto" removeOldOutput="no">
          <arg value="-wsdl" />
          <produces dir="$CustomFolder/custom" includes="**/*" />
          </xjc>


          3. Once the java classes are generated, you can use the ObjectFactory class to create a request DTO and then setting the request attributes using setters.



          4. Configure the WebServiceTemplate in your custom extension spring.xml.



          <bean id="clientMessageFactory" class="org.springframework.ws.soap.saaj.SaajSoapMessageFactory" />

          <bean id="customJaxbMarshaller" class="org.springframework.oxm.jaxb.Jaxb2Marshaller">
          <property name="contextPath" value="***package.name.of.generated.dtos***" />
          </bean>

          <bean id="customWsMessageSender" class="org.springframework.ws.transport.http.CommonsHttpMessageSender">
          <property name="credentials">
          <bean class="org.apache.commons.httpclient.UsernamePasswordCredentials">
          <constructor-arg value="$custom.username" />
          <constructor-arg value="$custom.password" />
          </bean>
          </property>
          <property name="connectionTimeout" value="30" />
          <property name="readTimeout" value="30" />
          </bean>

          <bean id="customWebServiceTemplate" class="org.springframework.ws.client.core.WebServiceTemplate">
          <constructor-arg ref="clientMessageFactory" />
          <property name="defaultUri" value="**custom webservice URI**" />
          <property name="marshaller" ref="customJaxbMarshaller" />
          <property name="unmarshaller" ref="customJaxbMarshaller" />
          <property name="messageSender" ref="customWsMessageSender" />

          </bean>


          5. Create a custom integration service class and inject the WebServiceTemplate .Call any of the template methods to marshal,send and receive the response.



           wrappedResponse = (JAXBElement<CustomRequestDTO>) webServiceTemplate.marshalSendAndReceive(defaultCustSearchURI, wrappedResponse);


          Hope this helps!






          share|improve this answer























            Your Answer






            StackExchange.ifUsing("editor", function ()
            StackExchange.using("externalEditor", function ()
            StackExchange.using("snippets", function ()
            StackExchange.snippets.init();
            );
            );
            , "code-snippets");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "1"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55050172%2fsteps-to-configure-soap-webservice-in-hybris%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            1














            Hybris does not provide integration with SOAP based web services. We did a similar kind of integration with SOAP webservice in Hybris using XJC. To configure SOAP web service, you will need to do the following:



            1. Create a custom extension and define the following dependencies in your external-dependencies.xml to download the following JAR'sin your custom extension library :



            • jaxb-api

            • jaxb-xjc

            • jaxws-api

            • jaxws-tools

            2. Define an XJC task in the buildcallback.xml of your custom extension to generate the java classes out of your WSDL.



            <xjc schema="$CustomPathToWsdl/custom.wsdl" destdir="$customExtensionBaseDir/gensrc/" extension="true" package="com.mycustomextension.ws.dto" removeOldOutput="no">
            <arg value="-wsdl" />
            <produces dir="$CustomFolder/custom" includes="**/*" />
            </xjc>


            3. Once the java classes are generated, you can use the ObjectFactory class to create a request DTO and then setting the request attributes using setters.



            4. Configure the WebServiceTemplate in your custom extension spring.xml.



            <bean id="clientMessageFactory" class="org.springframework.ws.soap.saaj.SaajSoapMessageFactory" />

            <bean id="customJaxbMarshaller" class="org.springframework.oxm.jaxb.Jaxb2Marshaller">
            <property name="contextPath" value="***package.name.of.generated.dtos***" />
            </bean>

            <bean id="customWsMessageSender" class="org.springframework.ws.transport.http.CommonsHttpMessageSender">
            <property name="credentials">
            <bean class="org.apache.commons.httpclient.UsernamePasswordCredentials">
            <constructor-arg value="$custom.username" />
            <constructor-arg value="$custom.password" />
            </bean>
            </property>
            <property name="connectionTimeout" value="30" />
            <property name="readTimeout" value="30" />
            </bean>

            <bean id="customWebServiceTemplate" class="org.springframework.ws.client.core.WebServiceTemplate">
            <constructor-arg ref="clientMessageFactory" />
            <property name="defaultUri" value="**custom webservice URI**" />
            <property name="marshaller" ref="customJaxbMarshaller" />
            <property name="unmarshaller" ref="customJaxbMarshaller" />
            <property name="messageSender" ref="customWsMessageSender" />

            </bean>


            5. Create a custom integration service class and inject the WebServiceTemplate .Call any of the template methods to marshal,send and receive the response.



             wrappedResponse = (JAXBElement<CustomRequestDTO>) webServiceTemplate.marshalSendAndReceive(defaultCustSearchURI, wrappedResponse);


            Hope this helps!






            share|improve this answer



























              1














              Hybris does not provide integration with SOAP based web services. We did a similar kind of integration with SOAP webservice in Hybris using XJC. To configure SOAP web service, you will need to do the following:



              1. Create a custom extension and define the following dependencies in your external-dependencies.xml to download the following JAR'sin your custom extension library :



              • jaxb-api

              • jaxb-xjc

              • jaxws-api

              • jaxws-tools

              2. Define an XJC task in the buildcallback.xml of your custom extension to generate the java classes out of your WSDL.



              <xjc schema="$CustomPathToWsdl/custom.wsdl" destdir="$customExtensionBaseDir/gensrc/" extension="true" package="com.mycustomextension.ws.dto" removeOldOutput="no">
              <arg value="-wsdl" />
              <produces dir="$CustomFolder/custom" includes="**/*" />
              </xjc>


              3. Once the java classes are generated, you can use the ObjectFactory class to create a request DTO and then setting the request attributes using setters.



              4. Configure the WebServiceTemplate in your custom extension spring.xml.



              <bean id="clientMessageFactory" class="org.springframework.ws.soap.saaj.SaajSoapMessageFactory" />

              <bean id="customJaxbMarshaller" class="org.springframework.oxm.jaxb.Jaxb2Marshaller">
              <property name="contextPath" value="***package.name.of.generated.dtos***" />
              </bean>

              <bean id="customWsMessageSender" class="org.springframework.ws.transport.http.CommonsHttpMessageSender">
              <property name="credentials">
              <bean class="org.apache.commons.httpclient.UsernamePasswordCredentials">
              <constructor-arg value="$custom.username" />
              <constructor-arg value="$custom.password" />
              </bean>
              </property>
              <property name="connectionTimeout" value="30" />
              <property name="readTimeout" value="30" />
              </bean>

              <bean id="customWebServiceTemplate" class="org.springframework.ws.client.core.WebServiceTemplate">
              <constructor-arg ref="clientMessageFactory" />
              <property name="defaultUri" value="**custom webservice URI**" />
              <property name="marshaller" ref="customJaxbMarshaller" />
              <property name="unmarshaller" ref="customJaxbMarshaller" />
              <property name="messageSender" ref="customWsMessageSender" />

              </bean>


              5. Create a custom integration service class and inject the WebServiceTemplate .Call any of the template methods to marshal,send and receive the response.



               wrappedResponse = (JAXBElement<CustomRequestDTO>) webServiceTemplate.marshalSendAndReceive(defaultCustSearchURI, wrappedResponse);


              Hope this helps!






              share|improve this answer

























                1












                1








                1







                Hybris does not provide integration with SOAP based web services. We did a similar kind of integration with SOAP webservice in Hybris using XJC. To configure SOAP web service, you will need to do the following:



                1. Create a custom extension and define the following dependencies in your external-dependencies.xml to download the following JAR'sin your custom extension library :



                • jaxb-api

                • jaxb-xjc

                • jaxws-api

                • jaxws-tools

                2. Define an XJC task in the buildcallback.xml of your custom extension to generate the java classes out of your WSDL.



                <xjc schema="$CustomPathToWsdl/custom.wsdl" destdir="$customExtensionBaseDir/gensrc/" extension="true" package="com.mycustomextension.ws.dto" removeOldOutput="no">
                <arg value="-wsdl" />
                <produces dir="$CustomFolder/custom" includes="**/*" />
                </xjc>


                3. Once the java classes are generated, you can use the ObjectFactory class to create a request DTO and then setting the request attributes using setters.



                4. Configure the WebServiceTemplate in your custom extension spring.xml.



                <bean id="clientMessageFactory" class="org.springframework.ws.soap.saaj.SaajSoapMessageFactory" />

                <bean id="customJaxbMarshaller" class="org.springframework.oxm.jaxb.Jaxb2Marshaller">
                <property name="contextPath" value="***package.name.of.generated.dtos***" />
                </bean>

                <bean id="customWsMessageSender" class="org.springframework.ws.transport.http.CommonsHttpMessageSender">
                <property name="credentials">
                <bean class="org.apache.commons.httpclient.UsernamePasswordCredentials">
                <constructor-arg value="$custom.username" />
                <constructor-arg value="$custom.password" />
                </bean>
                </property>
                <property name="connectionTimeout" value="30" />
                <property name="readTimeout" value="30" />
                </bean>

                <bean id="customWebServiceTemplate" class="org.springframework.ws.client.core.WebServiceTemplate">
                <constructor-arg ref="clientMessageFactory" />
                <property name="defaultUri" value="**custom webservice URI**" />
                <property name="marshaller" ref="customJaxbMarshaller" />
                <property name="unmarshaller" ref="customJaxbMarshaller" />
                <property name="messageSender" ref="customWsMessageSender" />

                </bean>


                5. Create a custom integration service class and inject the WebServiceTemplate .Call any of the template methods to marshal,send and receive the response.



                 wrappedResponse = (JAXBElement<CustomRequestDTO>) webServiceTemplate.marshalSendAndReceive(defaultCustSearchURI, wrappedResponse);


                Hope this helps!






                share|improve this answer













                Hybris does not provide integration with SOAP based web services. We did a similar kind of integration with SOAP webservice in Hybris using XJC. To configure SOAP web service, you will need to do the following:



                1. Create a custom extension and define the following dependencies in your external-dependencies.xml to download the following JAR'sin your custom extension library :



                • jaxb-api

                • jaxb-xjc

                • jaxws-api

                • jaxws-tools

                2. Define an XJC task in the buildcallback.xml of your custom extension to generate the java classes out of your WSDL.



                <xjc schema="$CustomPathToWsdl/custom.wsdl" destdir="$customExtensionBaseDir/gensrc/" extension="true" package="com.mycustomextension.ws.dto" removeOldOutput="no">
                <arg value="-wsdl" />
                <produces dir="$CustomFolder/custom" includes="**/*" />
                </xjc>


                3. Once the java classes are generated, you can use the ObjectFactory class to create a request DTO and then setting the request attributes using setters.



                4. Configure the WebServiceTemplate in your custom extension spring.xml.



                <bean id="clientMessageFactory" class="org.springframework.ws.soap.saaj.SaajSoapMessageFactory" />

                <bean id="customJaxbMarshaller" class="org.springframework.oxm.jaxb.Jaxb2Marshaller">
                <property name="contextPath" value="***package.name.of.generated.dtos***" />
                </bean>

                <bean id="customWsMessageSender" class="org.springframework.ws.transport.http.CommonsHttpMessageSender">
                <property name="credentials">
                <bean class="org.apache.commons.httpclient.UsernamePasswordCredentials">
                <constructor-arg value="$custom.username" />
                <constructor-arg value="$custom.password" />
                </bean>
                </property>
                <property name="connectionTimeout" value="30" />
                <property name="readTimeout" value="30" />
                </bean>

                <bean id="customWebServiceTemplate" class="org.springframework.ws.client.core.WebServiceTemplate">
                <constructor-arg ref="clientMessageFactory" />
                <property name="defaultUri" value="**custom webservice URI**" />
                <property name="marshaller" ref="customJaxbMarshaller" />
                <property name="unmarshaller" ref="customJaxbMarshaller" />
                <property name="messageSender" ref="customWsMessageSender" />

                </bean>


                5. Create a custom integration service class and inject the WebServiceTemplate .Call any of the template methods to marshal,send and receive the response.



                 wrappedResponse = (JAXBElement<CustomRequestDTO>) webServiceTemplate.marshalSendAndReceive(defaultCustSearchURI, wrappedResponse);


                Hope this helps!







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 16 at 15:43









                Navish SharmaNavish Sharma

                213211




                213211





























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55050172%2fsteps-to-configure-soap-webservice-in-hybris%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    AWS Lex not identifying response if by a variable The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) The Ask Question Wizard is Live! Data science time! April 2019 and salary with experienceEnforcing custom enumeration in AWS LEX for slot valuesHow to give response based on user response in Amazon Lex?Intercepting AWS Lambda Response to a AWS Lex QueryLex chat bot error: Reached second execution of fulfillment lambda on the same utteranceamazon lex showing invalid responseLambda response send back to Lex slot?Response card in Amazon lexAmazon Lex - Lambda response return HTML to botHow can I solve 424 (Failed Dependency) (python) obtained from Amazon lex?

                    Алба-Юлія

                    Захаров Федір Захарович