XHTML service 2nd edition

This service implements two operations.

Operation getString

This operation returns XHTML code of web page with a given URL address from specified document domain.

Input

URL (string)

URL address of requested page.

domain (string)

Name of domain (database).

Output

XHTML code (string)

XHTML code of requested page.

Description

This service looks up given URL in the specified database and returns XHTML code of corresponding page. If page is not found returns empty string. Page is always normalized into XHTML. Table 1, “Currently supported databases” lists currently supported databases.

Table 1. Currently supported databases

Database nameDescription
oopCollection of pages from websites of organizations which are offering products.

Operation getLinks

This operation returns list of links (URLs) which are placed on a web page with a given URL address from specified document domain.

Input

URL (string)

URL address of requested page.

domain (string)

Name of domain (database).

Output

list of links (list of string)

List of links.

Description

This service looks up given URL in the specified database and returns all links on page with this URL. If page is not found returns empty string. Table 1, “Currently supported databases” lists currently supported databases.

WSDL

WSDL: http://rainbow.vse.cz/services/XHTMLService2

There will be nicely formatted WSDL listing in a future. For now just plain listing.

<?xml version='1.0'?>
<wsdl:definitions name='cz.vse.rainbow.services.XHTMLService2' targetNamespace='urn:cz.vse.rainbow.services.XHTMLService2'
    xmlns:tns='urn:cz.vse.rainbow.services.XHTMLService2'
    xmlns:SOAP-ENC='http://schemas.xmlsoap.org/soap/encoding/'
    xmlns:mime='http://schemas.xmlsoap.org/wsdl/mime/'
    xmlns:http='http://schemas.xmlsoap.org/wsdl/http/'
    xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
    xmlns:xsd='http://www.w3.org/2001/XMLSchema'
    xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/'
    xmlns:wsdl='http://schemas.xmlsoap.org/wsdl/'>
    <wsdl:types xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
        xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
        xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
        xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
        xmlns:tns="urn:cz.vse.rainbow.services.XHTMLService2"
        xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
        xmlns:xsd="http://www.w3.org/2001/XMLSchema"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <xsd:schema targetNamespace="urn:cz.vse.rainbow.services.XHTMLService2">
            <xsd:complexType name="ArrayOfstring">
                <xsd:complexContent>
                    <xsd:restriction base="SOAP-ENC:Array">
                        <xsd:sequence>
                            <xsd:element name="item" type="xsd:string"/>
                        </xsd:sequence>
                        <xsd:attribute ref="SOAP-ENC:arrayType"
                            wsdl:arrayType="xsd:string[]"/>
                    </xsd:restriction>
                </xsd:complexContent>
            </xsd:complexType>
        </xsd:schema>
    </wsdl:types>
    <wsdl:message name='XHTMLService2_getString_Response'>
        <wsdl:part name='response' type='xsd:string'/>
    </wsdl:message>
    <wsdl:message name='XHTMLService2_getString_java.sql.SQLException_Fault'>
        <wsdl:part name='idoox-java-mapping.java.sql.SQLException' type='xsd:string'/>
    </wsdl:message>
    <wsdl:message name='XHTMLService2_getLinks_Request'>
        <wsdl:part name='p0' type='xsd:string'/>
        <wsdl:part name='p1' type='xsd:string'/>
    </wsdl:message>
    <wsdl:message name='XHTMLService2_getString_Request'>
        <wsdl:part name='p0' type='xsd:string'/>
        <wsdl:part name='p1' type='xsd:string'/>
    </wsdl:message>
    <wsdl:message name='XHTMLService2_getLinks_Response'>
        <wsdl:part name='response' type='tns:ArrayOfstring'/>
    </wsdl:message>
    <wsdl:message name='XHTMLService2_getLinks_java.sql.SQLException_Fault'>
        <wsdl:part name='idoox-java-mapping.java.sql.SQLException' type='xsd:string'/>
    </wsdl:message>
    <wsdl:portType name='XHTMLService2'>
        <wsdl:operation name='getLinks' parameterOrder='p0 p1'>
            <wsdl:input name='getLinks' message='tns:XHTMLService2_getLinks_Request'/>
            <wsdl:output name='getLinks' message='tns:XHTMLService2_getLinks_Response'/>
            <wsdl:fault name='getLinks_fault1' message='tns:XHTMLService2_getLinks_java.sql.SQLException_Fault'/>
        </wsdl:operation>
        <wsdl:operation name='getString' parameterOrder='p0 p1'>
            <wsdl:input name='getString' message='tns:XHTMLService2_getString_Request'/>
            <wsdl:output name='getString' message='tns:XHTMLService2_getString_Response'/>
            <wsdl:fault name='getString_fault1' message='tns:XHTMLService2_getString_java.sql.SQLException_Fault'/>
        </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name='XHTMLService2SOAPBinding0' type='tns:XHTMLService2'>
        <soap:binding transport='http://schemas.xmlsoap.org/soap/http' style='rpc'/>
        <wsdl:operation name='getLinks'>
            <soap:operation soapAction='' style='rpc'/>
            <wsdl:input name='getLinks'>
                <soap:body use='encoded' encodingStyle='http://schemas.xmlsoap.org/soap/encoding/' namespace='urn:cz.vse.rainbow.services.XHTMLService2'/>
            </wsdl:input>
            <wsdl:output name='getLinks'>
                <soap:body use='encoded' encodingStyle='http://schemas.xmlsoap.org/soap/encoding/' namespace='urn:cz.vse.rainbow.services.XHTMLService2'/>
            </wsdl:output>
            <wsdl:fault name='getLinks_fault1'>
                <soap:fault use='encoded' encodingStyle='http://schemas.xmlsoap.org/soap/encoding/' namespace='urn:cz.vse.rainbow.services.XHTMLService2'/>
            </wsdl:fault>
        </wsdl:operation>
        <wsdl:operation name='getString'>
            <soap:operation soapAction='' style='rpc'/>
            <wsdl:input name='getString'>
                <soap:body use='encoded' encodingStyle='http://schemas.xmlsoap.org/soap/encoding/' namespace='urn:cz.vse.rainbow.services.XHTMLService2'/>
            </wsdl:input>
            <wsdl:output name='getString'>
                <soap:body use='encoded' encodingStyle='http://schemas.xmlsoap.org/soap/encoding/' namespace='urn:cz.vse.rainbow.services.XHTMLService2'/>
            </wsdl:output>
            <wsdl:fault name='getString_fault1'>
                <soap:fault use='encoded' encodingStyle='http://schemas.xmlsoap.org/soap/encoding/' namespace='urn:cz.vse.rainbow.services.XHTMLService2'/>
            </wsdl:fault>
        </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name='XHTMLService2'>
        <wsdl:port name='XHTMLService2' binding='tns:XHTMLService2SOAPBinding0'>
            <soap:address location='http://rainbow.vse.cz:8000/wasp/XHTMLService2/'/>
        </wsdl:port>
    </wsdl:service>
</wsdl:definitions>