I am new servicemixguy.when I run wsdl-first successfully,but boss let me compile,deploy with ant .as we know,the example is used by maven, if I use the ant ,I have a test,but I failed,anyone else have the idea?thanks in advance.
in wsdl-first example,there are two xbean.xml one is <?xml version="1.0" encoding="UTF-8"?> <beans xmlns:http="http://servicemix.apache.org/http/1.0" xmlns:person="http://servicemix.apache.org/samples/wsdl-first"> <http:endpoint service="person:PersonService" endpoint="soap" role="consumer" locationURI="http://0.0.0.0:8192/PersonService/" defaultMep="http://www.w3.org/2004/08/wsdl/in-out" soap="true" soapAction="getPerson"/> </beans> the other is <?xml version="1.0" encoding="UTF-8"?> <beans xmlns:jsr181="http://servicemix.apache.org/jsr181/1.0"> <jsr181:endpoint pojoClass="org.apache.servicemix.samples.wsdl_first.PersonImpl" wsdlResource="classpath:person.wsdl" style="document" /> </beans> now I write the servicemix.xml <beans xmlns:sm="http://servicemix.apache.org/config/1.0" xmlns:person="http://servicemix.apache.org/samples/wsdl-first"> <classpath> <location>.</location> <location>./components/servicemix-http-3.1-incubating-installer.zip</location> <location>./components/servicemix-jsr181-3.1-incubating-installer.zip</location> </classpath> <sm:serviceunit id="jbi"> <sm:activationSpecs> <!-- In/out binding --> <sm:activationSpec componentName="loanBrokerJmsBinding" destinationService="person:MRSBroker"> <sm:component> <http:component> <http:endpoints> <http:endpoint service="person:PersonService" endpoint="soap" role="consumer" locationURI="http://0.0.0.0:8192/PersonService/" defaultMep="http://www.w3.org/2004/08/wsdl/in-out" soap="true" soapAction="getPerson"> </http:endpoint> </http:endpoints> </http:component> </sm:component> </sm:activationSpec> <sm:component> <jsr181:components> <jsr181:component> <jsr181:endpoint pojoClass="org.apache.servicemix.samples.wsdl_first.PersonImpl" wsdlResource="classpath:person.wsdl" style="document" /> </jsr181:component> </jsr181:components> </sm:component> </sm:activationSpec> </sm:activationSpecs> </sm:serviceunit> <bean id="jmsFactory" class="org.apache.activemq.pool.PooledConnectionFactory"> <property name="connectionFactory"> <bean class="org.apache.activemq.ActiveMQConnectionFactory"> <property name="brokerURL" value="tcp://localhost:61616" /> </bean> </property> </bean> </beans> but it can't works,error message: caused by: org.xml.sax.SAXParseException: The prefix "http" for element "http:component" is not bound. -- View this message in context: http://www.nabble.com/wsdl-first--does%27t--work--by-ant-instead-of-maven-tf3359908s12049.html#a9346153 Sent from the ServiceMix - User mailing list archive at Nabble.com.
