[CITE-Forum] Two questions about Cite.
Luis Bermudez
lbermudez at opengeospatial.org
Sat Aug 6 10:28:14 EDT 2011
Hi Rocky
The latest TEAM Engine, which is the one in the current beta site, can be found here:
https://teamengine.svn.sourceforge.net/svnroot/teamengine/tags/beta-2.2
Luis
-------------
Luis Bermudez
lbermudez at opengeospatial.org
+1 (301) 760-7323
The OGC: Making Location Count...
http://www.opengeospatial.org/contact
On Aug 5, 2011, at 8:27 AM, Jinsongdi Yu wrote:
> As far as I know soap-request is not supported by the old TEAM Engines. Maybe you can try the latest version from ogc svn repository.
>
> Best
> Jinsongdi
>
> 2011/8/5 宗岩 Rocky <rocky at gis.tw>
> Dear Jinsongdi,
>
>
> I don’t know what happened to my TEAM-Engine.
>
> I can’t send soap-request with <ctl:soap-request> tag.
>
> It seems like my TEAM-Enging don’t know what <ctl:soap-request> is.
>
>
> Here is the response:
>
> Testing suite :suite...
>
> Testing :Main (s0001)...
>
> Assertion: test if soap-request is work!
>
> **********************************************************************
>
> URL: http://www.google.com.tw/
>
> **********************************************************************
>
> Capabilities:http://www.google.com.tw/
>
> **************************************************************************
>
> Root:soap-request
>
> **************************************************************************
>
> Test :Main Failed
>
> Suite :suite Failed
>
>
> Here is the source scripts:
>
> <?xml version="1.0" encoding="utf-8"?>
>
> <package xmlns="http://www.occamlab.com/ctl" xmlns:ctl="http://www.occamlab.com/ctl" xmlns:ctlp="http://www.occamlab.com/te/parsers" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>
> xmlns:ows="http://www.opengis.net/ows/1.1">
>
> <suite name="suite">
>
> <title>Easy Test</title>
>
> <description>Easy Test.</description>
>
> <link></link>
>
> <starting-test>Main</starting-test>
>
> </suite>
>
>
> <test name="Main">
>
> <assertion>test if soap-request is work!</assertion>
>
> <code>
>
> <message>**********************************************************************</message>
>
> <xsl:variable name="url" select="string('http://www.google.com.tw/')"/>
>
> <message>URL: <xsl:value-of select="$url" /></message>
>
> <message>**********************************************************************</message>
>
> <!-- Send request -->
>
> <xsl:variable name="Capabilities">
>
> <ctl:soap-request version="1.2" charset="UTF-8">
>
> <ctl:url><xsl:value-of select="$url"/></ctl:url>
>
> <ctl:body>
>
> <wcs:GetCapabilities xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ows="http://www.opengis.net/ows/1.1"
>
> xmlns:wcs="http://www.opengis.net/wcs/2.0" service="WCS" version="2.0.0">
>
> </wcs:GetCapabilities>
>
> </ctl:body>
>
> </ctl:soap-request>
>
> </xsl:variable>
>
> <!-- show response -->
>
> <message>Capabilities:<xsl:value-of select="$Capabilities" /></message>
>
> <message>**************************************************************************</message>
>
> <!-- show response root -->
>
> <message>Root:<xsl:value-of select="local-name-from-QName(node-name($Capabilities/*[1]))" /></message>
>
> <message>**************************************************************************</message>
>
> <xsl:if test="local-name-from-QName(node-name($Capabilities/*[1]))=string('soap-request')"><ctl:fail /></xsl:if>
>
> </code>
>
> </test>
>
> </package>
>
>
>
> Tsung-Yen Li (Rocky)
>
> Engineer
> GIS Research Center, Feng-Chia University
>
> Tel 04-24516669 ext.350
>
>
> From: yyx350 at gmail.com [mailto:yyx350 at gmail.com] On Behalf Of Jinsongdi Yu
> Sent: Thursday, August 04, 2011 7:40 PM
> To: 宗岩 Rocky
> Cc: cite-forum at lists.opengeospatial.org
> Subject: Re: [CITE-Forum] Two questions about Cite.
>
>
> The exception is as below:
>
> "Error in call to extension function {public org.w3c.dom.NodeList com.occamlab.te.TECore.soap_request(org.w3c.dom.Document,java.lang.String) throws java.lang.Throwable}: Invalid encoding name: "
> The solution is to add charset="utf-8" to the soap-request.
>
> It seems that there is a bug for the soap-request. If the charset attribute is omitted, it will not use the default charset "utf-8".
>
> So the solution is
>
> <xsl:variable name="Capabilities">
> <ctl:soap-request version="1.2" charset="UTF-8">
> <ctl:url> <xsl:value-of select="$url"/> </ctl:url>
> <ctl:body> <wcs:GetCapabilities xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:wcs="http://www.opengis.net/wcs/2.0" service="WCS" version="2.0.0"></wcs:
>
> GetCapabilities> </ctl:body>
> <ctlp:SOAPParser return="content">
> <ctlp:XMLValidatingParser> <ctlp:schemas> <ctlp:schema type="url">http://schemas.opengis.net/wcs/2.0/wcsGetCapabilities.xsd</ctlp:schema> </ctlp:schemas> </ctlp:XMLValidatingParser> </ctlp:SOAPParser>
> </ctl:soap-request>
>
>
> Best
> Jinsongdi
>
>
>
> 2011/8/4 Jinsongdi Yu <j.yu at jacobs-university.de>
>
> Dear Rocky,
>
> It's in OGC06-126r2.
> A sample test is as below:
>
> <xsl:variable name="Capabilities">
> <ctl:soap-request version="1.2">
> <ctl:url> <xsl:value-of select="$url"/> </ctl:url>
> <ctl:body> <wcs:GetCapabilities xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:wcs="http://www.opengis.net/wcs/2.0" service="WCS" version="2.0.0"></wcs:GetCapabilities> </ctl:body>
> <ctlp:SOAPParser return="content">
> <ctlp:XMLValidatingParser> <ctlp:schemas> <ctlp:schema type="url">http://schemas.opengis.net/wcs/2.0/wcsGetCapabilities.xsd</ctlp:schema> </ctlp:schemas> </ctlp:XMLValidatingParser> </ctlp:SOAPParser>
> </ctl:soap-request>
>
> This works for the console mode. But it always report a exception for the browser mode.
>
> Best
> Jinsongdi
>
>
> 2011/8/4 宗岩 Rocky <rocky at gis.tw>
>
> Hello,
>
>
> here are two questions about the Teamengine ctl:
>
> 1. I can’t use console mode to test my ctl scripts , something wrong with "SOAPParser".
>
> 2. I don't know how to send request with SOAP binding. So I use the way below. I don’t know if it's right or not.
>
> ******************************************************************
>
> <ctl:request>
>
> <ctl:url>
>
> <xsl:value-of select="$serviceURL" />
>
> </ctl:url>
>
> <ctl:method>post</ctl:method>
>
> <ctl:body>
>
> <soap12:Envelope
>
> xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"
>
> xsi:schemaLocation="http://www.w3.org/2003/05/soap-envelope
>
> http://www.w3.org/2003/05/soap-envelope/soap-envelope.xsd
>
> http://www.opengis.net/sps/2.0 http://schemas.opengis.net/sps/2.0/sps.xsd"
>
> xmlns:sps="http://www.opengis.net/sps/2.0"
>
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>
> <soap12:Body>
>
> <sps:GetCapabilities/>
>
> </soap12:Body>
>
> </soap12:Envelope>
>
> </ctl:body>
>
> </ctl:request>
>
> ******************************************************************
>
>
> Thanks.
>
>
> Tsung-Yen Li (Rocky)
>
> Engineer
> GIS Research Center, Feng-Chia University
>
> Tel 04-24516669 ext.350
>
>
>
>
> -----Disclaimer-----
>
> 本郵件含有逢甲大學地理資訊系統研究中心機密資訊、或受法律保護之資料,唯有原發信人指定之收信人得閱讀或使用本郵件之內容。如您並非被指定之收信人,請立即將本郵件及所有附件予以刪除;請勿揭露、儲存或使用本郵件之任何資訊,並請您立即告知原發信人rocky at gis.tw本郵件的傳遞錯誤。謝謝您的合作。
>
> This e-mail transmission and any attachments contain information from Geographic Information Systems Research Center of Feng Chia University. The information is confidential and/or privileged and intended to be solely for the use of the individuals or entity named in this e-mail transmission. If you are not the intended recipient, be aware that any disclosure, saving or use of the contents of this e-mail transmission and attachments is strictly prohibited. If you have received this email transmission in error, please notify us immediately, and delete the e-mail and attachments. We greatly appreciate your cooperation.
>
> GIS RESEARCH CENTER, FCU http://www.gis.tw .Tel: 886-4-24516669
>
>
> _______________________________________________
> CITE-Forum mailing list
> CITE-Forum at lists.opengeospatial.org
> https://lists.opengeospatial.org/mailman/listinfo/cite-forum
>
>
>
>
> --
> Street Address:Campus Ring 1,28759 Bremen,Germany
> Mailing Address:P.O. Box 750 561,28725 Bremen,Germany
> Telephone: +49 421 200 3050
> E-Mail: j.yu at jacobs-university.de
>
>
>
>
> --
> Street Address:Campus Ring 1,28759 Bremen,Germany
> Mailing Address:P.O. Box 750 561,28725 Bremen,Germany
> Telephone: +49 421 200 3050
> E-Mail: j.yu at jacobs-university.de
>
>
>
> -----Disclaimer-----
>
> 本郵件含有逢甲大學地理資訊系統研究中心機密資訊、或受法律保護之資料,唯有原發信人指定之收信人得閱讀或使用本郵件之內容。如您並非被指定之收信人,請立即將本郵件及所有附件予以刪除;請勿揭露、儲存或使用本郵件之任何資訊,並請您立即告知原發信人rocky at gis.tw本郵件的傳遞錯誤。謝謝您的合作。
>
> This e-mail transmission and any attachments contain information from Geographic Information Systems Research Center of Feng Chia University. The information is confidential and/or privileged and intended to be solely for the use of the individuals or entity named in this e-mail transmission. If you are not the intended recipient, be aware that any disclosure, saving or use of the contents of this e-mail transmission and attachments is strictly prohibited. If you have received this email transmission in error, please notify us immediately, and delete the e-mail and attachments. We greatly appreciate your cooperation.
>
> GIS RESEARCH CENTER, FCU http://www.gis.tw .Tel: 886-4-24516669
>
>
> _______________________________________________
> CITE-Forum mailing list
> CITE-Forum at lists.opengeospatial.org
> https://lists.opengeospatial.org/mailman/listinfo/cite-forum
>
>
>
>
> --
> Street Address:Campus Ring 1,28759 Bremen,Germany
> Mailing Address:P.O. Box 750 561,28725 Bremen,Germany
> Telephone: +49 421 200 3050
> E-Mail: j.yu at jacobs-university.de
>
> _______________________________________________
> CITE-Forum mailing list
> CITE-Forum at lists.opengeospatial.org
> https://lists.opengeospatial.org/mailman/listinfo/cite-forum
More information about the CITE-Forum
mailing list