From 3032a6bf233601f238d95ae4afe894f8be0ff279 Mon Sep 17 00:00:00 2001 From: Brian Rosenberger Date: Mon, 16 Jun 2014 06:10:23 +0000 Subject: [PATCH] Updated XmlServices documentation git-svn-id: https://brutex.net/svn/xservices/trunk@161 e7e49efb-446e-492e-b9ec-fcafc1997a86 --- doc/XmlServices/XmlServices.xml | 2 + doc/XmlServices/insertNodes2.xml | 19 ++ doc/XmlServices/operationName.xml | 59 ---- doc/XmlServices/replaceNodes2.xml | 19 ++ doc/style.css | 8 + test/XmlServices-soapui-project.xml | 498 +++++++++++++++++++++++----- 6 files changed, 465 insertions(+), 140 deletions(-) create mode 100644 doc/XmlServices/insertNodes2.xml delete mode 100644 doc/XmlServices/operationName.xml create mode 100644 doc/XmlServices/replaceNodes2.xml diff --git a/doc/XmlServices/XmlServices.xml b/doc/XmlServices/XmlServices.xml index cc089e0..29291ed 100644 --- a/doc/XmlServices/XmlServices.xml +++ b/doc/XmlServices/XmlServices.xml @@ -7,7 +7,9 @@ Its WSDL is located at http://server:port/XServices/XmlService?wsdl + + diff --git a/doc/XmlServices/insertNodes2.xml b/doc/XmlServices/insertNodes2.xml new file mode 100644 index 0000000..d6f5168 --- /dev/null +++ b/doc/XmlServices/insertNodes2.xml @@ -0,0 +1,19 @@ + + +%myent; +]> +
+ insertNodes2 + Insert an xml fragment into xml resource (i.e. file, URL) specified by an XPath expression. + This operation is namespace aware. + + Sample request: + + Sample response: + + +
\ No newline at end of file diff --git a/doc/XmlServices/operationName.xml b/doc/XmlServices/operationName.xml deleted file mode 100644 index d696bee..0000000 --- a/doc/XmlServices/operationName.xml +++ /dev/null @@ -1,59 +0,0 @@ - - -%myent; -]> -
- ... - - Description here -
- &inp; - - - - Input parameters - - - - - - - - - parameter - type - required - description - - - - - host - HostConnection - Yes - - Host where to execute the command. See - HostConnection - . - - - - command - String - No - Any command including arguments - - ¶m-timeout; - - -
- -
-
- &outp; - - -
-
\ No newline at end of file diff --git a/doc/XmlServices/replaceNodes2.xml b/doc/XmlServices/replaceNodes2.xml new file mode 100644 index 0000000..48abfd1 --- /dev/null +++ b/doc/XmlServices/replaceNodes2.xml @@ -0,0 +1,19 @@ + + +%myent; +]> +
+ replaceNodes2 + Replace an xml fragment with another xml fragment read from a resource (i.e. file, URL). This operation is namespace aware. + + Sample request: + +... + + Sample response: + + +
\ No newline at end of file diff --git a/doc/style.css b/doc/style.css index 479e9c3..1fe8c43 100644 --- a/doc/style.css +++ b/doc/style.css @@ -2,4 +2,12 @@ pre.programlisting { background-color: #FFFF99 ; border: 1px solid #006600 ; +} + +/*Section headings*/ +div.chapter div.titlepage h2 { + font-size: 180%; + font-family: Helvetica; + font-weight: Bold; + color: #444444 } \ No newline at end of file diff --git a/test/XmlServices-soapui-project.xml b/test/XmlServices-soapui-project.xml index 6a1bdf0..02a1db7 100644 --- a/test/XmlServices-soapui-project.xml +++ b/test/XmlServices-soapui-project.xml @@ -1,17 +1,27 @@ -http://localhost:8080/XServices/XmlService?wsdl +http://localhost:8080/XServices/XmlService?wsdl - - + + + + - - - + + + + + + + + + + + - + @@ -23,29 +33,106 @@ - + - + - - + + - + - + - + + - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -58,6 +145,7 @@ + @@ -67,58 +155,177 @@ - - - + + - - + + - - + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - Appends an XML node to all elements matched by the Xpath expression. - - + + Replaces matched XML nodes with an XML document given as file. + + - - Replace an XML node matched by the Xpath expression. - - + + Insert an XML fragment into an XML document given as string. + + + + + + Select from xml document given as string using an XPath expression. + + + + + + Wraps a String into a CDATA element + + + + + + Set an attribute. + + + + + + Replaces matched XML nodes with an XML document given as string. + + + + + + Insert an XML fragment into an XML document given as file. + + - + - + - + - + - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -131,60 +338,189 @@ -]]>http://schemas.xmlsoap.org/wsdl/http://localhost:8080/XServices/XmlService<xml-fragment/>UTF-8http://localhost:8080/XServices/XmlService +]]>http://schemas.xmlsoap.org/wsdl/http://localhost:8080/XServices/XmlServiceUTF-8http://localhost:8080/XServices/XmlService - - - FILE - c:/TEMP/test-the-best.chr - - - - - - zz - - - - - /zz:document/zz:property - - Viel Neuestext1text2]]]]>> - - -]]>Global HTTP Settings<xml-fragment/>UTF-8http://localhost:8080/XServices/XmlService - - - + FILE - c:/TEMP/test-the-best.chr + ? - - zz - + ? + ? + + + ? + + ? + + +]]>Global HTTP Settings<xml-fragment/>UTF-8http://localhost:8080/XServices/XmlService + + + + + + Mensiok + Bello + + + Schwab + Rumsau + + + Dollibert + Rach + + + ]]]]>> + utf-8 + + + + + /books/author - /zz:document/zz:property[@name="current_problem"] - - Viel NeuesAuch < text]]]]>> - + ]]]]>> + -]]>Global HTTP Settings \ No newline at end of file +]]>Global HTTP Settings<xml-fragment/>UTF-8http://localhost:8080/XServices/XmlService + + + + + + + Lena + Jani + Reminder ABC + Don't forget me this weekend! + + + John + Lena + Call Mr. ABC + Please call back + + + Brian + JJohn + Reminder XServices + How to use selectXPath? + + +]]]]>> + utf-8 + + + ns + http://demo.brutex.net + + + bx + http://bx.brutex.net + + + */bx:note/ns:heading/text() + + +]]>Global HTTP SettingsUTF-8http://localhost:8080/XServices/XmlService + + + + ? + + ? + + + + + ? + ? + + + ? + + ? + + ? + + + +]]><xml-fragment/>UTF-8http://localhost:8080/XServices/XmlService + + + + Hello World, here is some <xml> data + + +]]>Global HTTP SettingsUTF-8http://localhost:8080/XServices/XmlService + + + + + + FILE + ? + + + + + + ? + ? + + + ? + + ? + + +]]>Global HTTP Settings<xml-fragment/>UTF-8http://localhost:8080/XServices/XmlService + + + + + + Mensiok + Bello + + + Schwab + Rumsau + + + Dollibert + Rach + + + ]]]]>> + utf-8 + + + + + + + + */name[text()='Schwab'] + + Meyer45]]]]>> + + +]]>adminGlobal HTTP Settings \ No newline at end of file