MyCompanyContract.wsdl Sample
This topic inludes the source code for the MyCompanyContract.wsdl Sample.
Sample Location
This sample is located in the following directory in your WebLogic Workshop installation:
BEA_HOME/weblogic81/samples/workshop/SamplesApp/WebServices/security/wsse/reqResp/mycompany/
Sample Source Code
001 <?xml version="1.0" encoding="utf-8"?>
002 <!-- @editor-info:link autogen="true" source="MyCompany.jws" -->
003 <definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:conv="http://www.openuri.org/2002/04/soap/conversation/" xmlns:cw="http://www.openuri.org/2002/04/wsdl/conversation/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:jms="http://www.openuri.org/2002/04/wsdl/jms/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:s0="http://workshop.bea.com/MyCompany" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" targetNamespace="http://workshop.bea.com/MyCompany">
004 <types>
005 <s:schema elementFormDefault="qualified" targetNamespace="http://workshop.bea.com/MyCompany" xmlns:s="http://www.w3.org/2001/XMLSchema">
006 <s:element name="hello">
007 <s:complexType>
008 <s:sequence/>
009 </s:complexType>
010 </s:element>
011 <s:element name="helloResponse">
012 <s:complexType>
013 <s:sequence>
014 <s:element name="helloResult" type="s:string" minOccurs="0"/>
015 </s:sequence>
016 </s:complexType>
017 </s:element>
018 <s:element name="string" nillable="true" type="s:string"/>
019 </s:schema>
020
021 </types>
022 <message name="helloSoapIn">
023 <part name="parameters" element="s0:hello"/>
024 </message>
025 <message name="helloSoapOut">
026 <part name="parameters" element="s0:helloResponse"/>
027 </message>
028 <message name="helloHttpGetIn"/>
029 <message name="helloHttpGetOut">
030 <part name="Body" element="s0:string"/>
031 </message>
032 <message name="helloHttpPostIn"/>
033 <message name="helloHttpPostOut">
034 <part name="Body" element="s0:string"/>
035 </message>
036 <portType name="MyCompanySoap">
037 <operation name="hello">
038 <input message="s0:helloSoapIn"/>
039 <output message="s0:helloSoapOut"/>
040 </operation>
041 </portType>
042 <portType name="MyCompanyHttpGet">
043 <operation name="hello">
044 <input message="s0:helloHttpGetIn"/>
045 <output message="s0:helloHttpGetOut"/>
046 </operation>
047 </portType>
048 <portType name="MyCompanyHttpPost">
049 <operation name="hello">
050 <input message="s0:helloHttpPostIn"/>
051 <output message="s0:helloHttpPostOut"/>
052 </operation>
053 </portType>
054 <binding name="MyCompanySoap" type="s0:MyCompanySoap">
055 <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
056 <operation name="hello">
057 <soap:operation soapAction="http://workshop.bea.com/MyCompany/hello" style="document"/>
058 <input>
059 <soap:body use="literal"/>
060 </input>
061 <output>
062 <soap:body use="literal"/>
063 </output>
064 </operation>
065 </binding>
066 <binding name="MyCompanyHttpGet" type="s0:MyCompanyHttpGet">
067 <http:binding verb="GET"/>
068 <operation name="hello">
069 <http:operation location="/hello"/>
070 <input>
071 <http:urlEncoded/>
072 </input>
073 <output>
074 <mime:mimeXml part="Body"/>
075 </output>
076 </operation>
077 </binding>
078 <binding name="MyCompanyHttpPost" type="s0:MyCompanyHttpPost">
079 <http:binding verb="POST"/>
080 <operation name="hello">
081 <http:operation location="/hello"/>
082 <input>
083 <mime:content type="application/x-www-form-urlencoded"/>
084 </input>
085 <output>
086 <mime:mimeXml part="Body"/>
087 </output>
088 </operation>
089 </binding>
090 <service name="MyCompany">
091 <port name="MyCompanySoap" binding="s0:MyCompanySoap">
092 <soap:address location="http://localhost:7001/WebServices/security/wsse/reqResp/mycompany/MyCompany.jws"/>
093 </port>
094 <port name="MyCompanyHttpGet" binding="s0:MyCompanyHttpGet">
095 <http:address location="http://localhost:7001/WebServices/security/wsse/reqResp/mycompany/MyCompany.jws"/>
096 </port>
097 <port name="MyCompanyHttpPost" binding="s0:MyCompanyHttpPost">
098 <http:address location="http://localhost:7001/WebServices/security/wsse/reqResp/mycompany/MyCompany.jws"/>
099 </port>
100 </service>
101 </definitions>
|