HelloWorldSecureControl.jcx Sample
This topic inludes the source code for the HelloWorldSecureControl.jcx Sample.
Sample Location
This sample is located in the following directory in your WebLogic Workshop installation:
BEA_HOME/weblogic81/samples/workshop/SamplesApp/WebServices/security/transport/helloWorldSecure/
Sample Source Code
001 package security.transport.helloWorldSecure;
002
003 /**
004 * @jc:location http-url="https://localhost:7002/WebServices/security/transport/helloWorldSecure/HelloWorldSecure.jws"
005 * @jc:wsdl file="#HelloWorldSecureWsdl"
006 */
007 public interface HelloWorldSecureControl extends com.bea.control.ControlExtension, com.bea.control.ServiceControl
008 {
009
010 public java.lang.String HelloWorldSecure ();
011
012 static final long serialVersionUID = 1L;
013 }
014
015 /** @common:define name="HelloWorldSecureWsdl" value::
016 <?xml version="1.0" encoding="utf-8"?>
017 <!-- @editor-info:link autogen="true" source="HelloWorldSecure.jws" -->
018 <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/HelloWorldSecure" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" targetNamespace="http://workshop.bea.com/HelloWorldSecure">
019 <types>
020 <s:schema elementFormDefault="qualified" targetNamespace="http://workshop.bea.com/HelloWorldSecure" xmlns:s="http://www.w3.org/2001/XMLSchema">
021 <s:element name="HelloWorldSecure">
022 <s:complexType>
023 <s:sequence/>
024 </s:complexType>
025 </s:element>
026 <s:element name="HelloWorldSecureResponse">
027 <s:complexType>
028 <s:sequence>
029 <s:element name="HelloWorldSecureResult" type="s:string" minOccurs="0"/>
030 </s:sequence>
031 </s:complexType>
032 </s:element>
033 <s:element name="string" nillable="true" type="s:string"/>
034 </s:schema>
035
036 </types>
037 <message name="HelloWorldSecureSoapIn">
038 <part name="parameters" element="s0:HelloWorldSecure"/>
039 </message>
040 <message name="HelloWorldSecureSoapOut">
041 <part name="parameters" element="s0:HelloWorldSecureResponse"/>
042 </message>
043 <message name="HelloWorldSecureHttpGetIn"/>
044 <message name="HelloWorldSecureHttpGetOut">
045 <part name="Body" element="s0:string"/>
046 </message>
047 <message name="HelloWorldSecureHttpPostIn"/>
048 <message name="HelloWorldSecureHttpPostOut">
049 <part name="Body" element="s0:string"/>
050 </message>
051 <portType name="HelloWorldSecureSoap">
052 <operation name="HelloWorldSecure">
053 <input message="s0:HelloWorldSecureSoapIn"/>
054 <output message="s0:HelloWorldSecureSoapOut"/>
055 </operation>
056 </portType>
057 <portType name="HelloWorldSecureHttpGet">
058 <operation name="HelloWorldSecure">
059 <input message="s0:HelloWorldSecureHttpGetIn"/>
060 <output message="s0:HelloWorldSecureHttpGetOut"/>
061 </operation>
062 </portType>
063 <portType name="HelloWorldSecureHttpPost">
064 <operation name="HelloWorldSecure">
065 <input message="s0:HelloWorldSecureHttpPostIn"/>
066 <output message="s0:HelloWorldSecureHttpPostOut"/>
067 </operation>
068 </portType>
069 <binding name="HelloWorldSecureSoap" type="s0:HelloWorldSecureSoap">
070 <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
071 <operation name="HelloWorldSecure">
072 <soap:operation soapAction="http://workshop.bea.com/HelloWorldSecure/HelloWorldSecure" style="document"/>
073 <input>
074 <soap:body use="literal"/>
075 </input>
076 <output>
077 <soap:body use="literal"/>
078 </output>
079 </operation>
080 </binding>
081 <binding name="HelloWorldSecureHttpGet" type="s0:HelloWorldSecureHttpGet">
082 <http:binding verb="GET"/>
083 <operation name="HelloWorldSecure">
084 <http:operation location="/HelloWorldSecure"/>
085 <input>
086 <http:urlEncoded/>
087 </input>
088 <output>
089 <mime:mimeXml part="Body"/>
090 </output>
091 </operation>
092 </binding>
093 <binding name="HelloWorldSecureHttpPost" type="s0:HelloWorldSecureHttpPost">
094 <http:binding verb="POST"/>
095 <operation name="HelloWorldSecure">
096 <http:operation location="/HelloWorldSecure"/>
097 <input>
098 <mime:content type="application/x-www-form-urlencoded"/>
099 </input>
100 <output>
101 <mime:mimeXml part="Body"/>
102 </output>
103 </operation>
104 </binding>
105 <service name="HelloWorldSecure">
106 <port name="HelloWorldSecureSoap" binding="s0:HelloWorldSecureSoap">
107 <soap:address location="http://localhost:7001/WebServices/security/transport/helloWorldSecure/HelloWorldSecure.jws"/>
108 </port>
109 <port name="HelloWorldSecureHttpGet" binding="s0:HelloWorldSecureHttpGet">
110 <http:address location="http://localhost:7001/WebServices/security/transport/helloWorldSecure/HelloWorldSecure.jws"/>
111 </port>
112 <port name="HelloWorldSecureHttpPost" binding="s0:HelloWorldSecureHttpPost">
113 <http:address location="http://localhost:7001/WebServices/security/transport/helloWorldSecure/HelloWorldSecure.jws"/>
114 </port>
115 </service>
116 </definitions>
117 * ::
118 */
|