Topic
3 replies Latest Post - ‏2005-05-24T14:39:42Z by SystemAdmin
SystemAdmin
SystemAdmin
835 Posts
ACCEPTED ANSWER

Pinned topic Root document fetch

‏2005-05-19T16:41:56Z |
I have a VXML application running on a WVS/WVR 4.2.

This starts with a static VXML page, referencing a root VXML document in
the same directory:
<vxml version="2.0" xml:lang="fr-FR" xmlns="http://www.w3.org/2001/vxml"
application="myroot.vxml">

Within the appl, I submit a request to a WAS server that generates
dynamically the next VXML page:
<submit next="http://(ip)/appl" namelist="userId" />

This URI dynamically generates VXML code that also references the root
document:
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE vxml PUBLIC "-//W3C//DTD VOICEXML 2.0//EN" "vxml20-1115.dtd">
<vxml xmlns="http://www.w3.org/2001/vxml" version="2.0" xml:lang="fr-FR"
application="myroot.vxml">
<form>
(...)

The problem is that the browser aborts, because it tries to fetch the
root document from the WAS server (where the generated VXML comes from),
and not from the WVS server :
FAILURE: Fetcher::run - end of fetch due to file not found -
ResourceManager_940052273_FetchSession_null_Fetcher_1_FetchProperties_1116032817_http://(ip)/appl/myroot.vxml

Is there a way to convince WVS that, despite the dynamic contents comes
from WAS, the root document lies in its own static directory ?

Hubert Crepy - IBM France Speech R&D
Updated on 2005-05-24T14:39:42Z at 2005-05-24T14:39:42Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    835 Posts
    ACCEPTED ANSWER

    Re: Root document fetch

    ‏2005-05-19T21:35:44Z  in response to SystemAdmin
    Well it make sense, when you call a some thing on server side that is in a
    differenet directory structure, the webcontext changes to that directory. So
    from there onwards, anything you call on the server side, it would try to
    find it in that webcontext. To solve the problem, what you can do is, either
    reference the root document with the complete URL or, you could put
    reference the vxml in the proper directory structure. For example,

    if A.vxml is your root document, and is in /web/A.vxml, and you call a
    servelet in /web/servlet/B.java, then if you want to call C.vxml that is in
    /web/C.vxml, you could simply referece A as root document by specifying,
    "application="../A.vxml".

    I prefere putting the complete URL wherever possible,

    I hope this helps,

    Regards,
    -Kris
    "Hubert Crepy" <crepy@fr.ibm.com> wrote in message
    news:d6iffj$3ku0$1@news.boulder.ibm.com...
    >I have a VXML application running on a WVS/WVR 4.2.
    >
    > This starts with a static VXML page, referencing a root VXML document in
    > the same directory:
    > <vxml version="2.0" xml:lang="fr-FR" xmlns="http://www.w3.org/2001/vxml"
    > application="myroot.vxml">
    >
    > Within the appl, I submit a request to a WAS server that generates
    > dynamically the next VXML page:
    > <submit next="http://(ip)/appl" namelist="userId" />
    >
    > This URI dynamically generates VXML code that also references the root
    > document:
    > <?xml version="1.0" encoding="iso-8859-1"?>
    > <!DOCTYPE vxml PUBLIC "-//W3C//DTD VOICEXML 2.0//EN" "vxml20-1115.dtd">
    > <vxml xmlns="http://www.w3.org/2001/vxml" version="2.0" xml:lang="fr-FR"
    > application="myroot.vxml">
    > <form>
    > (...)
    >
    > The problem is that the browser aborts, because it tries to fetch the root
    > document from the WAS server (where the generated VXML comes from), and
    > not from the WVS server :
    > FAILURE: Fetcher::run - end of fetch due to file not found -
    > ResourceManager_940052273_FetchSession_null_Fetcher_1_FetchProperties_1116032817_http://(ip)/appl/myroot.vxml
    >
    > Is there a way to convince WVS that, despite the dynamic contents comes
    > from WAS, the root document lies in its own static directory ?
    >
    > --
    > Hubert Crepy - IBM France Speech R&D
    >

    • SystemAdmin
      SystemAdmin
      835 Posts
      ACCEPTED ANSWER

      Re: Root document fetch

      ‏2005-05-24T13:10:04Z  in response to SystemAdmin
      Kris Gutta wrote:
      > I prefere putting the complete URL wherever possible,

      That doesn't work for me:
      <vxml xmlns="http://www.w3.org/2001/vxml" version="2.0" xml:lang="fr-FR"

      application="http://myWVSserver.fr.ibm.com/home/dtuser/applis/meteoperso/meteoroot.vxml"
      >
      yields:
      2005-05-24 14:59:34.040 call 5:9.101.45.33 PID0:13 (VXI10000) INFO:
      VXML: 676996938746298373-0:Event: error.badfetch, Error:
      http://myWVSserver.fr.ibm.com/home/dtuser/applis/meteoperso/meteoroot.vxml:fetch
      error:-1
      2005-05-24 14:59:34.041 call 0:0.0.0.0 PID0:19 (VXI00000) FAILURE: -
      end of fetch due to error -
      ResourceManager_745733795_FetchSession_null_Fetcher_2_FetchProperties_585875107_http://planchet.parislab.fr.ibm.com/home/dtuser/applis/meteoperso/meteoroot.vxml
      java.net.ConnectException: Un hôte éloigné a rejeté une tentative de
      connexion (connect).

      exactly the same as when I try the same URL from a Mozilla search bar.
      I think that's because my WVS server is not a http server.
      Or else can you spot something wrong in my syntax ?

      Hubert Crepy - IBM France Speech R&D
      • SystemAdmin
        SystemAdmin
        835 Posts
        ACCEPTED ANSWER

        Re: Root document fetch

        ‏2005-05-24T14:39:42Z  in response to SystemAdmin
        Thanks for your help, problem solved:

        I put the root document on the WAS server instead of the WVS server, and
        access it both:
        • with a relative URL from the dynamic pages generated by WAS
        • with a fully-qualified URL from the static pages located on WVS

        Works for me !

        Hubert Crepy - IBM France Speech R&D