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

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

public class SOAPCaller
extends java.lang.Object

An external web service dispatcher. This dispatcher send the JBI message to an external web service. The service URL is specified in the PEtALS extensions.

Author:
chamerling - eBM WebSourcing

Field Summary
 java.util.logging.Logger logger
           
 SoapComponentContext soapContext
           
 
Constructor Summary
SOAPCaller(SoapComponentContext soapContext, java.util.logging.Logger logger)
          Creates a new instance of SOAPCaller
 
Method Summary
protected static org.apache.axiom.om.OMElement buildOMElementFromSource(javax.xml.transform.Source body, javax.xml.namespace.QName operation, org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
          Build the OMElement from the Source.
 void call(org.ow2.petals.component.framework.api.message.Exchange exchange, org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions cdkExtensions, org.ow2.petals.component.framework.jbidescriptor.generated.Provides provides)
           
protected static org.apache.axiom.om.OMElement createSOAPBodyContent(javax.jbi.messaging.NormalizedMessage nm, javax.xml.namespace.QName operation, PetalsServiceClient client, org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
          Create the SOAPBody content.
protected  boolean isFilteredValue(java.lang.String propertyName, java.util.List<java.lang.String> filters)
           
protected  void updateClient(PetalsServiceClient client, Addressing addressing, org.ow2.petals.component.framework.api.message.Exchange exchange)
          Update the client properties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

soapContext

public SoapComponentContext soapContext

logger

public java.util.logging.Logger logger
Constructor Detail

SOAPCaller

public SOAPCaller(SoapComponentContext soapContext,
                  java.util.logging.Logger logger)
Creates a new instance of SOAPCaller

Parameters:
soapContext -
logger -
Method Detail

buildOMElementFromSource

protected static org.apache.axiom.om.OMElement buildOMElementFromSource(javax.xml.transform.Source body,
                                                                        javax.xml.namespace.QName operation,
                                                                        org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
                                                                 throws javax.xml.stream.XMLStreamException
Build the OMElement from the Source. The SOAP operation is added as root element if it is configured in the petals extensions.

Parameters:
body -
operation -
extensions -
Returns:
Throws:
javax.xml.stream.XMLStreamException

createSOAPBodyContent

protected static org.apache.axiom.om.OMElement createSOAPBodyContent(javax.jbi.messaging.NormalizedMessage nm,
                                                                     javax.xml.namespace.QName operation,
                                                                     PetalsServiceClient client,
                                                                     org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions extensions)
                                                              throws javax.xml.stream.XMLStreamException,
                                                                     java.io.UnsupportedEncodingException
Create the SOAPBody content. The JBI content is used as root element. All the JBI attachments are added as root element children.

Parameters:
body -
Returns:
the soap body content or null if NormalizedMessage is empty.
Throws:
javax.xml.stream.XMLStreamException
java.io.UnsupportedEncodingException

call

public void call(org.ow2.petals.component.framework.api.message.Exchange exchange,
                 org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions cdkExtensions,
                 org.ow2.petals.component.framework.jbidescriptor.generated.Provides provides)

isFilteredValue

protected boolean isFilteredValue(java.lang.String propertyName,
                                  java.util.List<java.lang.String> filters)
Parameters:
propertyName -
filters -
Returns:

updateClient

protected void updateClient(PetalsServiceClient client,
                            Addressing addressing,
                            org.ow2.petals.component.framework.api.message.Exchange exchange)
Update the client properties

Parameters:
client -
addressing -


Copyright © 2005-2011 Petals Link (EBM Websourcing). All Rights Reserved.