Hi Robert,

If you go to the bottom of the page of "Bug list" at apache and query for
bug 23012 you'll find sample doc\literal service that doesn't use wsdl.
The sample is removed from the bug list but it is still in the database.

I am yet to find time and do it again using wsdl :-).

I have also given a wsdl that uses doc\literal style below.


<definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
xmlns:s="http://www.w3.org/2001/XMLSchema"; xmlns:s0="urn:Notification"
xmlns="http://schemas.xmlsoap.org/wsdl/";
targetNamespace="urn:Notification">
        <types>
                <s:schema elementFormDefault="qualified"
targetNamespace="urn:Notification">
                        <s:complexType name="POType">
                                <s:sequence>
                                        <s:element name="name" type="s:string"/>
                                        <s:element name="adress" type="s:string"/>
                                </s:sequence>
                        </s:complexType>
                        <s:complexType name="RetType">
                          <s:sequence>
                             <s:element name="verify" type="s:int"/>
                          </s:sequence>
                        </s:complexType>
                        <s:element name="Person" type="s0:POType"/>
                        <s:element name="Notifying" type="s0:RetType"/>
                </s:schema>
        </types>
        <message name="InMessage">
                <part name="parameters" element="s0:Person"/>
        </message>
        <message name="OutMessage">
                <part name="parameters" element="s0:Notifying"/>
        </message>
        <portType name="NotificationPort">
                <operation name="findPerson">
                        <input message="s0:InMessage"/>
                        <output message="s0:OutMessage"/>
                </operation>
        </portType>
        <binding name="NotificationBinding" type="s0:NotificationPort">
                <soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
                <operation name="findPerson">
                        <soap:operation soapAction="findPerson" style="document"/>
                        <input>
                                <soap:body use="literal"/>
                        </input>
                        <output>
                                <soap:body use="literal"/>
                        </output>
                </operation>
        </binding>
        <service name="NotificationService">
                <port name="NotificationPort" binding="s0:NotificationBinding">
                        <soap:address
location="http://localhost:8080/axis/services/NotificationPort"/>
                </port>
        </service>
</definitions>

Best Regards,
Dimuthu.
-- 
Lanka Software Foundation  http://www.opensource.lk

> Can someone point me to the source code for a document/wrapped style
> service?
>
> Thanks.,



Reply via email to