Would it be possible that the output of the transformer, when placed after
the first Saaj BC, would be empty ?

Cheers,
Guillaume Nodet

On 6/12/06, markpittsnh < [EMAIL PROTECTED]> wrote:


My first attempt was an old build. The information below reflects my
efforts
based on a build from svn trunk as of this morning - 06.12.2006.

I tried my original SM configuration file, but changed the order to have
the
transformation come first. The transformation worked. So did the
subsequent
SOAP BC, which consumed the outputted transformation. Unfortunately, my
goal
is to have the transformation occur after the first SOAP BC - this way the
result from the first SOAP BC is transformed by the transformation and
becomes the input for the second SOAP BC. When I tried this - see
configuration below I experienced the prolog error again - I am not sure
how
much of the debug log you require.

Thanks and regards,
Mark

servicemix.xml
===========

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns:sm="http://servicemix.apache.org/config/1.0 "
xmlns:eip="http://servicemix.apache.org/eip/1.0";
xmlns:test="http://servicemix.apache.org/demo/ ">

<sm:container id="jbi" rootDir="./wdir" useMBeanServer="true"
createMBeanServer="true" installationDirPath="./install"
deploymentDirPath="./deploy" dumpStats="true" statsInterval="10"
flowName="seda">
<sm:activationSpecs>
<sm:activationSpec id="httpReceiver" service="test:httpBinding"
endpoint="httpReceiver"
destinationService="test:routingSlip">
        <sm:component>
                <bean
class="org.apache.servicemix.components.http.HttpConnector">
                        <property name="host" value="localhost"/>
                        <property name="port" value="8912"/>
                </bean>
        </sm:component>
</sm:activationSpec>
<sm:activationSpec id="servicemix-eip" >
        <sm:component>
                <eip:component>
                        <eip:endpoints>
                                <eip:static-routing-slip
service="test:routingSlip" endpoint="endpoint">
                                        <eip:targets>
                                                <eip:exchange-target
service="foo:addIt2" />
                                                <eip:exchange-target
service="foo:transformer" />
                                                <eip:exchange-target
service="foo:divideIt" />
                                                <eip:exchange-target
service="test:echo"/>
                                        </eip:targets>
                                </eip:static-routing-slip>
                        </eip:endpoints>
                </eip:component>
        </sm:component>
</sm:activationSpec>
<sm:activationSpec id="echo" service="test:echo" endpoint="endpoint">
        <sm:component>
                <bean
class="org.apache.servicemix.components.util.EchoComponent"/>
        </sm:component>
</sm:activationSpec>

<!-- Route the event to a trace component that just outputs the event to
the
console -->
<sm:activationSpec componentName="trace" service="my:trace">
    <sm:component>
        <bean class="org.apache.servicemix.components.util.TraceComponent"
/>
    </sm:component>
</sm:activationSpec>


<!-- This just invokes another service -->
<sm:activationSpec componentName="divideIt"
                   service="foo:divideIt"
                   endpoint="divideIt">
  <sm:component>
    <bean class="org.apache.servicemix.components.saaj.SaajBinding">
          <property name="soapEndpoint">
              <bean class="javax.xml.messaging.URLEndpoint">
                  <constructor-arg
value="http://localhost:8081/jaxws-simpleexample/simplemethod "/>
              </bean>
          </property>
    </bean>
  </sm:component>
</sm:activationSpec>


<sm:activationSpec componentName="addIt2"
                   service="foo:addIt2"
                   endpoint="addIt2">
  <sm:component>
    <bean class="org.apache.servicemix.components.saaj.SaajBinding">
          <property name="soapEndpoint">
              <bean class="javax.xml.messaging.URLEndpoint">
                  <constructor-arg
value=" http://localhost:8081/axis2/services/MyCalc"/>
              </bean>
          </property>
    </bean>
  </sm:component>
</sm:activationSpec>


