Web Services
  Home arrow Web Services arrow Page 4 - An Embeddable Standards Compliant Web Service Server
Dev Shed Forums  
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Smartphone Development  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Mobile Linux  
App Generation ROI  
IBM® developerWorks  
Forums Sitemap  
E-Commerce Hosting  
Linux Web Hosting  
Managed Hosting  
Small Business Hosting  
VPS Hosting  
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid  
Request Media Kit
Contact Us  
Site Map  
Privacy Policy  
Support  
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
Google.com  
WEB SERVICES

An Embeddable Standards Compliant Web Service Server
By: Terry Ess
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: starstarstarstarstar / 7
    2004-07-27


    Table of Contents:
  • An Embeddable Standards Compliant Web Service Server
  • Design
  • Results
  • Appendix

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      error-file:tidyout.log Del.ici.ous error-file:tidyout.log Digg
      error-file:tidyout.log Blink error-file:tidyout.log Simpy
      error-file:tidyout.log Google error-file:tidyout.log Spurl
      error-file:tidyout.log Y! MyWeb error-file:tidyout.log Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article

     
     
    ADVERTISEMENT


    An Embeddable Standards Compliant Web Service Server - Appendix
    ( Page 4 of 4 )


     
    Appendix A: Reference Links

    WS-I Basic Profile
    http://www.ws-i.org/Profiles/BasicProfile-1.0-2004-04-16.html

    Simple Object Access Protocol (SOAP) 1.1
    http://www.w3.org/TR/2000/NOTE-SOAP-20000508

    Extensible Markup Language (XML) 1.0 (Second Edition)
    http://www.w3.org/TR/REC-xml

    RFC2616: Hypertext Transfer Protocol -- HTTP/1.1
    http://www.ietf.org/rfc/rfc2616

    Web Services Description Language (WSDL) 1.1
    http://www.w3.org/TR/wsdl.html

    XML Schema Part 1: Structures
    http://www.w3.org/TR/xmlschema-1

    XML Schema Part 2: Datatypes
    http://www.w3.org/TR/xmlschema-2

    Appendix B: Server Reference Implementation WSDL

    <?xml version="1.0" encoding="UTF-8"?>
    <definitions
        targetNamespace="http://device/def/"
        xmlns="http://schemas.xmlsoap.org/wsdl/"
        xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
        xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
        xmlns:tns="http://device/def/"
        xmlns:xs="http://www.w3.org/2001/XMLSchema">
        <types>
            <xs:schema targetNamespace="http://device/def/" xmlns="http://device/def/">

      <xs:complexType name="Passcode">
           <xs:sequence>
      <xs:element name="data" type="xs:unsignedByte" minOccurs="16" maxOccurs="16"/>
      </xs:sequence>
     </xs:complexType>

                <xs:complexType name="ConnectParameters">
                    <xs:sequence>
                        <xs:element name="user" type="xs:string"/>
                        <xs:element name="pass" type="Passcode"/>
                    </xs:sequence>
                </xs:complexType>
                <xs:complexType name="ConnectResponse">
                    <xs:sequence>
                        <xs:element name="result" type="xs:boolean"/>
                        <xs:element name="pass" type="Passcode"/>
                    </xs:sequence>
                </xs:complexType>
                <xs:element name="Connect" type="ConnectParameters"/>
                <xs:element name="ConnectResp" type="ConnectResponse"/>

                <xs:complexType name="GetParameters">
                    <xs:sequence>
                        <xs:element name="id" type="xs:short"/>
                    </xs:sequence>
                </xs:complexType>
                <xs:complexType name="GetShortResponse">
                    <xs:sequence>
                        <xs:element name="id" type="xs:short"/>
                        <xs:element name="value" type="xs:short"/>
                    </xs:sequence>
                </xs:complexType>
                <xs:element name="GetShort" type="GetParameters"/>
                <xs:element name="GetShortResp" type="GetShortResponse"/>


                <xs:complexType name="SetShortParameters">
                    <xs:sequence>
                        <xs:element name="id" type="xs:short"/>
                        <xs:element name="value" type="xs:short"/>
                    </xs:sequence>
                </xs:complexType>
                <xs:complexType name="SetResponse">
                    <xs:sequence>
                        <xs:element name="id" type="xs:short"/>
                        <xs:element name="result" type="xs:boolean"/>
                    </xs:sequence>
                </xs:complexType>
                <xs:element name="SetShort" type="SetShortParameters"/>
                <xs:element name="SetShortResp" type="SetResponse"/>

                <xs:complexType name="StartStopParameters">
                    <xs:sequence>
                        <xs:element name="op_code" type="xs:short"/>
                        <xs:element name="param" type="xs:short"/>
                    </xs:sequence>
                </xs:complexType>
                <xs:complexType name="StartStopResponse">
                    <xs:sequence>
                        <xs:element name="op_code" type="xs:short"/>
                        <xs:element name="result" type="xs:boolean"/>
                    </xs:sequence>
                </xs:complexType>
                <xs:element name="Start" type="StartStopParameters"/>
                <xs:element name="StartResp" type="StartStopResponse"/>
                <xs:element name="Stop" type="StartStopParameters"/>
                <xs:element name="StopResp" type="StartStopResponse"/>

            </xs:schema>
        </types>
        <message name="ConnectResponseMessage">
            <part element="tns:ConnectResp" name="parameters"/>
        </message>
        <message name="ConnectMessage">
            <part element="tns:Connect" name="parameters"/>
        </message>

        <message name="GetShortResponseMessage">
            <part element="tns:GetShortResp" name="parameters"/>
        </message>
        <message name="GetShortMessage">
            <part element="tns:GetShort" name="parameters"/>
        </message>

        <message name="SetShortResponseMessage">
            <part element="tns:SetShortResp" name="parameters"/>
        </message>
        <message name="SetShortMessage">
            <part element="tns:SetShort" name="parameters"/>
        </message>

        <message name="StartResponseMessage">
            <part element="tns:StartResp" name="parameters"/>
        </message>
        <message name="StartMessage">
            <part element="tns:Start" name="parameters"/>
        </message>

        <message name="StopResponseMessage">
            <part element="tns:StopResp" name="parameters"/>
        </message>
        <message name="StopMessage">
            <part element="tns:Stop" name="parameters"/>
        </message>

        <portType name="DeviceIO">
            <operation name="Connect">
                <input message="tns:ConnectMessage"/>
                <output message="tns:ConnectResponseMessage"/>
            </operation>

            <operation name="GetShort">
                <input message="tns:GetShortMessage"/>
                <output message="tns:GetShortResponseMessage"/>
            </operation>

            <operation name="SetShort">
                <input message="tns:SetShortMessage"/>
                <output message="tns:SetShortResponseMessage"/>
            </operation>

            <operation name="StartCmd">
                <input message="tns:StartMessage"/>
                <output message="tns:StartResponseMessage"/>
            </operation>

            <operation name="StopCmd">
                <input message="tns:StopMessage"/>
                <output message="tns:StopResponseMessage"/>
            </operation>

        </portType>
        <binding name="DeviceIOBinding" type="tns:DeviceIO">
            <soap:binding style="document" transport="
    http://schemas.xmlsoap.org/soap/http"/>
            <operation name="Connect">
                <soap:operation soapAction="DeviceIO#Connect"/>
                <input>
                    <soap:body use="literal"/>
                </input>
                <output>
                    <soap:body use="literal"/>
                </output>
            </operation>

            <operation name="GetShort">
                <soap:operation soapAction="DeviceIO#GetShort"/>
                <input>
                    <soap:body use="literal"/>
                </input>
                <output>
                    <soap:body use="literal"/>
                </output>
            </operation>

            <operation name="SetShort">
                <soap:operation soapAction="DeviceIO#SetShort"/>
                <input>
                    <soap:body use="literal"/>
                </input>
                <output>
                    <soap:body use="literal"/>
                </output>
            </operation>

            <operation name="StartCmd">
                <soap:operation soapAction="DeviceIO#Start"/>
                <input>
                    <soap:body use="literal"/>
                </input>
                <output>
                    <soap:body use="literal"/>
                </output>
            </operation>

            <operation name="StopCmd">
                <soap:operation soapAction="DeviceIO#Stop"/>
                <input>
                    <soap:body use="literal"/>
                </input>
                <output>
                    <soap:body use="literal"/>
                </output>
            </operation>

        </binding>
        <service name="Service">
            <port binding="tns:DeviceIOBinding" name="DevicePort">
                <soap:address location="
    http://localhost:2000/DeviceIO"/>
            </port>
        </service>
    </definitions>



     
     
    >>> More Web Services Articles          >>> More By Terry Ess
     

       

    WEB SERVICES ARTICLES

    - Dynamic Data Analysis on the Web-a Design Ap...
    - Use collection types with SOAP and JAX-RPC
    - Blogging Away To Glory (A bBlog Primer)
    - Introduction to Service Oriented Architectur...
    - Connecting Smart Devices on the Internet
    - An Embeddable Standards Compliant Web Servic...


    Email Marketing Software
    iContact Email Marketing Software Simplifies Online Communication.
    Internet Marketing Company
    Provider of internet marketing services to boost your site rankings.
    seo firm
    SEO firm with excellent organic results for clients in all verticals
    Survey software
    Survey Software that helps you create elegant web based surverys.



    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 2 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek