VoiceGuide IVR Software Main Page
Jump to content

Xml Data In Webservice Module

Recommended Posts

Source xml data :

 

<methodResponse>
<params>
<param>
<value>
<struct>
<member>
<name>stanKonta</name>
<value>
<string>ACTIVE</string>
</value>
</member>
<member>
<name>saldoKonta</name>
<value>
<string>95.39</string>
</value>
</member>
</struct>
</value>
</param>
</params>
</methodResponse>

 

 

How to find VG variables names in this case?

 

 

Share this post


Link to post

Can you please provide more information as to what the above relates to?

 

can you post the script that is used and the vgEngine trace file that captures the call?

Share this post


Link to post
log data:
080401.930 6 2 1 RunModule start Web Service, [Web Service 1], iModuleIdx=168, previous: vgm=168, vgs=2:2
080401.930 6 2 1 state [Web Service 1] Web Service Call
080401.930 6 2 1 t timer set 10 sec : EV_TIMEOUT_GOTOMODULE
080401.930 6 2 1 QueueUserWorkItem modWs.RunModule call
080401.931 6 2 1 zModParams.iLineId=2, zModParams.iModuleIdx=168
080401.931 3 2 1 ws RunModule start iLineId=2, iModuleIdx=168, iRunWait=1
080401.931 3 2 1 ws PlayOnHoldFile
080401.931 3 2 1 moh file not specified
080401.931 3 2 1 ws WebRequest.Create returned [http://www.twoje.infolinie.com/wm/adv.xml
]
080401.940 3 2 1 ws request.Method=GET
080401.940 3 2 1 ws CurrentConnections=0/60, ReceiveBufferSize=-1, Expect100Continue=True
080401.940 3 2 1 ws ConnectionLeaseTimeout=180000
080401.940 3 2 1 ws spm.DefaultConnectionLimit=60, spm.DefaultPersistentConnectionLimit=2
080401.940 3 2 1 ws new RequestState call
080401.940 3 2 1 ws BeginGetResponse (GetWsResponse_Callback) call. ReadWriteTimeout=8000
080401.970 3 2 1 ws BeginGetResponse returned
080401.981 24 2 1 ws GetResponse_Callback start. Time since WsUserWorkItemCreated=00:00:00.0510030
080401.981 24 2 1 ws header Connection 0 = close
080401.981 24 2 1 ws header Accept-Ranges 0 = bytes
080401.981 24 2 1 ws header Content-Length 0 = 429
080401.981 24 2 1 ws header Content-Type 0 = application/xml
080401.981 24 2 1 ws header Date 0 = Tue, 16 Jul 2013 06:04:07 GMT
080401.981 24 2 1 ws header ETag 0 = "268000000020b2f-1ad-4e19ab8c32e13"
080401.981 24 2 1 ws header Last-Modified 0 = Tue, 16 Jul 2013 06:02:27 GMT
080401.981 24 2 1 ws header Server 0 = Apache/2.2.22 (Win32) PHP/5.2.17 mod_ssl/2.2.22 OpenSSL/0.9.8t
080401.982 24 2 1 ws header scan returns: []
080401.982 24 2 1 ws header list returns: [[Web Service 1_http_resp_hdr_Connection]{close}[Web Service 1_http_resp_hdr_Accept-Ranges]{bytes}[Web Service 1_http_resp_hdr_Content-Length]{429}[Web Service 1_http_resp_hdr_Content-Type]{application/xml}[Web Service 1_http_resp_hdr_Date]{Tue, 16 Jul 2013 06:04:07 GMT}[Web Service 1_http_resp_hdr_ETag]{"268000000020b2f-1ad-4e19ab8c32e13"}[Web Service 1_http_resp_hdr_Last-Modified]{Tue, 16 Jul 2013 06:02:27 GMT}[Web Service 1_http_resp_hdr_Server]{Apache/2.2.22 (Win32) PHP/5.2.17 mod_ssl/2.2.22 OpenSSL/0.9.8t}]
080401.982 24 2 1 ws ListHeadersAndReturnSomeRVs returned. sRV=[Web Service 1_http_resp_hdr_Connection]{close}[Web Service 1_http_resp_hdr_Accept-Ranges]{bytes}[Web Service 1_http_resp_hdr_Content-Length]{429}[Web Service 1_http_resp_hdr_Content-Type]{application/xml}[Web Service 1_http_resp_hdr_Date]{Tue, 16 Jul 2013 06:04:07 GMT}[Web Service 1_http_resp_hdr_ETag]{"268000000020b2f-1ad-4e19ab8c32e13"}[Web Service 1_http_resp_hdr_Last-Modified]{Tue, 16 Jul 2013 06:02:27 GMT}[Web Service 1_http_resp_hdr_Server]{Apache/2.2.22 (Win32) PHP/5.2.17 mod_ssl/2.2.22 OpenSSL/0.9.8t}
080401.982 24 2 1 ws response.GetResponseStream call
080401.982 24 2 1 ws sreaderResponse.ReadToEnd completed
080401.982 24 2 1 ws strReturnedByByHttpResponse XML parse
080401.983 24 2 1 rv add start Web Service 1_Result_Code|OK
080401.983 24 2 1 rv add OK
080401.983 24 2 1 rv add start Web Service 1_Result_Desc|OK
080401.983 24 2 1 rv add OK
080401.983 24 2 1 ws GetWsResponse_Callback iRunWait=1, WavPlayWasStarted=0, WavPlayHasNowFinished=0
080401.983 24 2 1 ModuleCompleted_WebServiceCall [200] : [OK]
080401.983 24 2 1 path {200} not found
080401.983 24 2 1 path {OK} not found
080401.984 24 2 1 path {OK} not found
080401.984 24 2 1 FindNextVgmTitleInPathList: next module title is=[Evaluate 26]

 

 