<sm:activationSpec componentName="transformer" service="foo:transformer" >

  <sm:component><bean
class="org.apache.servicemix.components.xslt.XsltComponent">
    <property name="xsltResource" value="fake_transform.xsl"/>
  </bean></sm:component>
</sm:activationSpec>


</sm:activationSpecs>
</sm:container>
</beans>


LOG
===

Let me know if you require more of the log.

15:24:41,242 | DEBUG | Thread-11  | DeliveryChannelImpl      |
.messaging.DeliveryChannelImpl  613 | Received: MessageExchange[
  id: ID:markpxpr52-3714-1150140240007-2:0
  status: Active
  role: provider
  service: addIt2
  endpoint: addIt2
  in: <?xml version=" 1.0" encoding="UTF-8"?><typ:add
xmlns:typ="http://MyCalc.server.simpleexample/types";>
         <param1>1</param1><param2>10</param2>
      </typ:add>
]
15:24:41,601 | DEBUG | Thread-11  | SaajBinding              |
ix.components.saaj.SaajBinding  101 | <soapenv:Envelope
xmlns:soapenv=" http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance";>
<soapenv:Body>
  <typ:add xmlns:typ="http://MyCalc.server.simpleexample/types";>
           <param1>1</param1>
  <param2>10</param2>

      </typ:add>
