org.ow2.petals.binding.soap.listener.outgoing
Class Axis2Utils

java.lang.Object
  extended by org.ow2.petals.binding.soap.listener.outgoing.Axis2Utils

public class Axis2Utils
extends java.lang.Object

Author:
chamerling - eBM WebSourcing

Method Summary
static org.apache.axis2.client.ServiceClient createServiceClient(java.net.URI mep, javax.xml.namespace.QName operation)
          Create a ServiceClient with an AxisService set with the good operation
static org.apache.neethi.Policy loadPolicy(java.io.File path, java.util.logging.Logger logger)
          Load the policy from the SU configuration files.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createServiceClient

public static org.apache.axis2.client.ServiceClient createServiceClient(java.net.URI mep,
                                                                        javax.xml.namespace.QName operation)
                                                                 throws javax.jbi.messaging.MessagingException
Create a ServiceClient with an AxisService set with the good operation

Parameters:
mep - the message exchange pattern used. Non null
operation - the target operation QName. Non null
Returns:
a ServiceClient. Not null.
Throws:
HandlingException
javax.jbi.messaging.MessagingException

loadPolicy

public static org.apache.neethi.Policy loadPolicy(java.io.File path,
                                                  java.util.logging.Logger logger)
Load the policy from the SU configuration files.

Parameters:
extensions -
Returns:
null if no policy has been found or the policy loaded from the policy.xml file


Copyright © 2005-2010 OW2 Consortium. All Rights Reserved.