/xservices/branches/xservices-jre7/doc/XmlServices/XmlServices.xml |
---|
0,0 → 1,17 |
<?xml version='1.0' encoding="utf-8"?> |
<section xmlns="http://docbook.org/ns/docbook" version="5.0" |
xmlns:xi="http://www.w3.org/2001/XInclude" |
id="xmlservices"> |
<title>XmlServices</title> |
<para>The XmlService provides operations to manipulate XML structures. |
Its WSDL is located at |
http://server:port/XServices/XmlService?wsdl</para> |
<xi:include href="./insertNodes.xml" /> |
<xi:include href="./insertNodes2.xml" /> |
<xi:include href="./replaceNodes.xml" /> |
<xi:include href="./replaceNodes2.xml" /> |
<xi:include href="./selectXPath.xml" /> |
<xi:include href="./setAttribute.xml" /> |
<xi:include href="./wrapInCDATA.xml" /> |
</section> |
Property changes: |
Added: svn:mime-type |
+text/plain |
\ No newline at end of property |
/xservices/branches/xservices-jre7/doc/XmlServices/replaceNodes2.xml |
---|
0,0 → 1,19 |
<?xml version='1.0' encoding='utf-8'?> |
<!DOCTYPE section [ |
<!ENTITY % myent SYSTEM "../entities.ent"> |
%myent; |
]> |
<section xmlns="http://docbook.org/ns/docbook" version="5.0" |
xmlns:xi="http://www.w3.org/2001/XInclude"> |
<title>replaceNodes2</title> |
<para>Replace an xml fragment with another xml fragment read from a resource (i.e. file, URL). This operation is namespace aware. |
Sample request: |
<programlisting language="xml"> |
... |
</programlisting> |
Sample response: |
<programlisting language="xml"><![CDATA[ |
...]]></programlisting> |
</para> |
</section> |
Property changes: |
Added: svn:mime-type |
+text/plain |
\ No newline at end of property |
/xservices/branches/xservices-jre7/doc/XmlServices/insertNodes2.xml |
---|
0,0 → 1,19 |
<?xml version='1.0' encoding='utf-8'?> |
<!DOCTYPE section [ |
<!ENTITY % myent SYSTEM "../entities.ent"> |
%myent; |
]> |
<section xmlns="http://docbook.org/ns/docbook" version="5.0" |
xmlns:xi="http://www.w3.org/2001/XInclude"> |
<title>insertNodes2</title> |
<para>Insert an xml fragment into xml resource (i.e. file, URL) specified by an XPath expression. |
This operation is namespace aware. |
Sample request: |
<programlisting language="xml"><![CDATA[ |
...]]></programlisting> |
Sample response: |
<programlisting language="xml"><![CDATA[ |
...]]></programlisting> |
</para> |
</section> |
Property changes: |
Added: svn:mime-type |
+text/plain |
\ No newline at end of property |
/xservices/branches/xservices-jre7/doc/XmlServices/setAttribute.xml |
---|
0,0 → 1,77 |
<?xml version='1.0' encoding='utf-8'?> |
<!DOCTYPE section [ |
<!ENTITY % myent SYSTEM "../entities.ent"> |
%myent; |
]> |
<section xmlns="http://docbook.org/ns/docbook" version="5.0" |
xmlns:xi="http://www.w3.org/2001/XInclude"> |
<title>setAttribute</title> |
<para>Set an attribute into elements matched by an XPath expression.</para> |
<para> |
Sample request: |
<programlisting language="xml"><![CDATA[ |
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.xservices.brutex.net"> |
<soapenv:Header/> |
<soapenv:Body> |
<ws:setAttribute> |
<sourcexml> |
<![CDATA[<notes xmlns="http://demo.brutex.net"> |
<note> |
<to>Lena</to> |
<from>Jani</from> |
<heading>Reminder ABC</heading> |
<body>Don't forget me this weekend!</body> |
</note> |
<note> |
<to>John</to> |
<from>Lena</from> |
<heading>Call Mr. ABC</heading> |
<body>Please call back</body> |
</note> |
</notes> |
]]]]><![CDATA[></sourcexml> |
<encoding>utf-8</encoding> |
<!--Optional:--> |
<namespaceList> |
<!--Zero or more repetitions:--> |
<namespace> |
<prefix>bx</prefix> |
<uri>http://demo.brutex.net</uri> |
</namespace> |
</namespaceList> |
<xpath>*/bx:note</xpath> |
<attribute> |
<name>priority</name> |
<!--Optional:--> |
<value>high</value> |
</attribute> |
</ws:setAttribute> |
</soapenv:Body> |
</soapenv:Envelope> |
]]></programlisting> |
Sample response: |
<programlisting language="xml"><![CDATA[ |
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> |
<soap:Body> |
<ns2:setAttributeResponse xmlns:ns2="http://ws.xservices.brutex.net"> |
<return><![CDATA[<?xml version='1.0' encoding='UTF-8'?> |
<notes xmlns="http://demo.brutex.net"> |
<note xmlns:axis2ns16="http://demo.brutex.net" axis2ns16:priority="high"> |
<to>Lena</to> |
<from>Jani</from> |
<heading>Reminder ABC</heading> |
<body>Don't forget me this weekend!</body> |
</note> |
<note xmlns:axis2ns17="http://demo.brutex.net" axis2ns17:priority="high"> |
<to>John</to> |
<from>Lena</from> |
<heading>Call Mr. ABC</heading> |
<body>Please call back</body> |
</note> |
</notes>]]]]><![CDATA[></return> |
</ns2:setAttributeResponse> |
</soap:Body> |
</soap:Envelope> |
]]></programlisting> |
</para> |
</section> |
Property changes: |
Added: svn:mime-type |
+text/plain |
\ No newline at end of property |
/xservices/branches/xservices-jre7/doc/XmlServices/selectXPath.xml |
---|
0,0 → 1,73 |
<?xml version='1.0' encoding='utf-8'?> |
<!DOCTYPE section [ |
<!ENTITY % myent SYSTEM "../entities.ent"> |
%myent; |
]> |
<section xmlns="http://docbook.org/ns/docbook" version="5.0" |
xmlns:xi="http://www.w3.org/2001/XInclude"> |
<title>selectXPath</title> |
<para>Selects xmlfragements, nodes, attribute or text from xml data using an XPath expression. |
This function requires namespaces to be declared correctly.</para> |
<para> |
Sample request: |
<programlisting language="xml"><![CDATA[ |
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" |
xmlns:ws="http://ws.xservices.brutex.net"> |
<soapenv:Header/> |
<soapenv:Body> |
<ws:selectXPath> |
<sourcexml> |
<![CDATA[<notes xmlns="http://demo.brutex.net" xmlns:bx="http://bx.brutex.net"> |
<bx:note> |
<to>Lena</to> |
<from>Jani</from> |
<heading>Reminder ABC</heading> |
<body>Don't forget me this weekend!</body> |
</bx:note> |
<note> |
<to>John</to> |
<from>Lena</from> |
<heading>Call Mr. ABC</heading> |
<body>Please call back</body> |
</note> |
<bx:note> |
<to>Brian</to> |
<from>JJohn</from> |
<heading>Reminder XServices</heading> |
<body>How to use selectXPath?</body> |
</bx:note> |
</notes> |
]]]]><![CDATA[> |
</sourcexml> |
<encoding>utf-8</encoding> |
<namespaceList> |
<namespace> |
<prefix>ns</prefix> |
<uri>http://demo.brutex.net</uri> |
</namespace> |
<namespace> |
<prefix>bx</prefix> |
<uri>http://bx.brutex.net</uri> |
</namespace> |
</namespaceList> |
<xpath>*/bx:note/ns:heading/text()</xpath> |
</ws:selectXPath> |
</soapenv:Body> |
</soapenv:Envelope> |
]]></programlisting> |
Sample response: |
<programlisting language="xml"><![CDATA[ |
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> |
<soap:Body> |
<ns2:selectXPathResponse xmlns:ns2="http://ws.xservices.brutex.net"> |
<return> |
<stringlist>Reminder ABC</stringlist> |
<stringlist>Reminder XServices</stringlist> |
<size>2</size> |
</return> |
</ns2:selectXPathResponse> |
</soap:Body> |
</soap:Envelope> |
]]></programlisting> |
</para> |
</section> |
Property changes: |
Added: svn:mime-type |
+text/plain |
\ No newline at end of property |
/xservices/branches/xservices-jre7/doc/XmlServices/insertNodes.xml |
---|
0,0 → 1,74 |
<?xml version='1.0' encoding='utf-8'?> |
<!DOCTYPE section [ |
<!ENTITY % myent SYSTEM "../entities.ent"> |
%myent; |
]> |
<section xmlns="http://docbook.org/ns/docbook" version="5.0" |
xmlns:xi="http://www.w3.org/2001/XInclude"> |
<title>insertNodes</title> |
<para>Insert an xml fragment into other elements specified by an XPath expression. |
This operation is namespace aware. |
Sample request: |
<programlisting language="xml"><![CDATA[ |
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.xservices.brutex.net"> |
<soapenv:Header/> |
<soapenv:Body> |
<ws:insertNodes> |
<sourcexml><![CDATA[ |
<books> |
<author> |
<name>Mensiok</name> |
<surname>Bello</surname> |
</author> |
<author> |
<name>Schwab</name> |
<surname>Rumsau</surname> |
</author> |
<author> |
<name>Dollibert</name> |
<surname>Rach</surname> |
</author> |
</books> |
]]]]><![CDATA[></sourcexml> |
<encoding>utf-8</encoding> |
<namespaceList> |
<!--Zero or more repetitions:--> |
<namespace> |
<prefix></prefix> |
<uri></uri> |
</namespace> |
</namespaceList> |
<xpath>/books/author</xpath> |
<!--Optional:--> |
<xmldata><![CDATA[<age namespace="http://btx"/>]]]]><![CDATA[></xmldata> |
</ws:insertNodes> |
</soapenv:Body> |
</soapenv:Envelope> |
]]></programlisting> |
Sample response: |
<programlisting language="xml"><![CDATA[ |
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> |
<soap:Body> |
<ns2:insertNodesResponse xmlns:ns2="http://ws.xservices.brutex.net"> |
<return><![CDATA[<?xml version='1.0' encoding='UTF-8'?> |
<books> |
<author> |
<name>Mensiok</name> |
<surname>Bello</surname> |
<age namespace="http://btx"/></author> |
<author> |
<name>Schwab</name> |
<surname>Rumsau</surname> |
<age namespace="http://btx"/></author> |
<author> |
<name>Dollibert</name> |
<surname>Rach</surname> |
<age namespace="http://btx"/></author> |
</books>]]]]><![CDATA[></!></return> |
</ns2:insertNodesResponse> |
</soap:Body> |
</soap:Envelope> |
]]></programlisting> |
</para> |
</section> |
Property changes: |
Added: svn:mime-type |
+text/plain |
\ No newline at end of property |
/xservices/branches/xservices-jre7/doc/XmlServices/wrapInCDATA.xml |
---|
0,0 → 1,36 |
<?xml version='1.0' encoding='utf-8'?> |
<!DOCTYPE section [ |
<!ENTITY % myent SYSTEM "../entities.ent"> |
%myent; |
]> |
<section xmlns="http://docbook.org/ns/docbook" version="5.0" |
xmlns:xi="http://www.w3.org/2001/XInclude"> |
<title>wrapInCDATA</title> |
<para>Simply wraps any data fragment into <![CDATA[ ... ]]> section. This can be useful if you |
want to preserve indentation or line breaks. |
</para> |
<para> |
Sample request: |
<programlisting language="xml"><![CDATA[ |
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" |
xmlns:ws="http://ws.xservices.brutex.net"> |
<soapenv:Header/> |
<soapenv:Body> |
<ws:wrapInCDATA> |
<data>Hello World, here is some <xml> data</data> |
</ws:wrapInCDATA> |
</soapenv:Body> |
</soapenv:Envelope> |
]]></programlisting> |
Sample response: |
<programlisting language="xml"><![CDATA[ |
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> |
<soap:Body> |
<ns2:wrapInCDATAResponse xmlns:ns2="http://ws.xservices.brutex.net"> |
<return><![CDATA[Hello World, here is some <xml> data]]></return> |
</ns2:wrapInCDATAResponse> |
</soap:Body> |
</soap:Envelope> |
]]></programlisting> |
</para> |
</section> |
Property changes: |
Added: svn:mime-type |
+text/plain |
\ No newline at end of property |
/xservices/branches/xservices-jre7/doc/XmlServices/replaceNodes.xml |
---|
0,0 → 1,74 |
<?xml version='1.0' encoding='utf-8'?> |
<!DOCTYPE section [ |
<!ENTITY % myent SYSTEM "../entities.ent"> |
%myent; |
]> |
<section xmlns="http://docbook.org/ns/docbook" version="5.0" |
xmlns:xi="http://www.w3.org/2001/XInclude"> |
<title>replaceNodes</title> |
<para>Replace an xml fragment with another xml fragment. This operation is namespace aware. |
Sample request: |
<programlisting language="xml"><![CDATA[ |
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" |
xmlns:ws="http://ws.xservices.brutex.net"> |
<soapenv:Header/> |
<soapenv:Body> |
<ws:replaceNodes> |
<sourcexml><![CDATA[ |
<books> |
<author> |
<name>Mensiok</name> |
<surname>Bello</surname> |
</author> |
<author> |
<name>Schwab</name> |
<surname>Rumsau</surname> |
</author> |
<author> |
<name>Dollibert</name> |
<surname>Rach</surname> |
</author> |
</books> |
]]]]><![CDATA[> |
</sourcexml> |
<encoding>utf-8</encoding> |
<namespaceList> |
<!--Zero or more repetitions:--> |
<namespace> |
<prefix></prefix> |
<uri></uri> |
</namespace> |
</namespaceList> |
<xpath>*/name[text()='Schwab']</xpath> |
<!--Optional:--> |
<xmldata><![CDATA[<name>Meyer</name><age>45</age><!--edited here-->]]]]><![CDATA[></xmldata> |
</ws:replaceNodes> |
</soapenv:Body> |
</soapenv:Envelope> |
]]></programlisting> |
Sample response: |
<programlisting language="xml"><![CDATA[ |
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> |
<soap:Body> |
<ns2:replaceNodesResponse xmlns:ns2="http://ws.xservices.brutex.net"> |
<return><![CDATA[<?xml version='1.0' encoding='UTF-8'?> |
<books> |
<author> |
<name>Mensiok</name> |
<surname>Bello</surname> |
</author> |
<author> |
<name>Meyer</name><age>45</age><!--edited here--> |
<surname>Rumsau</surname> |
</author> |
<author> |
<name>Dollibert</name> |
<surname>Rach</surname> |
</author> |
</books>]]]]><![CDATA[></return> |
</ns2:replaceNodesResponse> |
</soap:Body> |
</soap:Envelope>]]></programlisting> |
</para> |
</section> |
Property changes: |
Added: svn:mime-type |
+text/plain |
\ No newline at end of property |