You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by sm...@apache.org on 2011/07/11 23:10:56 UTC
svn commit: r1145356 [25/28] - in /incubator/airavata/trunk/ws-messaging: ./
distribution/ distribution/axis2_releases/
distribution/axis2_releases/axis2-1.6.0/
distribution/axis2_releases/axis2-1.6.0/bin/
distribution/axis2_releases/axis2-1.6.0/conf/ ...
Added: incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/wsdl/Axis2SampleDocLit.wsdl
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/wsdl/Axis2SampleDocLit.wsdl?rev=1145356&view=auto
==============================================================================
--- incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/wsdl/Axis2SampleDocLit.wsdl (added)
+++ incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/wsdl/Axis2SampleDocLit.wsdl Mon Jul 11 21:10:36 2011
@@ -0,0 +1,113 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one
+ ~ or more contributor license agreements. See the NOTICE file
+ ~ distributed with this work for additional information
+ ~ regarding copyright ownership. The ASF licenses this file
+ ~ to you under the Apache License, Version 2.0 (the
+ ~ "License"); you may not use this file except in compliance
+ ~ with the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing,
+ ~ software distributed under the License is distributed on an
+ ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ ~ KIND, either express or implied. See the License for the
+ ~ specific language governing permissions and limitations
+ ~ under the License.
+ -->
+
+<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://userguide.axis2.apache.org/Axis2SampleDocLit" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsd1="http://userguide.axis2.apache.org/xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" targetNamespace="http://userguide.axis2.apache.org/Axis2SampleDocLit" name="Axis2SampleDocLitService">
+ <types>
+ <schema targetNamespace="http://userguide.axis2.apache.org/xsd" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" elementFormDefault="qualified">
+ <complexType name="ArrayOfstring_literal">
+ <sequence>
+ <element maxOccurs="unbounded" minOccurs="1" name="string" type="xsd:string"/>
+ </sequence>
+ </complexType>
+ <complexType name="SOAPStruct">
+ <all>
+ <element name="varFloat" type="xsd:float"/>
+ <element name="varInt" type="xsd:int"/>
+ <element name="varString" type="xsd:string"/>
+ </all>
+ </complexType>
+ <element name="echoStringParam" type="xsd:string"/>
+ <element name="echoIntParam" type="xsd:int"/>
+ <element name="echoStringReturn" type="xsd:string"/>
+ <element name="echoStringArrayParam" type="xsd1:ArrayOfstring_literal"/>
+ <element name="echoStringArrayReturn" type="xsd1:ArrayOfstring_literal"/>
+ <element name="echoStructParam" type="xsd1:SOAPStruct"/>
+ <element name="echoStructReturn" type="xsd1:SOAPStruct"/>
+ </schema>
+ </types>
+ <message name="echoString">
+ <part name="a" element="xsd1:echoStringParam"/>
+ </message>
+ <message name="echoStringResponse">
+ <part name="result" element="xsd1:echoStringReturn"/>
+ </message>
+ <message name="echoStringArray">
+ <part name="a" element="xsd1:echoStringArrayParam"/>
+ </message>
+ <message name="echoStringArrayResponse">
+ <part name="result" element="xsd1:echoStringArrayReturn"/>
+ </message>
+ <message name="echoStruct">
+ <part name="a" element="xsd1:echoStructParam"/>
+ </message>
+ <message name="echoStructResponse">
+ <part name="result" element="xsd1:echoStructReturn"/>
+ </message>
+ <portType name="Axis2SampleDocLitPortType">
+ <operation name="echoString">
+ <input name="echoString" message="tns:echoString"/>
+ <output name="echoStringResponse" message="tns:echoStringResponse"/>
+ </operation>
+ <operation name="echoStringArray">
+ <input name="echoStringArray" message="tns:echoStringArray"/>
+ <output name="echoStringArrayResponse" message="tns:echoStringArrayResponse"/>
+ </operation>
+ <operation name="echoStruct">
+ <input name="echoStruct" message="tns:echoStruct"/>
+ <output name="echoStructResponse" message="tns:echoStructResponse"/>
+ </operation>
+ </portType>
+ <binding name="Axis2SampleDocLitPortBinding" type="tns:Axis2SampleDocLitPortType">
+ <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
+ <operation name="echoString">
+ <soap:operation soapAction="echoString" style="document"/>
+ <input>
+ <soap:body use="literal" namespace="http://userguide.axis2.apache.org/Axis2SampleDocLit"/>
+ </input>
+ <output>
+ <soap:body use="literal" namespace="http://userguide.axis2.apache.org/Axis2SampleDocLit"/>
+ </output>
+ </operation>
+ <operation name="echoStringArray">
+ <soap:operation soapAction="echoStringArray" style="document"/>
+ <input>
+ <soap:body use="literal" namespace="http://userguide.axis2.apache.org/Axis2SampleDocLit"/>
+ </input>
+ <output>
+ <soap:body use="literal" namespace="http://userguide.axis2.apache.org/Axis2SampleDocLit"/>
+ </output>
+ </operation>
+ <operation name="echoStruct">
+ <soap:operation soapAction="echoStruct" style="document"/>
+ <input>
+ <soap:body use="literal" namespace="http://userguide.axis2.apache.org/Axis2SampleDocLit"/>
+ </input>
+ <output>
+ <soap:body use="literal" namespace="http://userguide.axis2.apache.org/Axis2SampleDocLit"/>
+ </output>
+ </operation>
+ </binding>
+ <service name="Axis2SampleDocLitService">
+ <port name="Axis2SampleDocLitPort" binding="tns:Axis2SampleDocLitPortBinding">
+ <soap:address location="http://userguide.axis2.apache.org/stkv3/wsdl/Axis2SampleDocLit.wsdl"/>
+ </port>
+ </service>
+</definitions>
Added: incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/wsdl/perf.wsdl
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/wsdl/perf.wsdl?rev=1145356&view=auto
==============================================================================
--- incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/wsdl/perf.wsdl (added)
+++ incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/wsdl/perf.wsdl Mon Jul 11 21:10:36 2011
@@ -0,0 +1,64 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one
+ ~ or more contributor license agreements. See the NOTICE file
+ ~ distributed with this work for additional information
+ ~ regarding copyright ownership. The ASF licenses this file
+ ~ to you under the Apache License, Version 2.0 (the
+ ~ "License"); you may not use this file except in compliance
+ ~ with the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing,
+ ~ software distributed under the License is distributed on an
+ ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ ~ KIND, either express or implied. See the License for the
+ ~ specific language governing permissions and limitations
+ ~ under the License.
+ -->
+
+<wsdl:definitions xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://perf.samples" xmlns:intf="http://perf.samples" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://perf.samples">
+ <wsdl:types>
+ <schema elementFormDefault="qualified" targetNamespace="http://perf.samples" xmlns="http://www.w3.org/2001/XMLSchema">
+ <element name="inputElement">
+ <complexType>
+ <sequence>
+ <element maxOccurs="unbounded" minOccurs="0" name="item" type="xsd:string"/>
+ </sequence>
+ </complexType>
+ </element>
+ <element name="outputElement" type="xsd:string"/>
+ </schema>
+ </wsdl:types>
+ <wsdl:message name="handleStringArrayResponse">
+ <wsdl:part name="output" element="impl:outputElement"/>
+ </wsdl:message>
+ <wsdl:message name="handleStringArrayRequest">
+ <wsdl:part name="input" element="impl:inputElement"/>
+ </wsdl:message>
+ <wsdl:portType name="PerfPortType">
+ <wsdl:operation name="handleStringArray" parameterOrder="input">
+ <wsdl:input name="handleStringArrayRequest" message="impl:handleStringArrayRequest"/>
+ <wsdl:output name="handleStringArrayResponse" message="impl:handleStringArrayResponse"/>
+ </wsdl:operation>
+ </wsdl:portType>
+ <wsdl:binding name="PerformanceSoapBinding" type="impl:PerfPortType">
+ <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
+ <wsdl:operation name="handleStringArray">
+ <wsdlsoap:operation soapAction="handleStringArray"/>
+ <wsdl:input>
+ <wsdlsoap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <wsdlsoap:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:service name="PerfSoapService">
+ <wsdl:port name="Performance" binding="impl:PerformanceSoapBinding">
+ <wsdlsoap:address location="http://localhost:8080/axis2/services/PerfPortType"/>
+ </wsdl:port>
+ </wsdl:service>
+</wsdl:definitions>
Added: incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/yahoojsonsearch/README.txt
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/yahoojsonsearch/README.txt?rev=1145356&view=auto
==============================================================================
--- incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/yahoojsonsearch/README.txt (added)
+++ incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/yahoojsonsearch/README.txt Mon Jul 11 21:10:36 2011
@@ -0,0 +1,24 @@
+Sample for Yahoo - Search - JSON
+=================================
+
+Introduction
+============
+
+Axis2 client API has facilities to accept responses in JSON.
+
+Yahoo provides an API to call its search service and retrieve JSON responses. This sample demonstrates how to call Yahoo
+search service using an Axis2 client which accepts a JSON response.
+
+Pre-Requisites
+==============
+
+Apache Ant 1.6.2 or later
+
+Running The Sample
+==================
+
+Type "ant" from Axis2_HOME/samples/yahoojsonsearch directory.
+
+Help
+====
+Please contact axis-user list (axis-user@ws.apache.org) if you have any trouble running the sample.
Added: incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/yahoojsonsearch/build.xml
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/yahoojsonsearch/build.xml?rev=1145356&view=auto
==============================================================================
--- incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/yahoojsonsearch/build.xml (added)
+++ incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/yahoojsonsearch/build.xml Mon Jul 11 21:10:36 2011
@@ -0,0 +1,51 @@
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one
+ ~ or more contributor license agreements. See the NOTICE file
+ ~ distributed with this work for additional information
+ ~ regarding copyright ownership. The ASF licenses this file
+ ~ to you under the Apache License, Version 2.0 (the
+ ~ "License"); you may not use this file except in compliance
+ ~ with the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing,
+ ~ software distributed under the License is distributed on an
+ ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ ~ KIND, either express or implied. See the License for the
+ ~ specific language governing permissions and limitations
+ ~ under the License.
+ -->
+
+<project name="YahooJSONSearchSample" default="run.client">
+ <property environment="env" />
+ <property name="axis2.home" value="../../" />
+ <property name="axis2.repo" value="${axis2.home}/repository" />
+ <property name="build.dir" value="build" />
+ <property name="client.classes.dir" value="${build.dir}/classes" />
+ <path id="axis.classpath">
+ <fileset dir="${axis2.home}/lib">
+ <include name="*.jar" />
+ </fileset>
+ <pathelement location="build/yahooJSONSearch.jar" />
+ </path>
+
+ <target name="compile">
+ <mkdir dir="${client.classes.dir}" />
+ <!-- Compile client -->
+ <javac srcdir="src" destdir="${client.classes.dir}">
+ <classpath refid="axis.classpath" />
+ </javac>
+ <jar destfile="${build.dir}/yahooJSONSearch.jar">
+ <fileset dir="${build.dir}/classes" />
+ </jar>
+ </target>
+ <target name="run.client" depends="compile">
+ <java classname="sample.yahooservices.JSONSearch.JSONSearchClient" classpathref="axis.classpath" fork="true">
+ <jvmarg value="-Daxis2.repo=${axis2.repo}" />
+ </java>
+ </target>
+ <target name="clean">
+ <delete dir="build" />
+ </target>
+</project>
Added: incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/yahoojsonsearch/resources/axis2.xml
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/yahoojsonsearch/resources/axis2.xml?rev=1145356&view=auto
==============================================================================
--- incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/yahoojsonsearch/resources/axis2.xml (added)
+++ incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/yahoojsonsearch/resources/axis2.xml Mon Jul 11 21:10:36 2011
@@ -0,0 +1,282 @@
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one
+ ~ or more contributor license agreements. See the NOTICE file
+ ~ distributed with this work for additional information
+ ~ regarding copyright ownership. The ASF licenses this file
+ ~ to you under the Apache License, Version 2.0 (the
+ ~ "License"); you may not use this file except in compliance
+ ~ with the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing,
+ ~ software distributed under the License is distributed on an
+ ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ ~ KIND, either express or implied. See the License for the
+ ~ specific language governing permissions and limitations
+ ~ under the License.
+ -->
+
+<axisconfig name="AxisJava2.0">
+ <!-- ================================================= -->
+ <!-- Parameters -->
+ <!-- ================================================= -->
+ <parameter name="hotdeployment">true</parameter>
+ <parameter name="hotupdate">false</parameter>
+ <parameter name="enableMTOM">false</parameter>
+ <parameter name="enableSwA">false</parameter>
+
+ <!--Uncomment if you want to enable file caching for attachments -->
+ <!--parameter name="cacheAttachments">true</parameter>
+ <parameter name="attachmentDIR"></parameter>
+ <parameter name="sizeThreshold">4000</parameter-->
+
+ <!--This will give out the timout of the configuration contexts, in seconds-->
+ <parameter name="ConfigContextTimeoutInterval">30</parameter>
+
+ <!--During a fault, stacktrace can be sent with the fault message. The following flag will control -->
+ <!--that behaviour.-->
+ <parameter name="sendStacktraceDetailsWithFaults">false</parameter>
+
+ <!--If there aren't any information available to find out the fault reason, we set the message of the expcetion-->
+ <!--as the faultreason/Reason. But when a fault is thrown from a service or some where, it will be -->
+ <!--wrapped by different levels. Due to this the initial exception message can be lost. If this flag-->
+ <!--is set then, Axis2 tries to get the first exception and set its message as the faultreason/Reason.-->
+ <parameter name="DrillDownToRootCauseForFaultReason">false</parameter>
+
+ <parameter name="userName">admin</parameter>
+ <parameter name="password">axis2</parameter>
+
+ <!--To override repository/services you need to uncomment following parameter and value SHOULD be absolute file path.-->
+ <!--<parameter name="ServicesDirectory">service</parameter>-->
+ <!--To override repository/modules you need to uncomment following parameter and value SHOULD be absolute file path-->
+ <!--<parameter name="ModulesDirectory">modules</parameter>-->
+
+
+
+ <!--Following params will set the proper context paths for invocations. All the endpoints will have a commons context-->
+ <!--root which can configured using the following contextRoot parameter-->
+ <!--<parameter name="contextRoot">axis2</parameter>-->
+
+ <!--Our HTTP endpoints can handle both REST and SOAP. Following parameters can be used to distingiush those endpoints-->
+ <!--In case of a servlet, if you change this you have to manually change the settings of your servlet container to map this -->
+ <!--context path to proper Axis2 servlets-->
+ <!--<parameter name="servicePath">services</parameter>-->
+ <!--<parameter name="restPath">rest</parameter>-->
+
+
+ <!--Set the flag to true if you want to enable transport level session mangment-->
+ <parameter name="manageTransportSession">false</parameter>
+
+ <!--Following two parameters will be used to handle REST in Axis2. The default settings will make Axis2 to have two-->
+ <!--different endpoints, one for REST (AxisRESTServlet) one for SOAP message handling (AxisServlet). But following-->
+ <!--parameters help to tweak the message handling of two main servlets. -->
+
+ <!-- If the enableRESTInAxis2MainServlet is true, then Axis2MainServlet will handle both SOAP and REST messages -->
+ <parameter name="enableRESTInAxis2MainServlet" locked="true">false</parameter>
+
+ <!-- Following parameter will completely disable REST handling in both the servlets-->
+ <parameter name="disableREST" locked="true">false</parameter>
+
+ <!-- This will disable the separate servlet we have for REST handling. -->
+ <parameter name="disableSeparateEndpointForREST" locked="true">false</parameter>
+
+ <!-- If you have a frontend host which exposes this webservice using a different public URL -->
+ <!-- use this parameter to override autodetected url -->
+ <!--<parameter name="httpFrontendHostUrl">https://someotherhost/context</parameter>-->
+
+
+ <!-- The way of adding listener to the system-->
+ <!-- <listener class="org.apache.axis2.ObserverIMPL">-->
+ <!-- <parameter name="RSS_URL">http://127.0.0.1/rss</parameter>-->
+ <!-- </listener>-->
+
+ <!-- ================================================= -->
+ <!-- Message Receivers -->
+ <!-- ================================================= -->
+ <!--This is the Deafult Message Receiver for the system , if you want to have MessageReceivers for -->
+ <!--all the other MEP implement it and add the correct entry to here , so that you can refer from-->
+ <!--any operation -->
+ <!--Note : You can ovride this for particular service by adding the same element with your requirement-->
+ <messageReceivers>
+ <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-only"
+ class="org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver"/>
+ <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out"
+ class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
+ </messageReceivers>
+
+ <!-- ================================================= -->
+ <!-- Message Formatter -->
+ <!-- ================================================= -->
+ <!--Following content type to message formatter mapping can be used to implement support for different message -->
+ <!--formats serialization in Axis2. These message formats are expected to be resolved based on the content type. -->
+ <messageFormatters>
+ <messageFormatter contentType="application/soap+xml"
+ class="org.apache.axis2.transport.http.SOAPMessageFormatter"/>
+ <messageFormatter contentType="application/json"
+ class="org.apache.axis2.json.JSONMessageFormatter"/>
+ <messageFormatter contentType="application/json/badgerfish"
+ class="org.apache.axis2.json.JSONBadgerfishMessageFormatter"/>
+ <messageFormatter contentType="text/javascript"
+ class="org.apache.axis2.json.JSONMessageFormatter"/>
+ <messageFormatter contentType="application/x-www-form-urlencoded"
+ class="org.apache.axis2.transport.http.XFormURLEncodedFormatter"/>
+ </messageFormatters>
+
+ <!-- ================================================= -->
+ <!-- Message Builders -->
+ <!-- ================================================= -->
+ <!--Following content type to builder mapping can be used to implement support for different message -->
+ <!--formats in Axis2. These message formats are expected to be resolved based on the content type. -->
+ <messageBuilders>
+ <messageBuilder contentType="application/json"
+ class="org.apache.axis2.json.JSONOMBuilder"/>
+ <messageBuilder contentType="application/json/badgerfish"
+ class="org.apache.axis2.json.JSONBadgerfishOMBuilder"/>
+ <messageBuilder contentType="text/javascript"
+ class="org.apache.axis2.json.JSONOMBuilder"/>
+ </messageBuilders>
+
+ <!-- ================================================= -->
+ <!-- Transport Ins -->
+ <!-- ================================================= -->
+ <transportReceiver name="http"
+ class="org.apache.axis2.transport.http.SimpleHTTPServer">
+ <parameter name="port">8080</parameter>
+ <!-- Here is the complete list of supported parameters (see example settings further below):
+ port: the port to listen on (default 6060)
+ hostname: if non-null, url prefix used in reply-to endpoint references (default null)
+ originServer: value of http Server header in outgoing messages (default "Simple-Server/1.1")
+ requestTimeout: value in millis of time that requests can wait for data (default 20000)
+ requestTcpNoDelay: true to maximize performance and minimize latency (default true)
+ false to minimize bandwidth consumption by combining segments
+ requestCoreThreadPoolSize: number of threads available for request processing (unless queue fills up) (default 25)
+ requestMaxThreadPoolSize: number of threads available for request processing if queue fills us (default 150)
+ note that default queue never fills up: see HttpFactory
+ threadKeepAliveTime: time to keep threads in excess of core size alive while inactive (default 180)
+ note that no such threads can exist with default unbounded request queue
+ threadKeepAliveTimeUnit: TimeUnit of value in threadKeepAliveTime (default SECONDS) (default SECONDS)
+ -->
+ <!-- <parameter name="hostname" >http://www.myApp.com/ws</parameter> -->
+ <!-- <parameter name="originServer" >My-Server/1.1</parameter> -->
+ <!-- <parameter name="requestTimeout" >10000</parameter> -->
+ <!-- <parameter name="requestTcpNoDelay" >false</parameter> -->
+ <!-- <parameter name="requestCoreThreadPoolSize">50</parameter> -->
+ <!-- <parameter name="requestMaxThreadPoolSize" >100</parameter> -->
+ <!-- <parameter name="threadKeepAliveTime" >240000</parameter> -->
+ <!-- <parameter name="threadKeepAliveTimeUnit" >MILLISECONDS</parameter> -->
+ </transportReceiver>
+
+ <!--Uncomment if you want to have TCP transport support-->
+ <!--transportReceiver name="tcp"
+ class="org.apache.axis2.transport.tcp.TCPServer">
+ <parameter name="port">6060</parameter-->>
+ <!--If you want to give your own host address for EPR generation-->
+ <!--uncommet following paramter , and set as you required.-->
+ <!--<parameter name="hostname">tcp://myApp.com/ws</parameter>-->
+ <!-- /transportReceiver -->
+
+ <!-- ================================================= -->
+ <!-- Transport Outs -->
+ <!-- ================================================= -->
+
+ <!--Uncomment if you want to have TCP transport support-->
+ <!--
+ <transportSender name="tcp"
+ class="org.apache.axis2.transport.tcp.TCPTransportSender"/>
+ -->
+ <transportSender name="local"
+ class="org.apache.axis2.transport.local.LocalTransportSender"/>
+ <transportSender name="http"
+ class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
+ <parameter name="PROTOCOL">HTTP/1.1</parameter>
+ <parameter name="Transfer-Encoding">chunked</parameter>
+ </transportSender>
+ <transportSender name="https"
+ class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
+ <parameter name="PROTOCOL">HTTP/1.1</parameter>
+ <parameter name="Transfer-Encoding">chunked</parameter>
+ </transportSender>
+
+ <!-- ================================================= -->
+ <!-- Global Modules -->
+ <!-- ================================================= -->
+ <!-- Comment this to disable Addressing -->
+ <!--module ref="addressing"/-->
+
+ <!--Configuring module , providing parameters for modules whether they refer or not-->
+ <!--<moduleConfig name="addressing">-->
+ <!--<parameter name="addressingPara">N/A</parameter>-->
+ <!--</moduleConfig>-->
+
+ <!-- ================================================= -->
+ <!-- Phases -->
+ <!-- ================================================= -->
+ <phaseOrder type="InFlow">
+ <!-- System pre defined phases -->
+ <phase name="Transport">
+ <handler name="RequestURIBasedDispatcher"
+ class="org.apache.axis2.dispatchers.RequestURIBasedDispatcher">
+ <order phase="Transport"/>
+ </handler>
+ <handler name="SOAPActionBasedDispatcher"
+ class="org.apache.axis2.dispatchers.SOAPActionBasedDispatcher">
+ <order phase="Transport"/>
+ </handler>
+ </phase>
+ <phase name="Security"/>
+ <phase name="PreDispatch"/>
+ <phase name="Dispatch" class="org.apache.axis2.engine.DispatchPhase">
+ <handler name="AddressingBasedDispatcher"
+ class="org.apache.axis2.dispatchers.AddressingBasedDispatcher"/>
+ <handler name="RequestURIOperationDispatcher"
+ class="org.apache.axis2.dispatchers.RequestURIOperationDispatcher"/>
+
+ <handler name="SOAPMessageBodyBasedDispatcher"
+ class="org.apache.axis2.dispatchers.SOAPMessageBodyBasedDispatcher"/>
+ </phase>
+ <!-- System pre defined phases -->
+ <!-- After Postdispatch phase module author or or service author can add any phase he want -->
+ <phase name="OperationInPhase"/>
+ <phase name="soapmonitorPhase"/>
+ </phaseOrder>
+ <phaseOrder type="OutFlow">
+ <!-- user can add his own phases to this area -->
+ <phase name="soapmonitorPhase"/>
+ <phase name="OperationOutPhase"/>
+ <!--system predefined phase-->
+ <!--these phase will run irrespective of the service-->
+ <phase name="PolicyDetermination"/>
+ <phase name="MessageOut"/>
+ <phase name="Security"/>
+ </phaseOrder>
+ <phaseOrder type="InFaultFlow">
+ <phase name="PreDispatch"/>
+ <phase name="Dispatch" class="org.apache.axis2.engine.DispatchPhase">
+ <handler name="RequestURIBasedDispatcher"
+ class="org.apache.axis2.dispatchers.RequestURIBasedDispatcher"/>
+
+ <handler name="SOAPActionBasedDispatcher"
+ class="org.apache.axis2.dispatchers.SOAPActionBasedDispatcher"/>
+
+ <handler name="AddressingBasedDispatcher"
+ class="org.apache.axis2.dispatchers.AddressingBasedDispatcher"/>
+ <handler name="RequestURIOperationDispatcher"
+ class="org.apache.axis2.dispatchers.RequestURIOperationDispatcher"/>
+
+ <handler name="SOAPMessageBodyBasedDispatcher"
+ class="org.apache.axis2.dispatchers.SOAPMessageBodyBasedDispatcher"/>
+ </phase>
+ <!-- user can add his own phases to this area -->
+ <phase name="OperationInFaultPhase"/>
+ <phase name="soapmonitorPhase"/>
+ </phaseOrder>
+ <phaseOrder type="OutFaultFlow">
+ <!-- user can add his own phases to this area -->
+ <phase name="soapmonitorPhase"/>
+ <phase name="OperationOutFaultPhase"/>
+ <phase name="PolicyDetermination"/>
+ <phase name="MessageOut"/>
+ </phaseOrder>
+</axisconfig>
+
Added: incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/yahoojsonsearch/src/sample/yahooservices/JSONSearch/JSONSearchClient.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/yahoojsonsearch/src/sample/yahooservices/JSONSearch/JSONSearchClient.java?rev=1145356&view=auto
==============================================================================
--- incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/yahoojsonsearch/src/sample/yahooservices/JSONSearch/JSONSearchClient.java (added)
+++ incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/yahoojsonsearch/src/sample/yahooservices/JSONSearch/JSONSearchClient.java Mon Jul 11 21:10:36 2011
@@ -0,0 +1,50 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package sample.yahooservices.JSONSearch;
+
+import javax.swing.*;
+import java.awt.*;
+
+public class JSONSearchClient extends JFrame {
+ public static int width;
+ public static int height;
+
+ public JSONSearchClient(String title) throws HeadlessException {
+ super(title);
+
+ this.getContentPane().add(new UserInterface(this));
+ this.setVisible(true);
+ }
+
+ public static void main(String[] args) {
+ Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
+ width = screenSize.width;
+ height = screenSize.height;
+ JSONSearchClient form = new JSONSearchClient("Axis2 Yahoo-JSON Search Client");
+
+
+ int left = (width) / 2;
+ int top = (height) / 2;
+ form.setLocation(left, top);
+ form.setSize(width, height);
+ form.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
+ form.setVisible(true);
+ }
+}
Added: incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/yahoojsonsearch/src/sample/yahooservices/JSONSearch/JSONSearchModel.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/yahoojsonsearch/src/sample/yahooservices/JSONSearch/JSONSearchModel.java?rev=1145356&view=auto
==============================================================================
--- incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/yahoojsonsearch/src/sample/yahooservices/JSONSearch/JSONSearchModel.java (added)
+++ incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/yahoojsonsearch/src/sample/yahooservices/JSONSearch/JSONSearchModel.java Mon Jul 11 21:10:36 2011
@@ -0,0 +1,127 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package sample.yahooservices.JSONSearch;
+
+import org.apache.axiom.om.OMAbstractFactory;
+import org.apache.axiom.om.OMElement;
+import org.apache.axiom.om.OMFactory;
+import org.apache.axis2.Constants;
+import org.apache.axis2.transport.http.HTTPConstants;
+import org.apache.axis2.context.ConfigurationContextFactory;
+import org.apache.axis2.context.ConfigurationContext;
+import org.apache.axis2.addressing.EndpointReference;
+import org.apache.axis2.client.Options;
+import org.apache.axis2.client.ServiceClient;
+
+import java.io.UnsupportedEncodingException;
+import java.io.File;
+import java.net.URLEncoder;
+import java.util.Iterator;
+
+public class JSONSearchModel {
+ /**
+ * HTML Header to desplay snippet text
+ */
+ private String beginHTML = "<HTML><HEAD><TITLE>Search Results</TITLE></HEAD><BODY>";
+
+ /**
+ * HTML footer
+ */
+ private String endHTML = "</BODY></HTML>";
+
+ /**
+ * Store the texts read by NavigationURL of soap
+ */
+ private String snippet;
+
+ public String searchYahoo(String query, String format) {
+ try {
+ snippet = beginHTML;
+ String epr = "http://api.search.yahoo.com/WebSearchService/V1/webSearch";
+ File configFile = new File("resources/axis2.xml");
+ ConfigurationContext configurationContext = ConfigurationContextFactory
+ .createConfigurationContextFromFileSystem(null, configFile
+ .getAbsolutePath());
+
+ ServiceClient client = new ServiceClient(configurationContext, null);
+ Options options = new Options();
+ client.setOptions(options);
+ options.setTo(new EndpointReference(epr));
+ options.setProperty(Constants.Configuration.MESSAGE_TYPE, HTTPConstants.MEDIA_TYPE_X_WWW_FORM);
+ options.setProperty(Constants.Configuration.HTTP_METHOD, Constants.Configuration.HTTP_METHOD_GET);
+ OMElement response = client.sendReceive(getPayloadForYahooSearchCall(query, format));
+ generateSnippet(response);
+ return snippet;
+
+ } catch (Exception e) {
+ e.printStackTrace();
+ snippet = "<H2>Error occurred during the invocation to Yahoo search service</H2>" +
+ "<p>" + e.getMessage() + "</p>" + endHTML;
+ }
+ return null;
+ }
+
+ private static OMElement getPayloadForYahooSearchCall(String queryStr, String formatStr) throws UnsupportedEncodingException {
+ OMFactory fac = OMAbstractFactory.getOMFactory();
+ OMElement rootElement = fac.createOMElement("webSearch", null);
+
+ OMElement appId = fac.createOMElement("appid", null, rootElement);
+ appId.setText("ApacheRestDemo");
+
+ OMElement query = fac.createOMElement("query", null, rootElement);
+ query.setText(URLEncoder.encode(queryStr, "UTF-8"));
+
+ OMElement outputType = fac.createOMElement("output", null, rootElement);
+ outputType.setText("json");
+
+ if (formatStr != null && formatStr.length() != 0) {
+ OMElement format = fac.createOMElement("format", null, rootElement);
+ format.setText(URLEncoder.encode(formatStr, "UTF-8"));
+ }
+ return rootElement;
+ }
+
+ private void generateSnippet(OMElement response) {
+ String title = null;
+ String summary = null;
+ String clickUrl = null;
+ String url = null;
+ OMElement result = null;
+ //get an iterator for Result elements
+ Iterator itr = response.getChildElements();
+ Iterator innerItr;
+ while (itr.hasNext()) {
+ result = (OMElement) itr.next();
+ innerItr = result.getChildElements();
+ if (innerItr.hasNext()) {
+ title = ((OMElement) innerItr.next()).getText();
+ summary = ((OMElement) innerItr.next()).getText();
+ url = ((OMElement) innerItr.next()).getText();
+ clickUrl = ((OMElement) innerItr.next()).getText();
+ if (title != null) {
+ snippet += "<a href=" + clickUrl + ">" + title + "</a>" + "<br>" + summary +
+ "<br>" + url + "<br>" + "<br>";
+ }
+ }
+ }
+ snippet += endHTML;
+ }
+}
+
Added: incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/yahoojsonsearch/src/sample/yahooservices/JSONSearch/UserInterface.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/yahoojsonsearch/src/sample/yahooservices/JSONSearch/UserInterface.java?rev=1145356&view=auto
==============================================================================
--- incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/yahoojsonsearch/src/sample/yahooservices/JSONSearch/UserInterface.java (added)
+++ incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/yahoojsonsearch/src/sample/yahooservices/JSONSearch/UserInterface.java Mon Jul 11 21:10:36 2011
@@ -0,0 +1,135 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package sample.yahooservices.JSONSearch;
+
+import javax.swing.*;
+import javax.swing.event.HyperlinkListener;
+import javax.swing.event.HyperlinkEvent;
+import java.awt.*;
+import java.awt.event.ActionListener;
+import java.awt.event.ActionEvent;
+
+public class UserInterface extends JPanel implements HyperlinkListener {
+
+ private JEditorPane jep;
+ private JScrollPane scrollPane;
+
+ private JTextField schField;
+ private JTextField formatField;
+
+ private JButton schButton;
+ private JButton backButton;
+
+ private JLabel schLabel;
+ private JLabel formatLabel;
+
+
+ private JSONSearchModel model;
+ private JSONSearchClient parent;
+
+ private String response;
+ public UserInterface(JSONSearchClient parent) {
+ this.parent = parent;
+ model = new JSONSearchModel();
+ initComponents();
+
+ schButton.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ handleSearch();
+ }
+ });
+
+ backButton.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ handleBack();
+ }
+ });
+
+ Container pane = parent.getContentPane();
+ pane.setLayout(null);
+
+ pane.add(schLabel);
+ pane.add(schField);
+ pane.add(formatLabel);
+ pane.add(formatField);
+ pane.add(backButton);
+ pane.add(schButton);
+ pane.add(scrollPane);
+ }
+
+ public void initComponents() {
+ schLabel = new JLabel("Search for");
+ schLabel.setBounds(20, 10, 80, 25);
+ schField = new JTextField();
+ schField.setBounds(90, 10, 250, 25);
+
+ formatLabel = new JLabel("format");
+ formatLabel.setBounds(350, 10, 50, 25);
+ formatField = new JTextField();
+ formatField.setBounds(400, 10, 100, 25);
+
+ backButton = new JButton("Back to Results");
+ backButton.setBounds(670, 10, 150, 25);
+ backButton.setEnabled(false);
+
+ schButton = new JButton("Search");
+ schButton.setBounds(510, 10, 150, 25);
+
+
+ jep = new JEditorPane();
+ jep.setEditable(false);
+ jep.setContentType("text/html");
+ jep.addHyperlinkListener(this);
+
+ scrollPane = new JScrollPane(jep);
+ scrollPane.setBounds(10, 80, (JSONSearchClient.width - 30), (JSONSearchClient.height - 160));
+
+
+ }
+
+ private void handleSearch(){
+ String query = schField.getText();
+
+ if(!query.equals("")){
+ response = model.searchYahoo(query, formatField.getText());
+ jep.setText(response);
+ }
+ }
+
+ private void handleBack(){
+ jep.setText(response);
+ backButton.setEnabled(false);
+ }
+
+ public void hyperlinkUpdate(HyperlinkEvent he) {
+ if (he.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {
+ try {
+ jep.setPage(he.getURL());
+ backButton.setEnabled(true);
+ }
+ catch (Exception e) {
+ JOptionPane.showMessageDialog(parent, "Page could not be loaded",
+ "Page Error", JOptionPane.ERROR_MESSAGE);
+ }
+ }
+
+ }
+}
+
Added: incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/yahoorestsearch/README.txt
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/yahoorestsearch/README.txt?rev=1145356&view=auto
==============================================================================
--- incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/yahoorestsearch/README.txt (added)
+++ incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/yahoorestsearch/README.txt Mon Jul 11 21:10:36 2011
@@ -0,0 +1,25 @@
+Sample for Yahoo - Search - REST
+=================================
+
+Introduction
+============
+
+Axis2 client API has facilities to invoke REST interfaces. The API to be used is almost the same
+as the one we use while invoking with REST.
+
+Yahoo provides a REST API to call its search service. This sample demonstrates how to call Yahoo
+search service using an Axis2 client.
+
+Pre-Requisites
+==============
+
+Apache Ant 1.6.2 or later
+
+Running The Sample
+==================
+
+Type "ant" from Axis2_HOME/samples/yahoorestsearch directory.
+
+Help
+====
+Please contact axis-user list (axis-user@ws.apache.org) if you have any trouble running the sample.
Added: incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/yahoorestsearch/build.xml
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/yahoorestsearch/build.xml?rev=1145356&view=auto
==============================================================================
--- incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/yahoorestsearch/build.xml (added)
+++ incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/yahoorestsearch/build.xml Mon Jul 11 21:10:36 2011
@@ -0,0 +1,51 @@
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one
+ ~ or more contributor license agreements. See the NOTICE file
+ ~ distributed with this work for additional information
+ ~ regarding copyright ownership. The ASF licenses this file
+ ~ to you under the Apache License, Version 2.0 (the
+ ~ "License"); you may not use this file except in compliance
+ ~ with the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing,
+ ~ software distributed under the License is distributed on an
+ ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ ~ KIND, either express or implied. See the License for the
+ ~ specific language governing permissions and limitations
+ ~ under the License.
+ -->
+
+<project name="YahooRestSearchSample" default="run.client">
+ <property environment="env" />
+ <property name="axis2.home" value="../../" />
+ <property name="axis2.repo" value="${axis2.home}/repository" />
+ <property name="build.dir" value="build" />
+ <property name="client.classes.dir" value="${build.dir}/classes" />
+ <path id="axis.classpath">
+ <fileset dir="${axis2.home}/lib">
+ <include name="*.jar" />
+ </fileset>
+ <pathelement location="build/yahooRESTSearch.jar" />
+ </path>
+
+ <target name="compile">
+ <mkdir dir="${client.classes.dir}" />
+ <!-- Compile client -->
+ <javac srcdir="src" destdir="${client.classes.dir}">
+ <classpath refid="axis.classpath" />
+ </javac>
+ <jar destfile="${build.dir}/yahooRESTSearch.jar">
+ <fileset dir="${build.dir}/classes" />
+ </jar>
+ </target>
+ <target name="run.client" depends="compile">
+ <java classname="sample.yahooservices.RESTSearch.RESTSearchClient" classpathref="axis.classpath" fork="true">
+ <jvmarg value="-Daxis2.repo=${axis2.repo}" />
+ </java>
+ </target>
+ <target name="clean">
+ <delete dir="build" />
+ </target>
+</project>
Added: incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/yahoorestsearch/src/sample/yahooservices/RESTSearch/RESTSearchClient.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/yahoorestsearch/src/sample/yahooservices/RESTSearch/RESTSearchClient.java?rev=1145356&view=auto
==============================================================================
--- incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/yahoorestsearch/src/sample/yahooservices/RESTSearch/RESTSearchClient.java (added)
+++ incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/yahoorestsearch/src/sample/yahooservices/RESTSearch/RESTSearchClient.java Mon Jul 11 21:10:36 2011
@@ -0,0 +1,49 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package sample.yahooservices.RESTSearch;
+
+import javax.swing.*;
+import java.awt.*;
+
+public class RESTSearchClient extends JFrame {
+ public static int width;
+ public static int height;
+
+ public RESTSearchClient(String title) throws HeadlessException {
+ super(title);
+
+ this.getContentPane().add(new UserInterface(this));
+ this.setVisible(true);
+ }
+
+ public static void main(String[] args) {
+ Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
+ width = screenSize.width;
+ height = screenSize.height;
+ RESTSearchClient form = new RESTSearchClient("Axis2 REST Search Client");
+
+ int left = (width) / 2;
+ int top = (height) / 2;
+ form.setLocation(left, top);
+ form.setSize(width, height);
+ form.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
+ form.setVisible(true);
+ }
+}
Added: incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/yahoorestsearch/src/sample/yahooservices/RESTSearch/RESTSearchModel.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/yahoorestsearch/src/sample/yahooservices/RESTSearch/RESTSearchModel.java?rev=1145356&view=auto
==============================================================================
--- incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/yahoorestsearch/src/sample/yahooservices/RESTSearch/RESTSearchModel.java (added)
+++ incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/yahoorestsearch/src/sample/yahooservices/RESTSearch/RESTSearchModel.java Mon Jul 11 21:10:36 2011
@@ -0,0 +1,115 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package sample.yahooservices.RESTSearch;
+
+import org.apache.axiom.om.OMAbstractFactory;
+import org.apache.axiom.om.OMElement;
+import org.apache.axiom.om.OMFactory;
+import org.apache.axis2.Constants;
+import org.apache.axis2.addressing.EndpointReference;
+import org.apache.axis2.client.Options;
+import org.apache.axis2.client.ServiceClient;
+
+import java.io.UnsupportedEncodingException;
+import java.net.URLEncoder;
+import java.util.Iterator;
+
+public class RESTSearchModel {
+ /**
+ * HTML Header to desplay snippet text
+ */
+ private String beginHTML = "<HTML><HEAD><TITLE>Search Results</TITLE></HEAD><BODY>";
+
+ /**
+ * HTML footer
+ */
+ private String endHTML = "</BODY></HTML>";
+
+ /**
+ * Store the texts read by NavigationURL of soap
+ */
+ private String snippet;
+
+ public String searchYahoo(String query, String format) {
+ try {
+ snippet = beginHTML;
+ String epr = "http://search.yahooapis.com/WebSearchService/V1/webSearch";
+
+ ServiceClient client = new ServiceClient();
+ Options options = new Options();
+ client.setOptions(options);
+ options.setTo(new EndpointReference(epr));
+ options.setProperty(Constants.Configuration.ENABLE_REST, Constants.VALUE_TRUE);
+ options.setProperty(Constants.Configuration.HTTP_METHOD, Constants.Configuration.HTTP_METHOD_GET);
+ options.setProperty(Constants.Configuration.MESSAGE_TYPE,org.apache.axis2.transport.http.HTTPConstants.MEDIA_TYPE_X_WWW_FORM);
+
+ //if post is through GET of HTTP
+ OMElement response = client.sendReceive(getPayloadForYahooSearchCall(query, format));
+ generateSnippet(response);
+ return snippet;
+
+ } catch (Exception e) {
+ e.printStackTrace();
+ snippet = "<H2>Error occurred during the invocation to Yahoo search service</H2>" +
+ "<p>" + e.getMessage() + "</p>" + endHTML;
+ }
+ return null;
+ }
+
+ private static OMElement getPayloadForYahooSearchCall(String queryStr, String formatStr) throws UnsupportedEncodingException {
+ OMFactory fac = OMAbstractFactory.getOMFactory();
+ OMElement rootElement = fac.createOMElement("webSearch", null);
+
+ OMElement appId = fac.createOMElement("appid", null, rootElement);
+ appId.setText("ApacheRestDemo");
+
+ OMElement query = fac.createOMElement("query", null, rootElement);
+ query.setText(URLEncoder.encode(queryStr, "UTF-8"));
+
+ if (formatStr != null && formatStr.length() != 0) {
+ OMElement format = fac.createOMElement("format", null, rootElement);
+ format.setText(URLEncoder.encode(formatStr, "UTF-8"));
+ }
+ return rootElement;
+ }
+
+ private void generateSnippet(OMElement response) {
+ String title = null;
+ String summary = null;
+ String clickUrl = null;
+ String url = null;
+ OMElement result = null;
+ //get an iterator for Result elements
+ Iterator itr = response.getChildElements();
+ Iterator innerItr;
+ while (itr.hasNext()) {
+ result = (OMElement) itr.next();
+ innerItr = result.getChildElements();
+ title = ((OMElement) innerItr.next()).getText();
+ summary = ((OMElement) innerItr.next()).getText();
+ url = ((OMElement) innerItr.next()).getText();
+ clickUrl = ((OMElement) innerItr.next()).getText();
+ snippet += "<a href=" + clickUrl + ">" + title + "</a>" + "<br>" + summary +
+ "<br>" + url + "<br>" + "<br>";
+ }
+ snippet += endHTML;
+ }
+}
+
Added: incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/yahoorestsearch/src/sample/yahooservices/RESTSearch/UserInterface.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/yahoorestsearch/src/sample/yahooservices/RESTSearch/UserInterface.java?rev=1145356&view=auto
==============================================================================
--- incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/yahoorestsearch/src/sample/yahooservices/RESTSearch/UserInterface.java (added)
+++ incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/samples/yahoorestsearch/src/sample/yahooservices/RESTSearch/UserInterface.java Mon Jul 11 21:10:36 2011
@@ -0,0 +1,134 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package sample.yahooservices.RESTSearch;
+
+import javax.swing.*;
+import javax.swing.event.HyperlinkListener;
+import javax.swing.event.HyperlinkEvent;
+import java.awt.*;
+import java.awt.event.ActionListener;
+import java.awt.event.ActionEvent;
+
+public class UserInterface extends JPanel implements HyperlinkListener {
+
+ private JEditorPane jep;
+ private JScrollPane scrollPane;
+
+ private JTextField schField;
+ private JTextField formatField;
+
+ private JButton schButton;
+ private JButton backButton;
+
+ private JLabel schLabel;
+ private JLabel formatLabel;
+
+
+ private RESTSearchModel model;
+ private RESTSearchClient parent;
+
+ private String response;
+ public UserInterface(RESTSearchClient parent) {
+ this.parent = parent;
+ model = new RESTSearchModel();
+ initComponents();
+
+ schButton.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ handleSearch();
+ }
+ });
+
+ backButton.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ handleBack();
+ }
+ });
+
+ Container pane = parent.getContentPane();
+ pane.setLayout(null);
+
+ pane.add(schLabel);
+ pane.add(schField);
+ pane.add(formatLabel);
+ pane.add(formatField);
+ pane.add(backButton);
+ pane.add(schButton);
+ pane.add(scrollPane);
+ }
+
+ public void initComponents() {
+ schLabel = new JLabel("Search for");
+ schLabel.setBounds(20, 10, 80, 25);
+ schField = new JTextField();
+ schField.setBounds(90, 10, 250, 25);
+
+ formatLabel = new JLabel("format");
+ formatLabel.setBounds(350, 10, 50, 25);
+ formatField = new JTextField();
+ formatField.setBounds(400, 10, 100, 25);
+
+ backButton = new JButton("Back to Results");
+ backButton.setBounds(670, 10, 150, 25);
+ backButton.setEnabled(false);
+
+ schButton = new JButton("Search");
+ schButton.setBounds(510, 10, 150, 25);
+
+
+ jep = new JEditorPane();
+ jep.setEditable(false);
+ jep.setContentType("text/html");
+ jep.addHyperlinkListener(this);
+
+ scrollPane = new JScrollPane(jep);
+ scrollPane.setBounds(10, 80, (RESTSearchClient.width - 30), (RESTSearchClient.height - 160));
+
+
+ }
+
+ private void handleSearch(){
+ String query = schField.getText();
+
+ if(!query.equals("")){
+ response = model.searchYahoo(query, formatField.getText());
+ jep.setText(response);
+ }
+ }
+
+ private void handleBack(){
+ jep.setText(response);
+ backButton.setEnabled(false);
+ }
+
+ public void hyperlinkUpdate(HyperlinkEvent he) {
+ if (he.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {
+ try {
+ jep.setPage(he.getURL());
+ backButton.setEnabled(true);
+ }
+ catch (Exception e) {
+ JOptionPane.showMessageDialog(parent, "Page could not be loaded",
+ "Page Error", JOptionPane.ERROR_MESSAGE);
+ }
+ }
+
+ }
+}
Added: incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/webapp/WEB-INF/classes/META-INF/LICENSE
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/webapp/WEB-INF/classes/META-INF/LICENSE?rev=1145356&view=auto
==============================================================================
--- incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/webapp/WEB-INF/classes/META-INF/LICENSE (added)
+++ incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/webapp/WEB-INF/classes/META-INF/LICENSE Mon Jul 11 21:10:36 2011
@@ -0,0 +1,203 @@
+
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
Added: incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/webapp/WEB-INF/classes/META-INF/NOTICE
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/webapp/WEB-INF/classes/META-INF/NOTICE?rev=1145356&view=auto
==============================================================================
--- incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/webapp/WEB-INF/classes/META-INF/NOTICE (added)
+++ incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/webapp/WEB-INF/classes/META-INF/NOTICE Mon Jul 11 21:10:36 2011
@@ -0,0 +1,26 @@
+=========================================================================
+== NOTICE file corresponding to the section 4 d of ==
+== the Apache License, Version 2.0, ==
+== in this case for the Apache Axis2 distribution. ==
+=========================================================================
+
+This product includes software developed by
+The Apache Software Foundation (http://www.apache.org/).
+Portions Copyright 2006 International Business Machines Corp.
+Portions Copyright 2005-2007 WSO2, Inc.
+
+This product also includes schemas and specification developed by:
+- the W3C consortium (http://www.w3c.org)
+
+This product also includes WS-* schemas developed by International
+Business Machines Corporation, Microsoft Corporation, BEA Systems,
+TIBCO Software, SAP AG, Sonic Software, and VeriSign
+
+This product also includes a WSDL developed by salesforce.com
+- Copyright 1999-2006 salesforce.com, inc.
+
+Portions of the included xmlbeans library were originally based on the following:
+- software copyright (c) 2000-2003, BEA Systems, <http://www.bea.com/>.
+
+Please read the different LICENSE files present in the lib directory of
+this distribution.
Added: incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/webapp/WEB-INF/classes/commons-logging.properties
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/webapp/WEB-INF/classes/commons-logging.properties?rev=1145356&view=auto
==============================================================================
--- incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/webapp/WEB-INF/classes/commons-logging.properties (added)
+++ incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/webapp/WEB-INF/classes/commons-logging.properties Mon Jul 11 21:10:36 2011
@@ -0,0 +1,30 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+# This is the logging properties that goes to the war, there are two logging conf kept at the
+# svn, one for developement (one at src/test-resources) and other for producation
+
+# Uncomment the next line to disable all logging.
+#org.apache.commons.logging.Log=org.apache.commons.logging.impl.NoOpLog
+
+# Uncomment the next line to enable the simple log based logging
+#org.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog
+
+# Uncomment the next line to enable log4j based logging
+org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger
Added: incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/webapp/WEB-INF/classes/log4j.properties
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/webapp/WEB-INF/classes/log4j.properties?rev=1145356&view=auto
==============================================================================
--- incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/webapp/WEB-INF/classes/log4j.properties (added)
+++ incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/webapp/WEB-INF/classes/log4j.properties Mon Jul 11 21:10:36 2011
@@ -0,0 +1,40 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+# Set root category priority to INFO and its only appender to CONSOLE.
+log4j.rootCategory=INFO, CONSOLE
+#log4j.rootCategory=INFO, CONSOLE, LOGFILE
+
+# Set the enterprise logger priority to FATAL
+log4j.logger.org.apache.axis2.enterprise=FATAL
+log4j.logger.de.hunsicker.jalopy.io=FATAL
+log4j.logger.httpclient.wire.header=FATAL
+log4j.logger.org.apache.commons.httpclient=FATAL
+
+# CONSOLE is set to be a ConsoleAppender using a PatternLayout.
+log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
+log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
+log4j.appender.CONSOLE.layout.ConversionPattern=[%p] %m%n
+
+# LOGFILE is set to be a File appender using a PatternLayout.
+log4j.appender.LOGFILE=org.apache.log4j.FileAppender
+log4j.appender.LOGFILE.File=axis2.log
+log4j.appender.LOGFILE.Append=true
+log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout
+log4j.appender.LOGFILE.layout.ConversionPattern=%d [%t] %-5p %c %x - %m%n
\ No newline at end of file
Added: incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/webapp/WEB-INF/classes/org/apache/axis2/transport/http/AxisAdminServlet.class
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/webapp/WEB-INF/classes/org/apache/axis2/transport/http/AxisAdminServlet.class?rev=1145356&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/webapp/WEB-INF/classes/org/apache/axis2/transport/http/AxisAdminServlet.class
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/webapp/WEB-INF/classes/org/apache/axis2/webapp/AdminAgent.class
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/webapp/WEB-INF/classes/org/apache/axis2/webapp/AdminAgent.class?rev=1145356&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/webapp/WEB-INF/classes/org/apache/axis2/webapp/AdminAgent.class
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/webapp/WEB-INF/classes/org/apache/axis2/webapp/AxisAdminServlet.class
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/webapp/WEB-INF/classes/org/apache/axis2/webapp/AxisAdminServlet.class?rev=1145356&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/webapp/WEB-INF/classes/org/apache/axis2/webapp/AxisAdminServlet.class
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/webapp/WEB-INF/web.xml?rev=1145356&view=auto
==============================================================================
--- incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/webapp/WEB-INF/web.xml (added)
+++ incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/webapp/WEB-INF/web.xml Mon Jul 11 21:10:36 2011
@@ -0,0 +1,109 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one
+ ~ or more contributor license agreements. See the NOTICE file
+ ~ distributed with this work for additional information
+ ~ regarding copyright ownership. The ASF licenses this file
+ ~ to you under the Apache License, Version 2.0 (the
+ ~ "License"); you may not use this file except in compliance
+ ~ with the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing,
+ ~ software distributed under the License is distributed on an
+ ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ ~ KIND, either express or implied. See the License for the
+ ~ specific language governing permissions and limitations
+ ~ under the License.
+ -->
+
+<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
+
+<web-app>
+ <display-name>Apache-Axis2</display-name>
+ <servlet>
+ <servlet-name>AxisServlet</servlet-name>
+ <display-name>Apache-Axis Servlet</display-name>
+ <servlet-class>org.apache.axis2.transport.http.AxisServlet</servlet-class>
+ <!--<init-param>-->
+ <!--<param-name>axis2.xml.path</param-name>-->
+ <!--<param-value>/WEB-INF/conf/axis2.xml</param-value>-->
+ <!--<param-name>axis2.xml.url</param-name>-->
+ <!--<param-value>http://localhost/myrepo/axis2.xml</param-value>-->
+ <!--<param-name>axis2.repository.path</param-name>-->
+ <!--<param-value>/WEB-INF</param-value>-->
+ <!--<param-name>axis2.repository.url</param-name>-->
+ <!--<param-value>http://localhost/myrepo</param-value>-->
+ <!--</init-param>-->
+ <load-on-startup>1</load-on-startup>
+ </servlet>
+ <servlet>
+ <servlet-name>AxisAdminServlet</servlet-name>
+ <display-name>Apache-Axis AxisAdmin Servlet (Web Admin)</display-name>
+ <servlet-class>
+ org.apache.axis2.webapp.AxisAdminServlet</servlet-class>
+ </servlet>
+
+ <!-- servlet>
+ <servlet-name>SOAPMonitorService</servlet-name>
+ <display-name>SOAPMonitorService</display-name>
+ <servlet-class>org.apache.axis2.soapmonitor.servlet.SOAPMonitorService</servlet-class>
+ <init-param>
+ <param-name>SOAPMonitorPort</param-name>
+ <param-value>5001</param-value>
+ </init-param>
+ <init-param>
+ <param-name>SOAPMonitorHostName</param-name>
+ <param-value>localhost</param-value>
+ </init-param>
+ <load-on-startup>1</load-on-startup>
+ </servlet -->
+
+ <servlet-mapping>
+ <servlet-name>AxisServlet</servlet-name>
+ <url-pattern>/servlet/AxisServlet</url-pattern>
+ </servlet-mapping>
+
+ <servlet-mapping>
+ <servlet-name>AxisServlet</servlet-name>
+ <url-pattern>*.jws</url-pattern>
+ </servlet-mapping>
+
+ <servlet-mapping>
+ <servlet-name>AxisServlet</servlet-name>
+ <url-pattern>/services/*</url-pattern>
+ </servlet-mapping>
+
+ <servlet-mapping>
+ <servlet-name>AxisAdminServlet</servlet-name>
+ <url-pattern>/axis2-admin/*</url-pattern>
+ </servlet-mapping>
+
+ <!-- servlet-mapping>
+ <servlet-name>SOAPMonitorService</servlet-name>
+ <url-pattern>/SOAPMonitor</url-pattern>
+ </servlet-mapping -->
+
+ <mime-mapping>
+ <extension>inc</extension>
+ <mime-type>text/plain</mime-type>
+ </mime-mapping>
+
+ <welcome-file-list>
+ <welcome-file>index.jsp</welcome-file>
+ <welcome-file>index.html</welcome-file>
+ <welcome-file>/axis2-web/index.jsp</welcome-file>
+ </welcome-file-list>
+
+ <error-page>
+ <error-code>404</error-code>
+ <location>/axis2-web/Error/error404.jsp</location>
+ </error-page>
+
+ <error-page>
+ <error-code>500</error-code>
+ <location>/axis2-web/Error/error500.jsp</location>
+ </error-page>
+</web-app>
Added: incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/webapp/axis2-web/ActivateService.jsp
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/webapp/axis2-web/ActivateService.jsp?rev=1145356&view=auto
==============================================================================
--- incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/webapp/axis2-web/ActivateService.jsp (added)
+++ incubator/airavata/trunk/ws-messaging/distribution/axis2_releases/axis2-1.6.0/webapp/axis2-web/ActivateService.jsp Mon Jul 11 21:10:36 2011
@@ -0,0 +1,82 @@
+<%--
+ ~ Licensed to the Apache Software Foundation (ASF) under one
+ ~ or more contributor license agreements. See the NOTICE file
+ ~ distributed with this work for additional information
+ ~ regarding copyright ownership. The ASF licenses this file
+ ~ to you under the Apache License, Version 2.0 (the
+ ~ "License"); you may not use this file except in compliance
+ ~ with the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing,
+ ~ software distributed under the License is distributed on an
+ ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ ~ KIND, either express or implied. See the License for the
+ ~ specific language governing permissions and limitations
+ ~ under the License.
+ --%>
+
+<%@ page import="org.apache.axis2.Constants,
+ org.apache.axis2.description.AxisService,
+ java.util.Collection,
+ java.util.HashMap,
+ java.util.Iterator"%>
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+<jsp:include page="include/adminheader.jsp"></jsp:include>
+<h1>Turn On Service</h1>
+<form method="get" name="serviceActivate" action="axis2-admin/activateService">
+ <table width="100%" border="0">
+<tr>
+ <td colspan="2" >
+ <p>The services that are inactive are listed below. Although you can activate the services from this page, once system is restarted the services will be inactive again</p>
+ </td>
+ </tr>
+ <tr>
+ <%
+HashMap services = (HashMap)request.getSession().getAttribute(Constants.SERVICE_MAP);
+Collection col = services.values();
+String html = "";
+int count = 0;
+
+for (Iterator iterator = col.iterator(); iterator.hasNext();) {
+ AxisService axisServices = (AxisService) iterator.next();
+ if(!axisServices.isActive()){
+ count++;
+ html += "<option value='" + axisServices.getName() + "'>";
+ html += axisServices.getName() + "</option>";
+ }
+}
+request.getSession().setAttribute(Constants.SERVICE_MAP,null);
+if (count > 0) {
+%>
+
+ <td width="20%"> Select Service : </td>
+ <td width="80%">
+ <select name="axisService" class="selectBoxes">
+ <%=html%>
+ </select>
+ </tr>
+ <tr>
+ <td width="20%">Activate Service </td>
+ <td width="80%"><input type="checkbox" name="turnon">
+ </td>
+ </tr>
+ <tr>
+ <td> </td>
+ <td>
+ <input name="submit" type="submit" value=" Activate " >
+ <input name="reset" type="reset" value=" Clear " >
+ </td>
+<%
+} else {
+ %>
+ <td colspan="2">No inactive services present.</td>
+ <%
+}
+%>
+ </tr>
+
+</table>
+</form>
+<jsp:include page="include/adminfooter.inc"></jsp:include>