Subversion Repositories XServices

Compare Revisions

No changes between revisions

Regard whitespace Rev 87 → Rev 88

/xservices/trunk/test/StringService-soapui-project.xml
0,0 → 1,93
<?xml version="1.0" encoding="UTF-8"?>
<con:soapui-project name="StringService" resourceRoot="" soapui-version="4.0.1" xmlns:con="http://eviware.com/soapui/config"><con:settings/><con:interface xsi:type="con:WsdlInterface" wsaVersion="NONE" name="StringServiceSoapBinding" type="wsdl" bindingName="{http://ws.xservices.brutex.net}StringServiceSoapBinding" soapVersion="1_1" anonymous="optional" definition="http://localhost:8080/XServices/StringService?wsdl" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:settings/><con:definitionCache type="TEXT" rootPart="http://localhost:8080/XServices/StringService?wsdl"><con:part><con:url>http://localhost:8080/XServices/StringService?wsdl</con:url><con:content><![CDATA[<wsdl:definitions name="StringService" targetNamespace="http://ws.xservices.brutex.net" xmlns:ns1="http://schemas.xmlsoap.org/soap/http" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://ws.xservices.brutex.net" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<wsdl:types>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="unqualified" targetNamespace="http://ws.xservices.brutex.net" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="replaceRegEx" type="tns:replaceRegEx"/>
<xs:element name="replaceRegExResponse" type="tns:replaceRegExResponse"/>
<xs:complexType name="replaceRegEx">
<xs:sequence>
<xs:element minOccurs="0" name="string" type="xs:string"/>
<xs:element minOccurs="0" name="search" type="xs:string"/>
<xs:element minOccurs="0" name="replace" type="xs:string"/>
<xs:element minOccurs="0" name="regexflags" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="replaceRegExResponse">
<xs:sequence>
<xs:element minOccurs="0" name="return" type="tns:stringReplaceType"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="stringReplaceType">
<xs:sequence>
<xs:element minOccurs="0" name="string" type="xs:string"/>
<xs:element name="count" type="xs:int"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="XServicesFault">
<xs:sequence>
<xs:element name="faultstring" nillable="true" type="xs:string"/>
<xs:element name="username" nillable="true" type="xs:string"/>
<xs:element name="homedir" nillable="true" type="xs:string"/>
<xs:element name="timestamp" nillable="true" type="xs:anySimpleType"/>
<xs:element name="jvmruntime" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:element name="XServicesFault" type="tns:XServicesFault"/>
</xs:schema>
</wsdl:types>
<wsdl:message name="replaceRegExResponse">
<wsdl:part element="tns:replaceRegExResponse" name="parameters"></wsdl:part>
</wsdl:message>
<wsdl:message name="replaceRegEx">
<wsdl:part element="tns:replaceRegEx" name="parameters"></wsdl:part>
</wsdl:message>
<wsdl:message name="XServicesFault">
<wsdl:part element="tns:XServicesFault" name="XServicesFault"></wsdl:part>
</wsdl:message>
<wsdl:portType name="StringService">
<wsdl:operation name="replaceRegEx">
<wsdl:documentation>Store text based data</wsdl:documentation>
<wsdl:input message="tns:replaceRegEx" name="replaceRegEx"></wsdl:input>
<wsdl:output message="tns:replaceRegExResponse" name="replaceRegExResponse"></wsdl:output>
<wsdl:fault message="tns:XServicesFault" name="XServicesFault"></wsdl:fault>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="StringServiceSoapBinding" type="tns:StringService">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="replaceRegEx">
<soap:operation soapAction="" style="document"/>
<wsdl:input name="replaceRegEx">
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output name="replaceRegExResponse">
<soap:body use="literal"/>
</wsdl:output>
<wsdl:fault name="XServicesFault">
<soap:fault name="XServicesFault" use="literal"/>
</wsdl:fault>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="StringService">
<wsdl:port binding="tns:StringServiceSoapBinding" name="StringServiceImplPort">
<soap:address location="http://localhost:8080/XServices/StringService"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>]]></con:content><con:type>http://schemas.xmlsoap.org/wsdl/</con:type></con:part></con:definitionCache><con:endpoints><con:endpoint>http://localhost:8080/XServices/StringService</con:endpoint></con:endpoints><con:operation isOneWay="false" action="" name="replaceRegEx" bindingOperationName="replaceRegEx" type="Request-Response" outputName="replaceRegExResponse" inputName="replaceRegEx" receivesAttachments="false" sendsAttachments="false" anonymous="optional"><con:settings/><con:call name="Request 1"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/XServices/StringService</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.xservices.brutex.net">
<soapenv:Header/>
<soapenv:Body>
<ws:replaceRegEx>
<!--Optional:-->
<string>Hallo Welt und ups
da war grad der
 
 
Zeilenumbruch</string>
<!--Optional:-->
<search>^H</search>
<!--Optional:-->
<replace></replace>
<!--Optional:-->
<regexflags>ig</regexflags>
</ws:replaceRegEx>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://ws.xservices.brutex.net/StringService/replaceRegEx"/><con:wsrmConfig version="1.2"/></con:call></con:operation></con:interface><con:properties/><con:wssContainer/></con:soapui-project>
Property changes:
Added: svn:mime-type
+text/plain
\ No newline at end of property
/xservices/trunk/doc/BruteXServices_User_Guide.xml
61,6 → 61,7
<xi:include href="FileServices.xml" />
<xi:include href="MailServices.xml" />
<xi:include href="MiscServices.xml" />
<xi:include href="StringServices.xml" />
</chapter>
 
<chapter id="xmltypes">
/xservices/trunk/doc/StringServices.xml
0,0 → 1,10
<?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="stringservices">
<title>StringServices</title>
<para>The StringService bundles various operations. Its WSDL is located at
http://server:port/XServices/StringService?wsdl</para>
<xi:include href="StringServices/replaceRegEx.xml" />
</section>
Property changes:
Added: svn:mime-type
+text/plain
\ No newline at end of property
/xservices/trunk/doc/StringServices/replaceRegEx.xml
0,0 → 1,39
<?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>replaceRegEx</title>
<para>Search and Replace using regular expression.
Sample request:
<screen><![CDATA[
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ws="http://ws.xservices.brutex.net">
<soapenv:Header/>
<soapenv:Body>
<ws:replaceRegEx>
<string>Hallo Welt</string>
<search>W.*</search>
<replace>Brian</replace>
<regexflags>ig</regexflags>
</ws:replaceRegEx>
</soapenv:Body>
</soapenv:Envelope>
]]></screen>
Sample response:
<programlisting language="xml"><![CDATA[
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ns2:replaceRegExResponse xmlns:ns2="http://ws.xservices.brutex.net">
<return>
<string>Hallo Brian</string>
<count>1</count>
</return>
</ns2:replaceRegExResponse>
</soap:Body>
</soap:Envelope>]]></programlisting>
</para>
<para>Allowed regexflags are case-insensitive (i) and global search (g).</para>
</section>
Property changes:
Added: svn:mime-type
+text/plain
\ No newline at end of property