SoapUI 기본 세팅

다운로드: http://sourceforge.net/projects/soapui/files/

세팅

C:\Program Files\SmartBear\SoapUI-5.0.0\bin\SoapUI-5.0.0.vmoptions

-Xmx1000m => -Xmx500m 으로 수정

http://www.soapui.org/rest-testing/getting-started.html

MSSQL Output in XML using For XML « Naveen’s Weblog

MSSQL Output in XML using For XML « Naveen’s Weblog.

http://technet.microsoft.com/en-us/library/ms345137(SQL.90).aspx#forxml2k5_topic8

select FirstName,LastName from Employee for xml AUTO , elements […]

[xsl] XsltSettings.EnableScript

스크립트를 실행하려면 XsltSettings.EnableScript 속성을 사용하십시오

using System.Xml; using System.Xml.Xsl; using System.Xml.XPath; using System.IO; // // XmlDocument xml = new XmlDocument(); Xml.PreserveWhitespace = false; XslCompiledTransform xslt = new XslCompiledTransform(); StringWriter stringWriter = new StringWriter(); xml.PreserveWhitespace = false; xml.LoadXml(sParsing); //XML xslt.Load(Server.MapPath("ET_KR.xslt"), XsltSettings.TrustedXslt, new XmlUrlResolver()); //WEB //XmlReaderSettings settings = new XmlReaderSettings(); //XmlReader reader = XmlReader.Create(@"D:\Test\ET_KR.xslt", settings); //xslt.Load(reader, XsltSettings.TrustedXslt, new XmlUrlResolver()); //Application

xslt.Transform(xml, null, stringWriter);

//return stringWriter.ToString();

[XSL] replace template

<xsl:template name="replace"> <xsl:param name="text"/> <xsl:param name="search"/> <xsl:param name="replace"/> <xsl:choose> <xsl:when test="contains($text, $search)"> <xsl:variable name="replace-next"> <xsl:call-template name="replace"> <xsl:with-param name="text" select="substring-after($text, $search)"/> <xsl:with-param name="search" select="$search"/> <xsl:with-param name="replace" select="$replace"/> </xsl:call-template> </xsl:variable> <xsl:value-of select=" concat( substring-before($text, $search) , $replace , $replace-next ) " /> </xsl:when> <xsl:otherwise><xsl:value-of select="$text"/></xsl:otherwise> </xsl:choose> </xsl:template> <!– 사용샘플 –> <xsl:choose> <xsl:when test="contains(.,’D’)"> <xsl:value-of select="translate(., ‘D’, ‘일’)"/><!–replace 1–>
</xsl:when>
<xsl:when test="contains(.,’M’)">
<xsl:call-template name="replace"><!–template replace call–>
<xsl:with-param name="text" select="."/>
<xsl:with-param name="search" select="’M’"/>
<xsl:with-param name="replace" select="’개월’"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="."/>
</xsl:otherwise>
</xsl:choose>

[OralceJava커뮤니티 XML강좌]XML

[OralceJava커뮤니티 XML강좌]XML.

얕고 좁은 지식들 :: 08.XML Schema

얕고 좁은 지식들 :: 08.XML Schema.

XINS를 통해 REST, SOAP, XML-RPC, JSON, JSON-RPC 인터페이스 개발 – Mimul’s Developer World

XINS를 통해 REST, SOAP, XML-RPC, JSON, JSON-RPC 인터페이스 개발 – Mimul's Developer World.

Mr. Data Converter [excel/csv => json]

Mr. Data Converter.

Kimstars Second Blog __ JSON 개요 및 예제

Kimstars Second Blog __ JSON 개요 및 예제.

xslt 1.0 How to replace the space with some string from all the text values in xml? – Stack Overflow

xslt 1.0 How to replace the space with some string from all the text values in xml? – Stack Overflow.

<code><xsl:value-of select=”translate(., ‘D’, ‘$’)”/></code>

XSLT xsl:copy-of Element

Namespace nodes, child nodes, and attributes of the current node are automatically copied as well!

<xsl:copy-of select=”expression”/>

<?xml version=”1.0″ encoding=”ISO-8859-1″?> <xsl:stylesheet version=”1.0″ xmlns:xsl=”http://www.w3.org/1999/XSL/Transform”>

<xsl:variable name=”header”> <tr> <th>Element</th> <th>Description</th> </tr> </xsl:variable>

<xsl:template match=”/”> <html> <body> <table> <xsl:copy-of select=”$header” /> <xsl:for-each select=”reference/record”> <tr> <xsl:if test=”category=’XML’”> <td><xsl:value-of select=”element”/></td> <td><xsl:value-of select=”description”/></td> </xsl:if> </tr> </xsl:for-each> </table> <br /> <table> <xsl:copy-of […]

XML 소스상단에 XSL 링크 설정으로 HTML 테스트

XML + XSL + CSS -> HTML

다음과 같이 XML 소스상단에 XSL 링크 설정으로 HTML 테스트 할 수 있음. <?xml:stylesheet type="text/xsl" href="default.xsl" ?>

XSL 소스상에 <HEAD></HEAD>에 CSS 링크 를 넣는다. <link rel="stylesheet" type="text/css" href="default.css"/