Assembling a WebLogic Web Service Manually












0















I implemented webservice as described in this guide by simply creating "web-services.xml" with the following content (and offcourse i create the 'com.example.WorkFlowEntry' handler class ) :



<web-services>
<handler-chains>
<handler-chain name="enterWorkflowChain">
<handler class-name="com.example.WorkFlowEntry">
<init-params>
<init-param name="workflow-eng-jndi-name"
value="workflow.entry" />
</init-params>
</handler>
</handler-chain>
</handler-chains>
<web-service targetNamespace="http://example.com"
name="myworkflow" uri="myWorkflowService">
<operations xmlns:xsd="http://www.w3.org/2001/XMLSchema" >
<operation name="enterWorkflow"
handler-chain="enterWorkflowChain"
invocation-style="one-way" />
</operations>
</web-service>




My issue is that when i deploy the EAR file in weblogic 11g the '' webservice is deployed successfully and i can access the WSDL of the webservice. When i deploy the same EAR in weblogic 12c it got deployed successfully but the WSDL is not accessible i am getting 404!










share|improve this question























  • Did you check that you ear is started in your 12c domain ? Use the admin console and go to the deployment option to check that.

    – Emmanuel Collin
    Feb 21 '18 at 15:16











  • Yes .. started and active with no Error or Warning.

    – k.elgohary
    Feb 22 '18 at 3:59











  • Same for me. Everything seems ok, but getting 404

    – Jarda Pavlíček
    Nov 7 '18 at 10:26
















0















I implemented webservice as described in this guide by simply creating "web-services.xml" with the following content (and offcourse i create the 'com.example.WorkFlowEntry' handler class ) :



<web-services>
<handler-chains>
<handler-chain name="enterWorkflowChain">
<handler class-name="com.example.WorkFlowEntry">
<init-params>
<init-param name="workflow-eng-jndi-name"
value="workflow.entry" />
</init-params>
</handler>
</handler-chain>
</handler-chains>
<web-service targetNamespace="http://example.com"
name="myworkflow" uri="myWorkflowService">
<operations xmlns:xsd="http://www.w3.org/2001/XMLSchema" >
<operation name="enterWorkflow"
handler-chain="enterWorkflowChain"
invocation-style="one-way" />
</operations>
</web-service>




My issue is that when i deploy the EAR file in weblogic 11g the '' webservice is deployed successfully and i can access the WSDL of the webservice. When i deploy the same EAR in weblogic 12c it got deployed successfully but the WSDL is not accessible i am getting 404!










share|improve this question























  • Did you check that you ear is started in your 12c domain ? Use the admin console and go to the deployment option to check that.

    – Emmanuel Collin
    Feb 21 '18 at 15:16











  • Yes .. started and active with no Error or Warning.

    – k.elgohary
    Feb 22 '18 at 3:59











  • Same for me. Everything seems ok, but getting 404

    – Jarda Pavlíček
    Nov 7 '18 at 10:26














0












0








0








I implemented webservice as described in this guide by simply creating "web-services.xml" with the following content (and offcourse i create the 'com.example.WorkFlowEntry' handler class ) :



<web-services>
<handler-chains>
<handler-chain name="enterWorkflowChain">
<handler class-name="com.example.WorkFlowEntry">
<init-params>
<init-param name="workflow-eng-jndi-name"
value="workflow.entry" />
</init-params>
</handler>
</handler-chain>
</handler-chains>
<web-service targetNamespace="http://example.com"
name="myworkflow" uri="myWorkflowService">
<operations xmlns:xsd="http://www.w3.org/2001/XMLSchema" >
<operation name="enterWorkflow"
handler-chain="enterWorkflowChain"
invocation-style="one-way" />
</operations>
</web-service>




My issue is that when i deploy the EAR file in weblogic 11g the '' webservice is deployed successfully and i can access the WSDL of the webservice. When i deploy the same EAR in weblogic 12c it got deployed successfully but the WSDL is not accessible i am getting 404!










share|improve this question














I implemented webservice as described in this guide by simply creating "web-services.xml" with the following content (and offcourse i create the 'com.example.WorkFlowEntry' handler class ) :



