XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Conferences Close Tree View
+ Stylus Studio Feature Requests (1192)
- Stylus Studio Technical Forum (14621)
-> + Stylus Studio Tool Bars (2)
-> + X14 Enterprise - Web Services ... (3)
-> + Saxon edition in X14 Enterpris... (2)
-> + How to create PDF documents wi... (2)
-> - WSCall doesn't work from xquer... (4)
-> ->WSCall doesn't work from ...
-> ->WSCall doesn't work from ...
-> ->WSCall doesn't work from ...
-> + Issues with converter (8)
-> + xsd null strings - option to i... (2)
-> + wrapping table rows and mismat... (3)
-> + Report Designer: Is it possibl... (4)
-> + Message Baplie 1.5 with 1.911 ... (2)
-> + saved merged view in diff engi... (2)
-> + Cannot see needed element to m... (2)
-> + Matching problem in function (3)
-> - Funny warning message (1)
-> - Missing rows and text when con... (1)
-> + Another JSON problem (2)
-> + JSON problem (8)
-> + WebDav Custom properties (2)
-> + jvm not registering in the too... (2)
-> + How to turn off error about mi... (6)
-> + XML Attribute Element output f... (2)
-- Previous [361-380] [381-400] [401-420] Next
+ Website Feedback (249)
+ XSLT Help and Discussion (7625)
+ XQuery Help and Discussion (2017)
+ Stylus Studio FAQs (159)
+ Stylus Studio Code Samples & Utilities (364)
+ Stylus Studio Announcements (113)
Topic  
Postnext
Krishna MalyalaSubject: WSCall doesn't work from xquery
Author: Krishna Malyala
Date: 14 Nov 2011 01:30 PM
Downloaded trial version(14)and trying to test recursive web service call. Web Service call works fine in test mode but doesn't seem to work from xquery!
Initially tried on our internal WS but when it didn't work, I tried the stock quote one from the demo video: "http://examples.xquery.com/stock-quotes/wsdl". Attached is a screen-shot but here is the problem:
when I click "preview result", it thinks for some time,there are NO errors but the output doesn't contain anything from the WS! This is the same behavior from my internal service as well.
I have 5 rows in a SQL server table with ticker symbols for input to the WS.
Please help me figure out what's going on so I can try and get actual WS to work...

<k>


Documentstock_Test_xquery.docx
screenshot of xquery

Postnext
Ivan PedruzziSubject: WSCall doesn't work from xquery
Author: Ivan Pedruzzi
Date: 14 Nov 2011 03:38 PM
Hi Krishna,

It seems to work as designed, I just did a quick test, screenshot attached.


Ivan Pedruzzi
Stylus Studio Team

Postnext
Krishna MalyalaSubject: WSCall doesn't work from xquery
Author: Krishna Malyala
Date: 14 Nov 2011 05:07 PM
Thanks Ivan, I was able to get it to work after editing code to match your screenshot. This is good and helps me rule out any other issues, thanks.
However, I need to understand why auto-generated code didn't work... I think the main point of this tool (at least for me) is to minimize coding ;o) Any insights? I thought I followed the concept of online demo video.

<k>

declare namespace dd = "http://www.datadirect.com";
declare namespace y = "http://finance.yahoo.com";

<quotes>
{
for $tickers in collection("IWA.dbo.STOCKS")/STOCKS/TICKER
return
ddtek:wscall(<ddtek:location xmlns:ddtek="http://www.datadirect.com/xquery" soapaction="getQuotes.xquery" address="http://examples.xquery.com/stock-quotes/wsdl"/>,<dd:getQuotes><dd:tickers>
{$tickers/text()}
</dd:tickers></dd:getQuotes>)/quotes/stock/last-value
}

</quotes>

Posttop
Ivan PedruzziSubject: WSCall doesn't work from xquery
Author: Ivan Pedruzzi
Date: 14 Nov 2011 06:00 PM

We have a nice tutorial that shows how to integrate relational data and web services, using the XQuery mapping tool without typing a single instruction.
http://www.stylusstudio.com/videos/XQueryWS/XQuery_WS.html

Additional tutorials here
http://www.stylusstudio.com/xml_video_list.html

Hope this helps
Ivan Pedruzzi
Stylus Studio Team

   
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.