1 Reply Latest reply on Apr 28, 2008 2:27 PM by Peter Johnson

    Why is wsconsume stopping whole batch script ?

    thoste Newbie

      From a batch script under WinXP I called "wsconsume.bat".
      Much to my surprise wsconsume terminates (after successful execution also th calling bacth script.

      Why?

      The calling batch script looks (simplified) like:
      -------------
      ...
      Echo Before call
      D:\java\JBoss\wsconsume.bar -k htp://127.0.0.1:8080/MyService?WSDL
      Echo This text should be written. But is NOT because wsconsume terminates
      ...
      ------------
      Can I somehow tell wsconsume NOT to terminate its wrapping batch script?

      Thomas

        • 1. Re: Why is wsconsume stopping whole batch script ?
          Peter Johnson Master

          In Windows, when one batch file calls another in the way you have done so, once that second batch file completes, that is it. There is no return to the original batch file.

          If you want the processing to return to the original batch file, use the "call" command:

          Echo Before call
          call D:\java\JBoss\wsconsume.bar -k htp://127.0.0.1:8080/MyService?WSDL
          Echo This text WILL be written!!!