Hi,
I will need to call a web service from server side javascript, then process the returned xml.
The web service request need input parameters.
Is there some sample code?
Thanks,
Xiaoli
call web service from script and handle it.
Moderators: Jon, Steve, Ian, Dave
-
xren
- Ebase User
- Posts: 272
- Joined: Fri Dec 14, 2012 2:55 pm
- Location: Ottawa
-
Steve
- Moderator

- Posts: 423
- Joined: Fri Sep 07, 2007 3:44 pm
- Location: Sandy, UK
- Contact:
Hi Xiaoli,
You can checkout the online documentation for web service adapters:
http://dev-docs.verj.io/ufs/doc/xmlreso ... dapter.htm
or there is an example web service:
http://dev-docs.verj.io/ufs/doc/xmlreso ... kstart.htm
I am not sure the tutorial is that simple, but it gives you an idea.
Basically you need to map form fields to the source fields within your web service resource. You will map the form fields the source fields. The source fields are associated with either the request or response document elements.
All you need to do to call the web service resource is:
I hope this helps.
Steve
You can checkout the online documentation for web service adapters:
http://dev-docs.verj.io/ufs/doc/xmlreso ... dapter.htm
or there is an example web service:
http://dev-docs.verj.io/ufs/doc/xmlreso ... kstart.htm
I am not sure the tutorial is that simple, but it gives you an idea.
Basically you need to map form fields to the source fields within your web service resource. You will map the form fields the source fields. The source fields are associated with either the request or response document elements.
All you need to do to call the web service resource is:
Code: Select all
try
{
resources.MY_WEB_SERVICE.call();
}
catch (e if e.javaException instanceof com.ebasetech.xi.api.exceptions.SoapFaultException)
{
log(e.javaException.message);
}
Steve
0 x
-
xren
- Ebase User
- Posts: 272
- Joined: Fri Dec 14, 2012 2:55 pm
- Location: Ottawa
Who is online
Users browsing this forum: No registered users and 36 guests