</soapenv:Body>
</soapenv:Envelope>
15:24:42,054 | DEBUG | Thread-11  | SaajMarshaler            |
.components.saaj.SaajMarshaler   65 | <?xml version="1.0"
encoding="utf-8"?><soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/
"><soapenv:Header/><soapenv:Body><ns1:result
xmlns:ns1="http://axis2/test/namespace1";
xmlns:tns=" http://MyCalc.server.simpleexample
">11</ns1:result></soapenv:Body></soapenv:Envelope>
15:24:42,054 | DEBUG | Thread-11  | SaajMarshaler            |
.components.saaj.SaajMarshaler  111 | <?xml version=" 1.0"
encoding="UTF-8"?><ns1:result xmlns:ns1="http://axis2/test/namespace1";
xmlns:soapenv=" http://schemas.xmlsoap.org/soap/envelope/";>11</ns1:result>
15:24:42,054 | DEBUG | Thread-11  | DeliveryChannelImpl      |
.messaging.DeliveryChannelImpl  404 | Send
ID:markpxpr52-3714-1150140240007-2:0 in DeliveryChannel{addIt2}
15:24:42,054 | DEBUG | Thread-11  | DeliveryChannelImpl      |
.messaging.DeliveryChannelImpl  343 | Sent: MessageExchange[
  id: ID:markpxpr52-3714-1150140240007-2:0
  status: Active
  role: provider
  service: addIt2
  endpoint: addIt2
  in: <?xml version="1.0" encoding="UTF-8"?><typ:add
xmlns:typ="http://MyCalc.server.simpleexample/types ">
         <param1>1</param1><param2>10</param2>
      </typ:add>
  out: <?xml version="1.0" encoding="UTF-8"?><ns1:result
xmlns:ns1=" http://axis2/test/namespace1";
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>11</ns1:result>
]
15:24:42,070 | DEBUG | Thread-11  | SedaFlow                 |
emix.jbi.nmr.flow.AbstractFlow  115 | Called Flow send
15:24:42,070 | DEBUG | Thread-12  | SedaQueue                |
.jbi.nmr.flow.seda.SedaQueue$1  224 |
[EMAIL PROTECTED] dequeued
exchange: MessageExchange[
  id: ID:markpxpr52-3714-1150140240007-2:0
  status: Active
  role: consumer
  service: addIt2
  endpoint: addIt2
  in: <?xml version="1.0" encoding="UTF-8"?><typ:add
xmlns:typ="http://MyCalc.server.simpleexample/types";>
         <param1>1</param1><param2>10</param2>
      </typ:add>
  out: <?xml version="1.0" encoding="UTF-8"?><ns1:result
xmlns:ns1="http://axis2/test/namespace1";
xmlns:soapenv=" http://schemas.xmlsoap.org/soap/envelope/";>11</ns1:result>
]
15:24:42,070 | DEBUG | Thread-12  | DeliveryChannelImpl      |
.messaging.DeliveryChannelImpl  577 | Processing inbound exchange:
MessageExchange[
  id: ID:markpxpr52-3714-1150140240007-2:0
  status: Active
  role: consumer
  service: addIt2
  endpoint: addIt2
  in: <?xml version="1.0" encoding="UTF-8"?><typ:add
xmlns:typ="http://MyCalc.server.simpleexample/types";>
         <param1>1</param1><param2>10</param2>
      </typ:add>
  out: <?xml version="1.0" encoding="UTF-8"?><ns1:result
xmlns:ns1="http://axis2/test/namespace1";
xmlns:soapenv=" http://schemas.xmlsoap.org/soap/envelope/";>11</ns1:result>
]
15:24:42,070 | DEBUG | Thread-12  | DeliveryChannelImpl      |
.messaging.DeliveryChannelImpl  613 | Received: MessageExchange[
  id: ID:markpxpr52-3714-1150140240007-2:0
  status: Active
  role: consumer
  service: addIt2
  endpoint: addIt2
  in: <?xml version="1.0" encoding="UTF-8"?><typ:add
xmlns:typ=" http://MyCalc.server.simpleexample/types";>
         <param1>1</param1><param2>10</param2>
      </typ:add>
  out: <?xml version="1.0" encoding="UTF-8"?><ns1:result
xmlns:ns1="http://axis2/test/namespace1";
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>11</ns1:result>
]
15:24:42,070 | DEBUG | Thread-12  | EIPSpringComponent       |
emix.common.AsyncBaseLifeCycle  376 | Received exchange: status: Active,
role: Consumer
15:24:42,070 | DEBUG | Thread-12  | MemoryStore              |
cemix.store.memory.MemoryStore   50 | Storing object with id:
ID:markpxpr52-3714-1150140240007-2:0
15:24:42,070 | DEBUG | Thread-12  | DeliveryChannelImpl      |
.messaging.DeliveryChannelImpl  404 | Send
ID:markpxpr52-3714-1150140240007-2:1 in DeliveryChannel{servicemix-eip}
15:24:42,085 | DEBUG | Thread-12  | DeliveryChannelImpl      |
.messaging.DeliveryChannelImpl  343 | Sent: MessageExchange[
  id: ID:markpxpr52-3714-1150140240007-2:1
  status: Active
  role: consumer
  service: transformer
  in: <?xml version="1.0" encoding="UTF-8"?><ns1:result
xmlns:ns1="http://axis2/test/namespace1 "
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>11</ns1:result>
]
15:24:42,085 | DEBUG | Thread-12  | DefaultBroker            |
rvicemix.jbi.nmr.DefaultBroker  390 | Routing exchange MessageExchange[
  id: ID:markpxpr52-3714-1150140240007-2:1
  status: Active
  role: provider
  service: transformer
  endpoint: transformer
  in: <?xml version=" 1.0" encoding="UTF-8"?><ns1:result
xmlns:ns1="http://axis2/test/namespace1";
xmlns:soapenv=" http://schemas.xmlsoap.org/soap/envelope/";>11</ns1:result>
] to: ServiceEndpoint[service=transformer,endpoint=transformer]
15:24:42,085 | DEBUG | Thread-12  | SedaFlow                 |
emix.jbi.nmr.flow.AbstractFlow   115 | Called Flow send
15:24:42,101 | DEBUG | Thread-14  | SedaQueue                |
.jbi.nmr.flow.seda.SedaQueue$1  224 |
[EMAIL PROTECTED] dequeued
exchange: MessageExchange[
  id: ID:markpxpr52-3714-1150140240007-2:1
  status: Active
  role: provider
  service: transformer
  endpoint: transformer
  in: <?xml version="1.0" encoding="UTF-8"?><ns1:result
xmlns:ns1="http://axis2/test/namespace1";
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>11</ns1:result>
]
15:24:42,101 | DEBUG | Thread-14  | DeliveryChannelImpl      |
.messaging.DeliveryChannelImpl  577 | Processing inbound exchange:
MessageExchange[
  id: ID:markpxpr52-3714-1150140240007-2:1
  status: Active
  role: provider
  service: transformer
  endpoint: transformer
  in: <?xml version="1.0" encoding="UTF-8"?><ns1:result
xmlns:ns1="http://axis2/test/namespace1 "
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>11</ns1:result>
]
15:24:42,101 | DEBUG | Thread-14  | DeliveryChannelImpl      |
.messaging.DeliveryChannelImpl  613 | Received: MessageExchange[
  id: ID:markpxpr52-3714-1150140240007-2:1
  status: Active
  role: provider
  service: transformer
  endpoint: transformer
  in: <?xml version=" 1.0" encoding="UTF-8"?><ns1:result
xmlns:ns1="http://axis2/test/namespace1";
xmlns:soapenv=" http://schemas.xmlsoap.org/soap/envelope/";>11</ns1:result>
]
15:24:42,460 | DEBUG | Thread-14  | DeliveryChannelImpl      |
.messaging.DeliveryChannelImpl  404 | Send
ID:markpxpr52-3714-1150140240007-2:1 in DeliveryChannel{transformer}
15:24:42,507 | DEBUG | Thread-14  | MessageExchangeImpl      |
.messaging.MessageExchangeImpl  742 | Error caught in toString
org.xml.sax.SAXParseException: Content is not allowed in prolog.
        at org.apache.xerces.parsers.DOMParser.parse (Unknown Source)
        at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown
