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
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
steven matthewsSubject: SOAP and XSL
Author: steven matthews
Date: 23 Feb 2007 06:42 AM
HI there,

I have developed a simple web service calculator. See ...

http://ws.ntforl.com/

For example entering 23 and 34 returns ...


<?xml version="1.0" encoding="utf-8" ?>
- <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- <soap:Body>
- <CalculateResponse xmlns="http://web14.3essentials.com/$sitepreview/ws.ntforl.com/">
<CalculateResult>57</CalculateResult>
</CalculateResponse>
</soap:Body>
</soap:Envelope>

Q How can I wrap this raw output into an XSL stylesheet ?

I have attached the source file that invokes the web service from the web page (calculate2.asp)

Any advice ?

Steven Matthews


Unknowncalculate2.asp
ASP file

Postnext
(Deleted User) Subject: SOAP and XSL
Author: (Deleted User)
Date: 26 Feb 2007 08:34 AM
Hi Steven,
can you attach the .asp file using a different extension? (the forum software refuses to handle unsafe extensions)
Have you tried embedding in the XSL code a call to document("http://ws.ntforl.com/calculate2.asp?num1=23&num2=32&chooseOp=m")?

Alberto

Postnext
steven matthewsSubject: SOAP and XSL
Author: steven matthews
Date: 26 Feb 2007 01:31 PM
Hi Alberto,

Yes I have attached the .asp file as a .txt file.

Also I have put together a .xsl file called 'calculate.xsl' which is also called within the original SOAP message,

thanks,

Steven Matthews


Unknowncalculate2.txt
calculate2.asp (as a txt file)

Unknowncalculate.xsl
xsl stylesheet

Posttop
(Deleted User) Subject: SOAP and XSL
Author: (Deleted User)
Date: 27 Feb 2007 07:23 AM
Hi Steven,
have you tried using the Web Service Call Composer feature of Stylus Studio?

Alberto


Unknownmathservice.wscc
Web Service Call Composer document

Unknownmathservice.xsl
XSL processing the wscc call

 
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
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.