hi, I am using jsr,bean and http su and created sa using it i am getting wsdl out of my demo service from jsr i can see endpoints created in jmx console one internal of jsr one external of http one internal of bean now i want to send exchange msg form jsr to bean what should i configure here are my files
<beans xmlns:bean="http://servicemix.apache.org/bean/1.0" xmlns:caxchange="http://caxchange.nci.nih.gov/ws"> <bean:endpoint service="caxchange:service" endpoint="endpoint" bean="#myBean"/> <bean id="myBean" class="org.apache.servicemix.caxchange.MyBean"/> </beans> <beans xmlns:http="http://servicemix.apache.org/http/1.0" xmlns:test="http://test.com/testService"> <http:endpoint service="test:TestService" endpoint="soap" role="consumer" locationURI="http://localhost:8192/test/" defaultMep="http://www.w3.org/2004/08/wsdl/in-out" soap="true" /> </beans> <beans xmlns:jsr181="http://servicemix.apache.org/jsr181/1.0"> <classpath> <location>.</location> </classpath> <jsr181:endpoint pojoClass="org.apache.servicemix.caxchange.TestService"/> </beans> package org.apache.servicemix.caxchange; import javax.jbi.JBIException; import javax.jws.WebMethod; import javax.jws.WebService; import javax.xml.namespace.QName; import org.apache.servicemix.client.ServiceMixClient; import org.apache.servicemix.client.ServiceMixClientFacade; import org.apache.servicemix.jbi.resolver.EndpointResolver; @WebService(name="TestService", targetNamespace="http://test.com/testService", portName="soap") public class TestService { private javax.jbi.component.ComponentContext context; private String workflowServiceNameSpace = "http://gov.nih.nci.caxchange/ctmsi"; @WebMethod public String sayHello(String name) { return "Hello "+name; } public void setContext(javax.jbi.component.ComponentContext context) { this.context = context; } /*public void myMethod() { ServiceMixClient client = new ServiceMixClientFacade(this.context); QName service = new QName("http://servicemix.org/cheese/", "receiver"); EndpointResolver resolver = client.createResolverForService(service); try { client.send(resolver, null, null, "<hello>Yogi</hello>"); } catch (JBIException e) { // TODO Auto-generated catch block e.printStackTrace(); } }*/ } Regards, Raj -- View this message in context: http://www.nabble.com/how-do-i-connect-jsr-enpoint-to-servicemix-endpoint-to-send-and-recerive-exchange-tf4670579s12049.html#a13342386 Sent from the ServiceMix - User mailing list archive at Nabble.com.