Source)
        at
org.apache.servicemix.jbi.jaxp.SourceTransformer.toDOMSourceFromStream(
SourceTransformer.java:226)
        at
org.apache.servicemix.jbi.jaxp.SourceTransformer.toDOMSource(
SourceTransformer.java:138)
        at
org.apache.servicemix.jbi.jaxp.SourceTransformer.toDOMNode(
SourceTransformer.java:280)
        at
org.apache.servicemix.jbi.messaging.MessageExchangeImpl.toString (
MessageExchangeImpl.java:709)
        at java.lang.String.valueOf(String.java:2577)
        at java.lang.StringBuffer.append(StringBuffer.java:220)
        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.doSend (
DeliveryChannelImpl.java:343)
        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.send(
DeliveryChannelImpl.java:410)
        at

org.apache.servicemix.components.util.TransformComponentSupport.onMessageExchange(
TransformComponentSupport.java:61)
        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(
DeliveryChannelImpl.java:619)
        at
org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting (
AbstractFlow.java:168)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java
:175)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java
:226)
        at
org.apache.geronimo.connector.work.WorkerContext.run(WorkerContext.java
:291)
        at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run
(Unknown
Source)
        at java.lang.Thread.run(Thread.java:595)
15:24:42,507 | DEBUG | Thread-14  | DeliveryChannelImpl      |
.messaging.DeliveryChannelImpl  343 | Sent: null
15:24:42,507 | DEBUG | Thread-14  | SedaFlow                 |
emix.jbi.nmr.flow.AbstractFlow  115 | Called Flow send
15:24:42,523 | DEBUG | Thread-15  | MessageExchangeImpl      |
.messaging.MessageExchangeImpl  742 | Error caught in toString
org.xml.sax.SAXParseException: Content is not allowed in prolog.
        at org.apache.xerces.parsers.DOMParser.parse (Unknown Source)
        at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown
Source)
        at
org.apache.servicemix.jbi.jaxp.SourceTransformer.toDOMSourceFromStream(
SourceTransformer.java:226)
        at
