Hi,
I have a SCA java service which exposes a method and I am trying to use
JMS binding.
My composite file looks like this
<dbsdo:import.sdo
factory="com.siemens.hintegration.sdo.MotionReactorFactory" />
<component name="MotionReactorServiceComponent">
<implementation.java
class="com.siemens.hintegration.MotionReactorImpl" />
<service name="MotionReactorService">
<interface.wsdl
interface="http://com.siemens.hintegration#wsdl.interface(MotionReactor)
" />
<!--interface.java
interface="com.siemens.hintegration.MotionReactorService"/-->
<!--Webservice Binding-->
<binding.ws
uri="http://localhost:8088/MotionReactorService"/>
<!--JMS Binding-->
<binding.jms
initialContextFactory="org.apache.activemq.jndi.ActiveMQInitialContextFa
ctory"
jndiURL="tcp://localhost:61616">
<destination name="activemq/queue/sendQueue"
create="always"/>
</binding.jms>
</service>
</component>
The java service method has the following signature
void onMotionDetected(MotionSensor motionSensor);
I have a small java application which posts messages to an ActiveMQ
queue.
I am using a TextMessage object to post the message to the queue.
The TextMessage object contains the following XML...
<soapenv:Envelope
xmlns:q0="http://com.siemens.hintegration"
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:Header>
</soapenv:Header>
<soapenv:Body>
<q0:onMotionDetected>
<q0:motionSensor>
<q0:id>1</q0:id>
<q0:name>Elevator</q0:name>
</q0:motionSensor>
</q0:onMotionDetected>
</soapenv:Body>
</soapenv:Envelope>
When the message is posted to the queue the appropriate method on the
java side is called but the argument has null values.
I tried to invoke the service through a web service explorer with the
same XML and that works fine.
Is there anything wrong with what I am doing? Any help would be greatly
appreciated.
Regards,
Altaf
Important notice:This e-mail and any attachment thereto contains corporate
proprietary information. If you have received it by mistake, please notify us
immediately by reply e-mail and delete this e-mail and its attachments from
your system. Thank You.