001 package soapHeaders;
002
003 /**
004 * @jc:location http-url="mySoap12Service.jws" jms-url="mySoap12Service.jws"
005 * @jc:wsdl file="#mySoap12ServiceWsdl"
006 * @editor-info:link autogen-style="java" source="mySoap12Service.jws" autogen="true"
007 */
008 public interface mySoap12ServiceControl extends com.bea.control.ControlExtension, com.bea.control.ServiceControl
009 {
010
011 /**
012 * In this method, a header is created using HeaderDocument.Factory.Parse. The FirstChild is extracted into header, which is type Element. The header is put into place using the JwsContext service method, setOutputHeaders. The format of the Element header is: firstChild localName = "Header" name = "SOAP-ENV:Header" namespaceURI= "http://schemas-xmlsoap.org/soap/envelope/" firstChild localName = "content" name = "my:content" namespaceURI= "http://my.com/uri/" firstChild data = "Context Text"
013 * @jc:protocol http-soap="false" http-soap12="true"
014 */
015 public void myMethod ();
016
017 /**
018 * The header can be obtained by using the JwsContext interface getInputHeaders() is the compliment to setOutputHeaders() used in myMethod to add the header and the result is formated exactly the same way. You can extract some of the header by using the methods that come with the Element interface. getNodeName extracts the header name "soapenv:Header" getTagName extracts the tag name "soapenv:Header"
019 * @jc:protocol http-soap="false" http-soap12="true"
020 */
021 public java.lang.String[] GetHeader ();
022
023 /**
024 * getProtocol is in the JwsContext interface. It returns a type Protocol, which is made up of an ID and the text name of the protocol type. The Protocol class also contains the list of protocols that it refers to. The Protocol class has a method by the name of getName that returns the name of the protocol. So, by using getName, you can tell if this is a SOAP protocol or some other type of protocol.
025 * @jc:protocol http-soap="false" http-soap12="true"
026 */
027 public java.lang.String getThisProtocol ();
028
029 static final long serialVersionUID = 1L;
030 }
031
032 /** @common:define name="mySoap12ServiceWsdl" value::
033 <?xml version="1.0" encoding="utf-8"?>
034 <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://www.openuri.org/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" targetNamespace="http://www.openuri.org/">
035 <types>
036 <s:schema elementFormDefault="qualified" targetNamespace="http://www.openuri.org/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:ope="http://www.openuri.org/">
037 <s:element name="myMethod">
038 <s:complexType>
039 <s:sequence/>
040 </s:complexType>
041 </s:element>
042 <s:element name="myMethodResponse">
043 <s:complexType>
044 <s:sequence/>
045 </s:complexType>
046 </s:element>
047 <s:element name="GetHeader">
048 <s:complexType>
049 <s:sequence/>
050 </s:complexType>
051 </s:element>
052 <s:element name="GetHeaderResponse">
053 <s:complexType>
054 <s:sequence>
055 <s:element name="GetHeaderResult" type="ope:ArrayOfString" minOccurs="0"/>
056 </s:sequence>
057 </s:complexType>
058 </s:element>
059 <s:element name="ArrayOfString" nillable="true" type="ope:ArrayOfString"/>
060 <s:element name="getThisProtocol">
061 <s:complexType>
062 <s:sequence/>
063 </s:complexType>
064 </s:element>
065 <s:element name="getThisProtocolResponse">
066 <s:complexType>
067 <s:sequence>
068 <s:element name="getThisProtocolResult" type="s:string" minOccurs="0"/>
069 </s:sequence>
070 </s:complexType>
071 </s:element>
072 <s:element name="string" nillable="true" type="s:string"/>
073 <s:complexType name="ArrayOfString">
074 <s:sequence>
075 <s:element name="String" type="s:string" nillable="true" minOccurs="0" maxOccurs="unbounded"/>
076 </s:sequence>
077 </s:complexType>
078 </s:schema>
079
080 </types>
081 <message name="myMethodSoap12In">
082 <part name="parameters" element="s0:myMethod"/>
083 </message>
084 <message name="myMethodSoap12Out">
085 <part name="parameters" element="s0:myMethodResponse"/>
086 </message>
087 <message name="GetHeaderSoap12In">
088 <part name="parameters" element="s0:GetHeader"/>
089 </message>
090 <message name="GetHeaderSoap12Out">
091 <part name="parameters" element="s0:GetHeaderResponse"/>
092 </message>
093 <message name="getThisProtocolSoap12In">
094 <part name="parameters" element="s0:getThisProtocol"/>
095 </message>
096 <message name="getThisProtocolSoap12Out">
097 <part name="parameters" element="s0:getThisProtocolResponse"/>
098 </message>
099 <message name="myMethodHttpGetIn"/>
100 <message name="myMethodHttpGetOut"/>
101 <message name="GetHeaderHttpGetIn"/>
102 <message name="GetHeaderHttpGetOut">
103 <part name="Body" element="s0:ArrayOfString"/>
104 </message>
105 <message name="getThisProtocolHttpGetIn"/>
106 <message name="getThisProtocolHttpGetOut">
107 <part name="Body" element="s0:string"/>
108 </message>
109 <message name="myMethodHttpPostIn"/>
110 <message name="myMethodHttpPostOut"/>
111 <message name="GetHeaderHttpPostIn"/>
112 <message name="GetHeaderHttpPostOut">
113 <part name="Body" element="s0:ArrayOfString"/>
114 </message>
115 <message name="getThisProtocolHttpPostIn"/>
116 <message name="getThisProtocolHttpPostOut">
117 <part name="Body" element="s0:string"/>
118 </message>
119 <portType name="mySoap12ServiceSoap12">
120 <operation name="myMethod">
121 <documentation>In this method, a header is created using HeaderDocument.Factory.Parse. The FirstChild is extracted into header, which is type Element. The header is put into place using the JwsContext service method, setOutputHeaders. The format of the Element header is: firstChild localName = "Header" name = "SOAP-ENV:Header" namespaceURI= "http://schemas-xmlsoap.org/soap/envelope/" firstChild localName = "content" name = "my:content" namespaceURI= "http://my.com/uri/" firstChild data = "Context Text"</documentation>
122 <input message="s0:myMethodSoap12In"/>
123 <output message="s0:myMethodSoap12Out"/>
124 </operation>
125 <operation name="GetHeader">
126 <documentation>The header can be obtained by using the JwsContext interface getInputHeaders() is the compliment to setOutputHeaders() used in myMethod to add the header and the result is formated exactly the same way. You can extract some of the header by using the methods that come with the Element interface. getNodeName extracts the header name "soapenv:Header" getTagName extracts the tag name "soapenv:Header"</documentation>
127 <input message="s0:GetHeaderSoap12In"/>
128 <output message="s0:GetHeaderSoap12Out"/>
129 </operation>
130 <operation name="getThisProtocol">
131 <documentation>getProtocol is in the JwsContext interface. It returns a type Protocol, which is made up of an ID and the text name of the protocol type. The Protocol class also contains the list of protocols that it refers to. The Protocol class has a method by the name of getName that returns the name of the protocol. So, by using getName, you can tell if this is a SOAP protocol or some other type of protocol.</documentation>
132 <input message="s0:getThisProtocolSoap12In"/>
133 <output message="s0:getThisProtocolSoap12Out"/>
134 </operation>
135 </portType>
136 <portType name="mySoap12ServiceHttpGet">
137 <operation name="myMethod">
138 <documentation>In this method, a header is created using HeaderDocument.Factory.Parse. The FirstChild is extracted into header, which is type Element. The header is put into place using the JwsContext service method, setOutputHeaders. The format of the Element header is: firstChild localName = "Header" name = "SOAP-ENV:Header" namespaceURI= "http://schemas-xmlsoap.org/soap/envelope/" firstChild localName = "content" name = "my:content" namespaceURI= "http://my.com/uri/" firstChild data = "Context Text"</documentation>
139 <input message="s0:myMethodHttpGetIn"/>
140 <output message="s0:myMethodHttpGetOut"/>
141 </operation>
142 <operation name="GetHeader">
143 <documentation>The header can be obtained by using the JwsContext interface getInputHeaders() is the compliment to setOutputHeaders() used in myMethod to add the header and the result is formated exactly the same way. You can extract some of the header by using the methods that come with the Element interface. getNodeName extracts the header name "soapenv:Header" getTagName extracts the tag name "soapenv:Header"</documentation>
144 <input message="s0:GetHeaderHttpGetIn"/>
145 <output message="s0:GetHeaderHttpGetOut"/>
146 </operation>
147 <operation name="getThisProtocol">
148 <documentation>getProtocol is in the JwsContext interface. It returns a type Protocol, which is made up of an ID and the text name of the protocol type. The Protocol class also contains the list of protocols that it refers to. The Protocol class has a method by the name of getName that returns the name of the protocol. So, by using getName, you can tell if this is a SOAP protocol or some other type of protocol.</documentation>
149 <input message="s0:getThisProtocolHttpGetIn"/>
150 <output message="s0:getThisProtocolHttpGetOut"/>
151 </operation>
152 </portType>
153 <portType name="mySoap12ServiceHttpPost">
154 <operation name="myMethod">
155 <documentation>In this method, a header is created using HeaderDocument.Factory.Parse. The FirstChild is extracted into header, which is type Element. The header is put into place using the JwsContext service method, setOutputHeaders. The format of the Element header is: firstChild localName = "Header" name = "SOAP-ENV:Header" namespaceURI= "http://schemas-xmlsoap.org/soap/envelope/" firstChild localName = "content" name = "my:content" namespaceURI= "http://my.com/uri/" firstChild data = "Context Text"</documentation>
156 <input message="s0:myMethodHttpPostIn"/>
157 <output message="s0:myMethodHttpPostOut"/>
158 </operation>
159 <operation name="GetHeader">
160 <documentation>The header can be obtained by using the JwsContext interface getInputHeaders() is the compliment to setOutputHeaders() used in myMethod to add the header and the result is formated exactly the same way. You can extract some of the header by using the methods that come with the Element interface. getNodeName extracts the header name "soapenv:Header" getTagName extracts the tag name "soapenv:Header"</documentation>
161 <input message="s0:GetHeaderHttpPostIn"/>
162 <output message="s0:GetHeaderHttpPostOut"/>
163 </operation>
164 <operation name="getThisProtocol">
165 <documentation>getProtocol is in the JwsContext interface. It returns a type Protocol, which is made up of an ID and the text name of the protocol type. The Protocol class also contains the list of protocols that it refers to. The Protocol class has a method by the name of getName that returns the name of the protocol. So, by using getName, you can tell if this is a SOAP protocol or some other type of protocol.</documentation>
166 <input message="s0:getThisProtocolHttpPostIn"/>
167 <output message="s0:getThisProtocolHttpPostOut"/>
168 </operation>
169 </portType>
170 <binding name="mySoap12ServiceSoap12" type="s0:mySoap12ServiceSoap12">
171 <soap12:binding transport="http://schemas.xmlsoap.org/soap12/http" style="document"/>
172 <operation name="myMethod">
173 <soap12:operation style="document"/>
174 <input>
175 <soap:body use="literal"/>
176 </input>
177 <output>
178 <soap:body use="literal"/>
179 </output>
180 </operation>
181 <operation name="GetHeader">
182 <soap12:operation style="document"/>
183 <input>
184 <soap:body use="literal"/>
185 </input>
186 <output>
187 <soap:body use="literal"/>
188 </output>
189 </operation>
190 <operation name="getThisProtocol">
191 <soap12:operation style="document"/>
192 <input>
193 <soap:body use="literal"/>
194 </input>
195 <output>
196 <soap:body use="literal"/>
197 </output>
198 </operation>
199 </binding>
200 <binding name="mySoap12ServiceHttpGet" type="s0:mySoap12ServiceHttpGet">
201 <http:binding verb="GET"/>
202 <operation name="myMethod">
203 <http:operation location="/myMethod"/>
204 <input>
205 <http:urlEncoded/>
206 </input>
207 <output/>
208 </operation>
209 <operation name="GetHeader">
210 <http:operation location="/GetHeader"/>
211 <input>
212 <http:urlEncoded/>
213 </input>
214 <output>
215 <mime:mimeXml part="Body"/>
216 </output>
217 </operation>
218 <operation name="getThisProtocol">
219 <http:operation location="/getThisProtocol"/>
220 <input>
221 <http:urlEncoded/>
222 </input>
223 <output>
224 <mime:mimeXml part="Body"/>
225 </output>
226 </operation>
227 </binding>
228 <binding name="mySoap12ServiceHttpPost" type="s0:mySoap12ServiceHttpPost">
229 <http:binding verb="POST"/>
230 <operation name="myMethod">
231 <http:operation location="/myMethod"/>
232 <input>
233 <mime:content type="application/x-www-form-urlencoded"/>
234 </input>
235 <output/>
236 </operation>
237 <operation name="GetHeader">
238 <http:operation location="/GetHeader"/>
239 <input>
240 <mime:content type="application/x-www-form-urlencoded"/>
241 </input>
242 <output>
243 <mime:mimeXml part="Body"/>
244 </output>
245 </operation>
246 <operation name="getThisProtocol">
247 <http:operation location="/getThisProtocol"/>
248 <input>
249 <mime:content type="application/x-www-form-urlencoded"/>
250 </input>
251 <output>
252 <mime:mimeXml part="Body"/>
253 </output>
254 </operation>
255 </binding>
256 <service name="mySoap12Service">
257 <port name="mySoap12ServiceSoap12" binding="s0:mySoap12ServiceSoap12">
258 <soap12:address location="http://localhost:7001/soapHeaders/mySoap12Service.jws"/>
259 </port>
260 <port name="mySoap12ServiceHttpGet" binding="s0:mySoap12ServiceHttpGet">
261 <http:address location="http://localhost:7001/soapHeaders/mySoap12Service.jws"/>
262 </port>
263 <port name="mySoap12ServiceHttpPost" binding="s0:mySoap12ServiceHttpPost">
264 <http:address location="http://localhost:7001/soapHeaders/mySoap12Service.jws"/>
265 </port>
266 </service>
267 </definitions>
268 * ::
269 */
|