Getting data from other xml files I don't see any data too. I have to use Evaluate Expression to call data if i know their names.

adv.xml

Share this post


Link to post

Looks like you are using a Web Service type module to retrieve XML data from URL http://www.twoje.infolinie.com/wm/adv.xml using a GET request.

 

The trace excerpt posted was a bit to short to determine which version of VoiceGuide is used but when we ran this using the latest version the following RVs were created:

205908.322 18  82  32       rv    add   ourTest_http_resp_hdr_Connection|close
205908.322 18  82  32       rv    add   ourTest_http_resp_hdr_Accept-Ranges|bytes
205908.322 18  82  32       rv    add   ourTest_http_resp_hdr_Content-Length|429
205908.322 18  82  32       rv    add   ourTest_http_resp_hdr_Content-Type|application/xml
205908.322 18  82  32       rv    add   ourTest_http_resp_hdr_Date|Tue, 16 Jul 2013 10:59:00 GMT
205908.322 18  82  32       rv    add   ourTest_http_resp_hdr_ETag|"268000000020b2f-1ad-4e19ab8c32e13"
205908.322 18  82  32       rv    add   ourTest_http_resp_hdr_Last-Modified|Tue, 16 Jul 2013 06:02:27 GMT
205908.322 18  82  32       rv    add   ourTest_http_resp_hdr_Server|Apache/2.2.22 (Win32) PHP/5.2.17 mod_ssl/2.2.22 OpenSSL/0.9.8t
205908.322 18  82  32       rv    add   name|stanKonta
205908.322 18  82  32       rv    add   name_1|stanKonta
205908.322 18  82  32       rv    add   string|ACTIVE
205908.322 18  82  32       rv    add   string_1|ACTIVE
205908.322 18  82  32       rv    add   name_2|saldoKonta
205908.322 18  82  32       rv    add   string_2|95.39
205908.322 18  82  32       rv    add   ourTest_Result_Code|OK
205908.322 18  82  32       rv    add   ourTest_Result_Desc|OK

eg: $RV[string_2] would hold a value of: 95.39

 

fuller trace:

205905.053  3  82  32 state [ourTest] Web Service Call
205905.053  3  82  32       modWs SetTimeoutEventInVgm->-1
205905.053  3  82  32 t     timer set   30 sec : EV_TIMEOUT_HANGUP
205905.054  3  82  32       QueueUserWorkItem modWs.RunModule call. modCurrentModuleWs.hash=11454272, zModTaskParams.hash=1680636826
205905.054  3  82  32       q scr run   evScriptEvent sCode=[TDX_CST] iActionID=0, crn=10000002[16100|0|0|0|0][DE_LCON|||||] 00:00:00.0019532 max:3|00:00:00.1113282
205905.054  3  82  32       scriptevent TDX_CST  16100|0|0  DE_LCON|| LineState=LS_WS_CALL
205905.054  3  82  32       LsWsCall TDX_CST lCode2Str=EV_UNKNOWN_134
205905.054  3  82  32       ws    ScriptEvent EV_UNKNOWN_134,TDX_CST 16100,0,0 DE_LCON||
205905.054  3  82  32       ws    ScriptEvent taskParams.hash=1680636826
205905.054  3  82  32       ws    ScriptEvent ignored as bReadyToHandleEvents=false
205905.054 17  82  32       ws    RunModule_WebService start iModuleIdx=528, iRunWait=1
205905.054 17  82  32       ws    sLogFromConstructor: taskParams_in.hash=1680636826, taskParams.hash=1680636826
205905.054 17  82  32       ws    RunModule_WebService start taskParams.hash=1680636826
205905.054 17  82  32       ws    PlayOnHoldFile
205905.054 17  82  32       moh file not specified
205905.054 17  82  32       ws    WebRequest.Create [http://www.twoje.infolinie.com/wm/adv.xml
] call
205905.055 17  82  32       ws    request.Method=[GET]
205905.055 17  82  32       ws    request.ServicePoint.CurrentConnections call.
205905.055 17  82  32       ws    CurrentConnections=0/60, ReceiveBufferSize=-1, Expect100Continue=False
205905.055 17  82  32       ws    sp.ConnectionLeaseTimeout=0, spm.DefaultConnectionLimit=60, spm.DefaultPersistentConnectionLimit=2
205905.055 17  82  32       ws    new RequestState call
205905.055 17  82  32       ws    request.ReadWriteTimeout=30000, taskParams.iWsTimeoutMs_GoToAnotherModule=-1
205905.055 17  82  32       ws    taskParams.clsRequestState.hash=35992504
205905.055 17  82  32       ws    BeginGetResponse (GetWsResponse_Callback) call. ReadWriteTimeout=30000
205905.056 17  82  32       ws    BeginGetResponse returned
205908.321 18  82  32       ws    GetWsResponse_Callback start. class' taskParams.hash=1680636826 clsRequestStateData.taskParams.hash=1680636826
205908.321 18  82  32       ws    GetWsResponse_Callback request.hash=46599775
205908.321 18  82  32       ws    GetWsResponse_Callback start [ourTest], time since WsUserWorkItemCreated=00:00:03.2666015
205908.321 18  82  32       ws          header Connection 0 = close
205908.321 18  82  32       ws          header Accept-Ranges 0 = bytes
205908.321 18  82  32       ws          header Content-Length 0 = 429
205908.322 18  82  32       ws          header Content-Type 0 = application/xml
205908.322 18  82  32       ws          header Date 0 = Tue, 16 Jul 2013 10:59:00 GMT
205908.322 18  82  32       ws          header ETag 0 = "268000000020b2f-1ad-4e19ab8c32e13"
205908.322 18  82  32       ws          header Last-Modified 0 = Tue, 16 Jul 2013 06:02:27 GMT
205908.322 18  82  32       ws          header Server 0 = Apache/2.2.22 (Win32) PHP/5.2.17 mod_ssl/2.2.22 OpenSSL/0.9.8t
205908.322 18  82  32       ws          header scan returns: []
205908.322 18  82  32       ws          header list returns: [[ourTest_http_resp_hdr_Connection]{close}[ourTest_http_resp_hdr_Accept-Ranges]{bytes}[ourTest_http_resp_hdr_Content-Length]{429}[ourTest_http_resp_hdr_Content-Type]{application/xml}[ourTest_http_resp_hdr_Date]{Tue, 16 Jul 2013 10:59:00 GMT}[ourTest_http_resp_hdr_ETag]{"268000000020b2f-1ad-4e19ab8c32e13"}[ourTest_http_resp_hdr_Last-Modified]{Tue, 16 Jul 2013 06:02:27 GMT}[ourTest_http_resp_hdr_Server]{Apache/2.2.22 (Win32) PHP/5.2.17 mod_ssl/2.2.22 OpenSSL/0.9.8t}]
205908.322 18  82  32       ws    GetWsResponse_Callback ListHeadersAndReturnSomeRVs returned. sRV=[ourTest_http_resp_hdr_Connection]{close}[ourTest_http_resp_hdr_Accept-Ranges]{bytes}[ourTest_http_resp_hdr_Content-Length]{429}[ourTest_http_resp_hdr_Content-Type]{application/xml}[ourTest_http_resp_hdr_Date]{Tue, 16 Jul 2013 10:59:00 GMT}[ourTest_http_resp_hdr_ETag]{"268000000020b2f-1ad-4e19ab8c32e13"}[ourTest_http_resp_hdr_Last-Modified]{Tue, 16 Jul 2013 06:02:27 GMT}[ourTest_http_resp_hdr_Server]{Apache/2.2.22 (Win32) PHP/5.2.17 mod_ssl/2.2.22 OpenSSL/0.9.8t}
205908.322 18  82  32       ws    response.GetResponseStream call
205908.322 18  82  32       ws    sreaderResponse.ReadToEnd completed
205908.322 18  82  32       ws    strReturnedByByHttpResponse XML parse
205908.322 18  82  32       rv    add   ourTest_http_resp_hdr_Connection|close
205908.322 18  82  32       rv    add   ourTest_http_resp_hdr_Accept-Ranges|bytes
205908.322 18  82  32       rv    add   ourTest_http_resp_hdr_Content-Length|429
205908.322 18  82  32       rv    add   ourTest_http_resp_hdr_Content-Type|application/xml
205908.322 18  82  32       rv    add   ourTest_http_resp_hdr_Date|Tue, 16 Jul 2013 10:59:00 GMT
205908.322 18  82  32       rv    add   ourTest_http_resp_hdr_ETag|"268000000020b2f-1ad-4e19ab8c32e13"
205908.322 18  82  32       rv    add   ourTest_http_resp_hdr_Last-Modified|Tue, 16 Jul 2013 06:02:27 GMT
205908.322 18  82  32       rv    add   ourTest_http_resp_hdr_Server|Apache/2.2.22 (Win32) PHP/5.2.17 mod_ssl/2.2.22 OpenSSL/0.9.8t
205908.322 18  82  32       rv    add   name|stanKonta
205908.322 18  82  32       rv    add   name_1|stanKonta
205908.322 18  82  32       rv    add   string|ACTIVE
205908.322 18  82  32       rv    add   string_1|ACTIVE
205908.322 18  82  32       rv    add   name_2|saldoKonta
205908.322 18  82  32       rv    add   string_2|95.39
205908.322 18  82  32       rv    add   ourTest_Result_Code|OK
205908.322 18  82  32       rv    add   ourTest_Result_Desc|OK
205908.322 18  82  32       ws    GetWsResponse_Callback iRunWait=1, WavPlayWasStarted=0, WavPlayHasNowFinished=0
205908.322 18  82  32       ModuleCompleted_WebServiceCall [200] : [OK]
205908.322 18  82  32       path {200} not found
205908.322 18  82  32       path {OK} not found
205908.323 18  82  32       path {OK} not found
205908.323 18  82  32       HangupCall_AddToTaskQueue (ModuleCompleted_WebServiceCall_OK)

Share this post


Link to post

Version I use:

 

141720.520 5 ------------------------------------------------------------------------------------------------------
141720.520 5 vgEngine version : 0.0.0.0 (RELEASE Build)
141720.520 5 created on : 2013-05-02 23:45:07.90
141720.520 5 AssemblyLocation : C:\Program Files (x86)\VoiceGuide\vgEngine.dll
141720.520 5 LastWriteTime : 2013-05-02 15:46:40
141720.520 5 trace lvl=10, encoding=System.Text.ASCIIEncoding (ASCII)

 

And I use HTTP GET REQUEST

 

Can You send script You use to test?

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×