org.apache.servicemix.jbi.jaxp.SourceTransformer.toDOMSource(
SourceTransformer.java:138)
        at
org.apache.servicemix.jbi.jaxp.SourceTransformer.toDOMNode(
SourceTransformer.java:280)
        at
org.apache.servicemix.jbi.messaging.MessageExchangeImpl.toString (
MessageExchangeImpl.java:709)
        at java.lang.String.valueOf(String.java:2577)
        at java.lang.StringBuffer.append(StringBuffer.java:220)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run (SedaQueue.java
:224)
        at
org.apache.geronimo.connector.work.WorkerContext.run(WorkerContext.java
:291)
        at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run
(Unknown
Source)
        at java.lang.Thread.run(Thread.java:595)
15:24:42,523 | DEBUG | Thread-15  | SedaQueue                |
.jbi.nmr.flow.seda.SedaQueue$1  224 |
[EMAIL PROTECTED] dequeued
exchange: null
15:24:42,523 | DEBUG | Thread-15  | MessageExchangeImpl      |
.messaging.MessageExchangeImpl  742 | Error caught in toString
org.xml.sax.SAXParseException: Content is not allowed in prolog.
        at org.apache.xerces.parsers.DOMParser.parse (Unknown Source)
        at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown
Source)
        at
org.apache.servicemix.jbi.jaxp.SourceTransformer.toDOMSourceFromStream(
SourceTransformer.java:226)
        at
org.apache.servicemix.jbi.jaxp.SourceTransformer.toDOMSource(
SourceTransformer.java:138)
        at
org.apache.servicemix.jbi.jaxp.SourceTransformer.toDOMNode(
SourceTransformer.java:280)
        at
org.apache.servicemix.jbi.messaging.MessageExchangeImpl.toString (
MessageExchangeImpl.java:709)
        at java.lang.String.valueOf(String.java:2577)
        at java.lang.StringBuffer.append(StringBuffer.java:220)
        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound (
DeliveryChannelImpl.java:577)
        at
org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(
AbstractFlow.java:168)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:175)

        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java
:226)
        at
org.apache.geronimo.connector.work.WorkerContext.run(WorkerContext.java
:291)
        at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown
Source)
        at java.lang.Thread.run(Thread.java:595)
15:24:42,539 | DEBUG | Thread-15  | DeliveryChannelImpl      |
.messaging.DeliveryChannelImpl  577 | Processing inbound exchange: null
15:24:42,539 | DEBUG | Thread-15  | MessageExchangeImpl      |
.messaging.MessageExchangeImpl  742 | Error caught in toString
org.xml.sax.SAXParseException: Content is not allowed in prolog.
        at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
        at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown
Source)
        at
org.apache.servicemix.jbi.jaxp.SourceTransformer.toDOMSourceFromStream(
SourceTransformer.java:226)
        at
org.apache.servicemix.jbi.jaxp.SourceTransformer.toDOMSource (
SourceTransformer.java:138)
        at
org.apache.servicemix.jbi.jaxp.SourceTransformer.toDOMNode(
SourceTransformer.java:280)
        at
org.apache.servicemix.jbi.messaging.MessageExchangeImpl.toString(
MessageExchangeImpl.java :709)
        at java.lang.String.valueOf(String.java:2577)
        at java.lang.StringBuffer.append(StringBuffer.java:220)
        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(
DeliveryChannelImpl.java :613)
        at
org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(
AbstractFlow.java:168)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java
:175)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run (SedaQueue.java
:226)
        at
org.apache.geronimo.connector.work.WorkerContext.run(WorkerContext.java
:291)
        at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run
(Unknown
Source)
        at java.lang.Thread.run(Thread.java:595)

--
View this message in context:
http://www.nabble.com/xslt-and-routing-t1775037.html#a4834774
Sent from the ServiceMix - User forum at Nabble.com.


Reply via email to