alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Apache CXF example source code file (cxf1793.wsdl)

This example Apache CXF source code file (cxf1793.wsdl) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Apache CXF tags/keywords

autheader, miscport, miscport, miscservice, miscservice, miscsoapbinding, miscsoapbinding, miscsoapport, miscsoapport

The Apache CXF cxf1793.wsdl source code

<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions
targetNamespace="http://cxf.apache.org/test/cxf1793/"
xmlns:m="http://cxf.apache.org/test/cxf1793/"
xmlns:misc="http://cxf.apache.org/test/cxf1793/types"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
        <wsdl:documentation/>
            <wsdl:types>
        <schema xmlns="http://www.w3.org/2001/XMLSchema" 
                targetNamespace="http://cxf.apache.org/test/cxf1793/types">
            <element name="AutHeader">
                <complexType>
                    <sequence>
                        <element name="headerVal" type="string"/>
                    </sequence>
                </complexType>
            </element>
            <element name="opOne">
                <complexType>
                    <sequence>
                        <element name="foo" type="string"/>
                    </sequence>
                </complexType>
            </element>
            <element name="opOneResponse">
                <complexType>
                    <sequence>
                        <element name="return" type="string"/>
                    </sequence>
                </complexType>
            </element>


            <element name="opTwo">
                <complexType>
                    <sequence>
                        <element name="foo" type="string"/>
                    </sequence>
                </complexType>
            </element>

            <element name="opTwoResponse">
                <complexType>
                    <sequence>
                        <element name="return" type="string"/>
                    </sequence>
                </complexType>
            </element>
        </schema>
    </wsdl:types>
        
        <wsdl:message name="opOne">
                <wsdl:part name="header" element="misc:AutHeader"/>
                <wsdl:part name="request" element="misc:opOne"/>
        </wsdl:message>
        
        <wsdl:message name="opOneResponse">
                <wsdl:part name="response" element="misc:opOneResponse" />
        </wsdl:message>

        <wsdl:message name="opTwo">
                <wsdl:part name="header" element="misc:AutHeader"/>
                <wsdl:part name="request" element="misc:opTwo"/>
        </wsdl:message>
        
        <wsdl:message name="opTwoResponse">
                <wsdl:part name="response" element="misc:opTwoResponse"/>
        </wsdl:message>

        <wsdl:portType name="MiscPort">
                <wsdl:operation name="opOne">
                        <wsdl:input message="m:opOne" />
                        <wsdl:output message="m:opOneResponse"/>
                </wsdl:operation>       
                <wsdl:operation name="opTwo">
                        <wsdl:input message="m:opTwo"/>
                        <wsdl:output message="m:opTwoResponse"/>
                </wsdl:operation>
        </wsdl:portType>
        
        <wsdl:binding name="MiscSoapBinding" type="m:MiscPort">
                <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
                <wsdl:operation name="opOne">
                        <soap:operation soapAction="opOne" style="document"/>
                        <wsdl:input>
                                <soap:header message="m:opOne" part="header" use="literal"/>
                                <soap:body parts="request" use="literal"/>
                        </wsdl:input>
                        <wsdl:output>
                                <soap:body use="literal"/>
                        </wsdl:output>
                </wsdl:operation>
                <wsdl:operation name="opTwo">
                        <soap:operation soapAction="opTwo" style="document"/>
                        <wsdl:input>
                                <soap:header message="m:opTwo" part="header2" use="literal"/>
                                <soap:body parts="request" use="literal"/>
                        </wsdl:input>
                        <wsdl:output>
                                <soap:body use="literal"/>
                        </wsdl:output>
                </wsdl:operation>
        </wsdl:binding>
        
        
        <wsdl:service name="MiscService">
                <wsdl:port name="MiscSoapPort" binding="m:MiscSoapBinding">
                        <soap:address location="http://localhost:8080/adnfond/services/MiscService"/>
                </wsdl:port>
        </wsdl:service>
</wsdl:definitions>

Other Apache CXF examples (source code examples)

Here is a short list of links related to this Apache CXF cxf1793.wsdl source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.