<web-services>
<handler-chains>
<handler-chain name="enterWorkflowChain">
<handler class-name="com.example.WorkFlowEntry">
<init-params>
<init-param name="workflow-eng-jndi-name"
value="workflow.entry" />
</init-params>
</handler>
</handler-chain>
</handler-chains>
<web-service targetNamespace="http://example.com"
name="myworkflow" uri="myWorkflowService">
<operations xmlns:xsd="http://www.w3.org/2001/XMLSchema" >
<operation name="enterWorkflow"
handler-chain="enterWorkflowChain"
invocation-style="one-way" />
</operations>
</web-service>




My issue is that when i deploy the EAR file in weblogic 11g the '' webservice is deployed successfully and i can access the WSDL of the webservice. When i deploy the same EAR in weblogic 12c it got deployed successfully but the WSDL is not accessible i am getting 404!







web-services weblogic12c






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Feb 21 '18 at 10:27









k.elgoharyk.elgohary

81215




81215













  • Did you check that you ear is started in your 12c domain ? Use the admin console and go to the deployment option to check that.

    – Emmanuel Collin
    Feb 21 '18 at 15:16











  • Yes .. started and active with no Error or Warning.

    – k.elgohary
    Feb 22 '18 at 3:59











  • Same for me. Everything seems ok, but getting 404

    – Jarda Pavlíček
    Nov 7 '18 at 10:26



















  • Did you check that you ear is started in your 12c domain ? Use the admin console and go to the deployment option to check that.

    – Emmanuel Collin
    Feb 21 '18 at 15:16











  • Yes .. started and active with no Error or Warning.

    – k.elgohary
    Feb 22 '18 at 3:59











  • Same for me. Everything seems ok, but getting 404

    – Jarda Pavlíček
    Nov 7 '18 at 10:26

















Did you check that you ear is started in your 12c domain ? Use the admin console and go to the deployment option to check that.

– Emmanuel Collin
Feb 21 '18 at 15:16





Did you check that you ear is started in your 12c domain ? Use the admin console and go to the deployment option to check that.

– Emmanuel Collin
Feb 21 '18 at 15:16













Yes .. started and active with no Error or Warning.

– k.elgohary
Feb 22 '18 at 3:59





Yes .. started and active with no Error or Warning.

– k.elgohary
Feb 22 '18 at 3:59













Same for me. Everything seems ok, but getting 404

– Jarda Pavlíček
Nov 7 '18 at 10:26





Same for me. Everything seems ok, but getting 404

– Jarda Pavlíček
Nov 7 '18 at 10:26












1 Answer
1






active

oldest

votes


















0















Manually assembling weblogic web service is valid if you are using the
Webservice 8.1 environment. The last Weblogic version for which this
approach can be used is Weblogic 12.1.1, from Weblogic 12.1.2 release,
the 8.1 WebLogic Web services run time has been removed.




that means using the 'web-services.xml' to build your webservice is valid till weblogic 12.1.1 version. for the newer version you have to upgrade your webservice implementation as mentioned in this link which mainly go through (Upgrading a 10.x WebLogic Web Service (JAX-WS or JAX-RPC) to 12.1.x). But this solution may affect the current running clients.



