VoiceGuide IVR Software Main Page
Jump to content

Can't post data via web service module

Recommended Posts

I would like to ask that why I can't post data via web service module ? Although the callflow can connect web service successfully, the data can't write in xml file. Please refer to the attachment. Does the web service post data only support xml ? Thank you.

Annotation 2020-06-05 175914.png

Share this post


Link to post

Anything that is specified in the "Data" text box will be sent to http/https server when the "Http POST" Request is made.

Can you post the vgEngine trace that captures the call and the execution of the "Web Service" module in particular?

Share this post


Link to post

The HTTP address is incorrect.

The screenshot shows that address is specified as:

http://localhost:84/test/test.xml

That is not a valid HTTP Service address.

Please check what is the HTTP Service's address endpoint, amend accordingly, and try again.

If you are still encountering problems please post the vgEngine trace that captures the call and the execution of the "Web Service" module in particular.

Share this post


Link to post

Are you trying to do a HTTP POST, or are you trying to read in the "test.xml" file?

To read in the "test.xml" file you should be using a "HTTP GET" request.

Share this post


Link to post

Thank you. I am trying to do a HTTP POST. I want to insert web service data in test.xml

Share this post


Link to post

You want the webservice to place the data posted to it into a file (test.xml) on the machine running the web service?

This is something that would be done by whatever is running the "test" endpoint webservice on port 84...

Share this post


Link to post

Yes, I want to to place the data posted to it into a file (test.xml) on the machine running the web service, but I can't do it.

Share this post


Link to post

Do you actually want to send data to a web service running on another machine/server, or do you just want to save data to a file on a local machine?

You seem to want to connect to a web service running on a local machine, and then have that web service save to file, so why not just save to file directly from VoiceGuide?

Example of how to save to file can be found here:

https://www.voiceguide.com/vghelp/source/html/modvbs.htm

see the "Example : Save to File" section in the above link.

 

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
×