Hi,
I would like to know if there is any sample code to call a web service from server side javascript: send soap and receive xml, then pass xml to get response.
Thanks,
Xiaoli
call web service from server side javascript.
Moderators: Jon, Steve, Ian, Dave
-
- Ebase User
- Posts: 272
- Joined: Fri Dec 14, 2012 2:55 pm
- Location: Ottawa
-
- Moderator
- Posts: 1342
- Joined: Wed Sep 12, 2007 12:49 pm
Xiaoli,
I'm not too sure what you're asking here. You can call a web service from the server using a Web Service Resource, the response will be an XML document, and you can use the resource to retrieve the parts of the response you need. You can only use a Web Services Resource to call a web service with a published WSDL and this doesn't include restful web services.
There's an example here http://forum.ebasetech.com/forum/viewtopic.php?t=523 of calling a restful web service from the server.
Regards
Jon
I'm not too sure what you're asking here. You can call a web service from the server using a Web Service Resource, the response will be an XML document, and you can use the resource to retrieve the parts of the response you need. You can only use a Web Services Resource to call a web service with a published WSDL and this doesn't include restful web services.
There's an example here http://forum.ebasetech.com/forum/viewtopic.php?t=523 of calling a restful web service from the server.
Regards
Jon
Last edited by Jon on Tue Sep 30, 2014 6:42 am, edited 1 time in total.
0 x
-
- Ebase User
- Posts: 272
- Joined: Fri Dec 14, 2012 2:55 pm
- Location: Ottawa
-
- Moderator
- Posts: 421
- Joined: Fri Sep 07, 2007 3:44 pm
- Location: Sandy, UK
- Contact:
Hi Xiaoli,
Could you send me the WSDL you are trying to import and I will take a look. If wsdl is a link, could you load this in a browser and save the WSDL and all the associated XSDs and package together.
Can you attach the file(s) and send to support@ebasetech.com and I will take a look.
Kind regards
Steve
Could you send me the WSDL you are trying to import and I will take a look. If wsdl is a link, could you load this in a browser and save the WSDL and all the associated XSDs and package together.
Can you attach the file(s) and send to support@ebasetech.com and I will take a look.
Kind regards
Steve
0 x
-
- Ebase User
- Posts: 272
- Joined: Fri Dec 14, 2012 2:55 pm
- Location: Ottawa
-
- Moderator
- Posts: 421
- Joined: Fri Sep 07, 2007 3:44 pm
- Location: Sandy, UK
- Contact:
-
- Moderator
- Posts: 421
- Joined: Fri Sep 07, 2007 3:44 pm
- Location: Sandy, UK
- Contact:
-
- Ebase User
- Posts: 272
- Joined: Fri Dec 14, 2012 2:55 pm
- Location: Ottawa
-
- Moderator
- Posts: 421
- Joined: Fri Sep 07, 2007 3:44 pm
- Location: Sandy, UK
- Contact:
-
- Ebase User
- Posts: 272
- Joined: Fri Dec 14, 2012 2:55 pm
- Location: Ottawa
-
- Moderator
- Posts: 421
- Joined: Fri Sep 07, 2007 3:44 pm
- Location: Sandy, UK
- Contact:
Who is online
Users browsing this forum: No registered users and 21 guests