In my case i cannot ask the client to change their code. So my workaround for this case is to take the current WSDL and generate the webservice manually by ant as described in this link which is describes using wsdlc Ant task to generate the following artifacts:




  • JWS service endpoint interface (SEI) that implements the Web service described
    by the WSDL file.


  • JWS implementation file that contains a partial (stubbed-out) implementation of
    the generated JWS SEI. This file must be customized by the developer.


  • JAXB data binding artifacts.


  • Optional Javadocs for the generated JWS SEI.







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%2f48903553%2fassembling-a-weblogic-web-service-manually%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









    0















    Manually assembling weblogic web service is valid if you are using the
    Webservice 8.1 environment. The last Weblogic version for which this
    approach can be used is Weblogic 12.1.1, from Weblogic 12.1.2 release,
    the 8.1 WebLogic Web services run time has been removed.




    that means using the 'web-services.xml' to build your webservice is valid till weblogic 12.1.1 version. for the newer version you have to upgrade your webservice implementation as mentioned in this link which mainly go through (Upgrading a 10.x WebLogic Web Service (JAX-WS or JAX-RPC) to 12.1.x). But this solution may affect the current running clients.



    In my case i cannot ask the client to change their code. So my workaround for this case is to take the current WSDL and generate the webservice manually by ant as described in this link which is describes using wsdlc Ant task to generate the following artifacts:




    • JWS service endpoint interface (SEI) that implements the Web service described
      by the WSDL file.


    • JWS implementation file that contains a partial (stubbed-out) implementation of
      the generated JWS SEI. This file must be customized by the developer.


    • JAXB data binding artifacts.


    • Optional Javadocs for the generated JWS SEI.







    share|improve this answer






























      0















      Manually assembling weblogic web service is valid if you are using the
      Webservice 8.1 environment. The last Weblogic version for which this
      approach can be used is Weblogic 12.1.1, from Weblogic 12.1.2 release,
      the 8.1 WebLogic Web services run time has been removed.




      that means using the 'web-services.xml' to build your webservice is valid till weblogic 12.1.1 version. for the newer version you have to upgrade your webservice implementation as mentioned in this link which mainly go through (Upgrading a 10.x WebLogic Web Service (JAX-WS or JAX-RPC) to 12.1.x). But this solution may affect the current running clients.



      In my case i cannot ask the client to change their code. So my workaround for this case is to take the current WSDL and generate the webservice manually by ant as described in this link which is describes using wsdlc Ant task to generate the following artifacts:




      • JWS service endpoint interface (SEI) that implements the Web service described
        by the WSDL file.


      • JWS implementation file that contains a partial (stubbed-out) implementation of
        the generated JWS SEI. This file must be customized by the developer.


      • JAXB data binding artifacts.


      • Optional Javadocs for the generated JWS SEI.







      share|improve this answer




























        0












        0








        0








        Manually assembling weblogic web service is valid if you are using the
        Webservice 8.1 environment. The last Weblogic version for which this
        approach can be used is Weblogic 12.1.1, from Weblogic 12.1.2 release,
        the 8.1 WebLogic Web services run time has been removed.




        that means using the 'web-services.xml' to build your webservice is valid till weblogic 12.1.1 version. for the newer version you have to upgrade your webservice implementation as mentioned in this link which mainly go through (Upgrading a 10.x WebLogic Web Service (JAX-WS or JAX-RPC) to 12.1.x). But this solution may affect the current running clients.



        In my case i cannot ask the client to change their code. So my workaround for this case is to take the current WSDL and generate the webservice manually by ant as described in this link which is describes using wsdlc Ant task to generate the following artifacts:




        • JWS service endpoint interface (SEI) that implements the Web service described
          by the WSDL file.


        • JWS implementation file that contains a partial (stubbed-out) implementation of
          the generated JWS SEI. This file must be customized by the developer.


        • JAXB data binding artifacts.


        • Optional Javadocs for the generated JWS SEI.







        share|improve this answer
















        Manually assembling weblogic web service is valid if you are using the
        Webservice 8.1 environment. The last Weblogic version for which this
        approach can be used is Weblogic 12.1.1, from Weblogic 12.1.2 release,
        the 8.1 WebLogic Web services run time has been removed.




        that means using the 'web-services.xml' to build your webservice is valid till weblogic 12.1.1 version. for the newer version you have to upgrade your webservice implementation as mentioned in this link which mainly go through (Upgrading a 10.x WebLogic Web Service (JAX-WS or JAX-RPC) to 12.1.x). But this solution may affect the current running clients.



        In my case i cannot ask the client to change their code. So my workaround for this case is to take the current WSDL and generate the webservice manually by ant as described in this link which is describes using wsdlc Ant task to generate the following artifacts:




        • JWS service endpoint interface (SEI) that implements the Web service described
          by the WSDL file.


        • JWS implementation file that contains a partial (stubbed-out) implementation of
          the generated JWS SEI. This file must be customized by the developer.


        • JAXB data binding artifacts.


        • Optional Javadocs for the generated JWS SEI.








        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Nov 13 '18 at 3:56

























        answered Nov 8 '18 at 8:48









        k.elgoharyk.elgohary

        81215




        81215






























            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%2f48903553%2fassembling-a-weblogic-web-service-manually%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

            Florida Star v. B. J. F.

            Danny Elfman

            Lugert, Oklahoma