The Error I am getting is :

2009-10-20 00:33:50,308 [10.9.4.40-Florin-9Aug2009] [SynapseWorker-1] ERROR
ClientUtils The system cannot infer the transport information from the
/services/Event URL.
2009-10-20 00:33:50,312 [10.9.4.40-Florin-9Aug2009] [SynapseWorker-1] ERROR
Axis2Sender Unexpected error during sending message out
org.apache.axis2.AxisFault: The system cannot infer the transport
information from the /services/Event URL.

which I don't get if I set the "to" attribute on the target element.
<endpoint xmlns="http://ws.apache.org/ns/synapse";>
    <address uri="http://192.168.88.1:8080/EventService/services/Event"/>
</endpoint>
<!--
  ~  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.
  -->
<!-- A simple Synapse configuration -->
<definitions xmlns="http://ws.apache.org/ns/synapse";>

    <registry provider="org.apache.synapse.registry.url.SimpleURLRegistry">
		<parameter name="root">file:repository/conf/resources/</parameter>
		<!-- The cacheableDuration parameter means that the registry will update itself every 15 seconds if neccesary -->
		<parameter name="cachableDuration">15000</parameter>
    </registry> 
    <in>
        <!-- Log all messages passing through -->
        <log level="full"/>
        
        <!-- ensure that the default configuration only sends if it is one of samples -->
        <!-- Otherwise Synapse would be an open proxy by default (BAD!)               -->
        <!--<filter source="get-property('To')" regex="http://192.168.239.128:9000.*";>-->
            <!-- Send the messages where they have been sent (i.e. implicit "To" EPR) -->
            <!--<send/>-->
        <!--</filter>-->
		
		<filter source="get-property('To')" regex=".*/Event.*">
			<clone continueParent="true">	
				<!--<target to="http://192.168.88.1:8080/EventService/services/Event/";>-->
				<target endpoint="endpoint/monitor_dynamic_endpoint.xml">
				<!--<target>-->
					<sequence>
						<property action="set" name="service-port" value="8080"/>
						<!--<class name="JavaMediator"/>-->
						<!-- The following filter sequence is stopped and moved to a central host -->
						<!--<sequence key="localSequence"/>-->
						<sequence key="sequence/main_dynamic_seq.xml"/>
						<!--<send/>-->
					</sequence>
					
					<!-- The endpoint for the clone mediator isn't needed apparently -->
					
					
					<!--<endpoint>
						<address uri="http://192.168.239.1:8080/EventService/services/Event"/>
					</endpoint>-->
					<!--<send/>-->
					<!--<outsequence>
						<class name="JavaMediator"/>
						<send/>
					</outsequence>-->
				</target>
				
			</clone>
				 <!-- To distinguish the local ISM response from other service responses
					  we set the "service-port" property  -->
			<property action="set" name="service-port" value="9000"/>
			<send>
			<!-- Send nu poate trimite decat unui singur endpoint 
				 in cazul de fata trimite doar primului endpoint intalnit, 
				 de aceea s-a folosit mediatorul "clone" mai sus  -->
				 
				 
				<!-- The second Endpoint : The local pvServer ISM -->
				<!--<endpoint>
					<address uri="http://192.168.88.129:9000/services/Event"/>
				</endpoint>-->
				<endpoint key="endpoint/ism_dynamic_endpoint.xml"/>
				
			</send>
			<drop/>
			
		</filter>
    </in>
    <out>
		<log level="full"/>
		
		<!-- None of these previous filters seemed to do the job, 
			 but the last one seems to work just fine, "if something ain't broke..." -->
			 
		<!--<filter source="get-property('Direction')" regex=".*request.*">
			<send/>
		</filter>-->
		<!--<filter source="get-property('service-port')" regex=".*9000.*">
			<filter source="get-property('Direction')" regex=".*response.*">
				<send/>
			</filter>
			<send/>
		</filter>-->
		<!--<filter source="get-property('direction')" regex=".*response.*">
			<drop/>
		</filter>
		<send/>-->
		
		<filter source="get-property('service-port')" regex=".*9000.*">
			<send/>
		</filter>
    </out>
	
	<!-- The fllowing filter sequences must be stored in a global registry -->
	<!--<sequence name="localSequence">
		<switch source="//Event/EventHeader/name">
			<case regex=".*SETUP_PROCESSED.*">
				<drop/>
			</case>
			<default>
				<send/>
			</default>
		</switch>
	</sequence>-->
</definitions>

Reply via email to