Subversion Repositories XServices

Rev

Rev 92 | Rev 159 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 92 Rev 117
Line 3787... Line 3787...
3787
</section>
3787
</section>
3788
		<section id="fileservices" version="5.0" xml:base="FileServices.xml" xmlns="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude">
3788
		<section id="fileservices" version="5.0" xml:base="FileServices.xml" xmlns="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude">
3789
	<title>FileServices</title>
3789
	<title>FileServices</title>
3790
	<para>The FileServces bundles various file operations. Its WSDL is located at
3790
	<para>The FileServces bundles various file operations. Its WSDL is located at
3791
		http://server:port/XServices/FileService?wsdl</para>
3791
		http://server:port/XServices/FileService?wsdl</para>
3792
		
-
 
3793
		<section version="5.0" xml:base="FileServices/downloadFile.xml" xmlns="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude">
-
 
3794
	<title>downloadFile</title>
-
 
3795
	<para>Downloads a file as base64 encoded.
-
 
3796
	Sample request:
-
 
3797
<screen><![CDATA[
-
 
3798
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.xservices.brutex.net">
-
 
3799
   <soapenv:Header/>
-
 
3800
   <soapenv:Body>
-
 
3801
<!-- downloads a file from the XServices server as base64 encoded -->
-
 
3802
      <ws:downloadFile>
-
 
3803
         <file>
-
 
3804
            <type>FILE</type>
-
 
3805
            <uri>c:\temp\test.docx</uri>
-
 
3806
         </file>
-
 
3807
      </ws:downloadFile>
-
 
3808
   </soapenv:Body>
-
 
3809
</soapenv:Envelope>
-
 
3810
]]></screen>
-
 
3811
	Sample response:
-
 
3812
	<programlisting language="xml"><![CDATA[
-
 
3813
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
-
 
3814
   <soap:Body>
-
 
3815
      <ns2:downloadFileResponse xmlns:ns2="http://ws.xservices.brutex.net">
-
 
3816
         <return>
-
 
3817
            <content>ADQBNA[... snipp ...]wAApzcAAAAA</content>
-
 
3818
            <filename>test.docx</filename>
-
 
3819
         </return>
-
 
3820
      </ns2:downloadFileResponse>
-
 
3821
   </soap:Body>
-
 
3822
</soap:Envelope>]]></programlisting>
-
 
3823
</para>
-
 
3824
<para>Encoding files as base64 is very memory consuming!</para>
-
 
3825
</section>
-
 
3826
		<section version="5.0" xml:base="FileServices/encodeFile.xml" xmlns="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude">
-
 
3827
	<title>encodeFile</title>
-
 
3828
	<para>Encodes a file as base64.
-
 
3829
	Sample request:
-
 
3830
<screen><![CDATA[
-
 
3831
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.xservices.brutex.net">
-
 
3832
   <soapenv:Header/>
-
 
3833
   <soapenv:Body>
-
 
3834
      <ws:encodeFile>
-
 
3835
         <file>
-
 
3836
            <type>FILE</type>
-
 
3837
            <uri>c:\temp\test.docx</uri>
-
 
3838
         </file>
-
 
3839
      </ws:encodeFile>
-
 
3840
   </soapenv:Body>
-
 
3841
</soapenv:Envelope>
-
 
3842
]]></screen>
-
 
3843
	Sample response:
-
 
3844
	<programlisting language="xml"><![CDATA[
-
 
3845
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
-
 
3846
   <soap:Body>
-
 
3847
      <ns2:encodeFileResponse xmlns:ns2="http://ws.xservices.brutex.net">
-
 
3848
         <return>
-
 
3849
            <content>ADQBNA[... snipp ...]wAApzcAAAAA</content>
-
 
3850
            <filename>test.docx</filename>
-
 
3851
         </return>
-
 
3852
      </ns2:encodeFileResponse>
-
 
3853
   </soap:Body>
-
 
3854
</soap:Envelope>]]></programlisting>
-
 
3855
</para>
-
 
3856
<para>DEPRECATED: Encoding files as base64 is very memory consuming!</para>
-
 
3857
</section>
-
 
3858
</section>
3792
</section>
3859
		<section id="mailservices" version="5.0" xml:base="MailServices.xml" xmlns="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude">
3793
		<section id="mailservices" version="5.0" xml:base="MailServices.xml" xmlns="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude">
3860
	<title>MailServices</title>
3794
	<title>MailServices</title>
3861
	<para>The MailService contains mail send and receive operations. Its WSDL is located at
3795
	<para>The MailService contains mail send and receive operations. Its WSDL is located at
3862
		http://server:port/XServices/MailService?wsdl</para>
3796
		http://server:port/XServices/MailService?wsdl</para>
Line 3943... Line 3877...
3943
		Tomcat or your client that prevents this web service to respond
3877
		Tomcat or your client that prevents this web service to respond
3944
		correctly.
3878
		correctly.
3945
</para>
3879
</para>
3946
</section>
3880
</section>
3947
</section>
3881
</section>
3948
		<section id="stringservices" version="5.0" xml:base="StringServices.xml" xmlns="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude">
-
 
3949
	<title>StringServices</title>
-
 
3950
	<para>The StringService bundles various operations. Its WSDL is located at
-
 
3951
		http://server:port/XServices/StringService?wsdl</para>
-
 
3952
 
-
 
3953
		<section version="5.0" xml:base="StringServices/replaceRegEx.xml" xmlns="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude">
-
 
3954
	<title>replaceRegEx</title>
-
 
3955
	<para>Search and Replace using regular expression.
-
 
3956
	Sample request:
-
 
3957
<screen><![CDATA[
-
 
3958
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
-
 
3959
xmlns:ws="http://ws.xservices.brutex.net">
-
 
3960
   <soapenv:Header/>
-
 
3961
   <soapenv:Body>
-
 
3962
      <ws:replaceRegEx>
-
 
3963
         <string>Hallo Welt</string>
-
 
3964
         <search>W.*</search>
-
 
3965
         <replace>Brian</replace>
-
 
3966
         <regexflags>ig</regexflags>
-
 
3967
      </ws:replaceRegEx>
-
 
3968
   </soapenv:Body>
-
 
3969
</soapenv:Envelope>
-
 
3970
]]></screen>
-
 
3971
	Sample response:
-
 
3972
	<programlisting language="xml"><![CDATA[
-
 
3973
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
-
 
3974
   <soap:Body>
-
 
3975
      <ns2:replaceRegExResponse xmlns:ns2="http://ws.xservices.brutex.net">
-
 
3976
         <return>
-
 
3977
            <string>Hallo Brian</string>
-
 
3978
            <count>1</count>
-
 
3979
         </return>
-
 
3980
      </ns2:replaceRegExResponse>
-
 
3981
   </soap:Body>
-
 
3982
</soap:Envelope>]]></programlisting>
-
 
3983
</para>
-
 
3984
<para>Allowed regexflags are case-insensitive (i) and global search (g).</para>
-
 
3985
</section>
-
 
3986
</section>
-
 
3987
	</chapter>
3882
	</chapter>
Line 3988... Line 3883...
3988
 
3883
 
3989
	<chapter id="xmltypes">
3884
	<chapter id="xmltypes">
3990
		<beginpage/>
3885
		<beginpage/>