Liav,

You can put the WSDL in the src/main/resources folder of your SU to get it packaged along with everything else. Could you ignore the warning for now an try to deploy the SU anyway? Upon deployment, you'll probably get a more detailed explanation of any errors that might exist in your SU's xbean.xml file.

Could you try to explain what you're trying to do here? If you want to proxy with the HTTP BC, you should configure a targetService/Endpoint on the consumer endpoint to allow the message to flow to the provider endpoint. Is the webservice that you are trying to process in a servicemix SU as well, because you are using the same port on the same machine?

Regards,

Gert

Liav Ezer wrote:
Hi, So far i did the following (in order to simulate a proxy via the http BC):
created 2 servicemix-http components, 1 for the provider & 1 for the
consumer. This is the provider xbean:
<beans xmlns:http="http://servicemix.apache.org/http/1.0";
xmlns:my="http://www.example.com/my";> <http:endpoint service="my:ForecastWeatherImpService" endpoint="ForecastWeatherImp" role="provider" locationURI="http://localhost:8080/remoteService/"; wsdlResource="classpath:ForecastWeatherImp.wsdl"/> </beans> This is the consumer xbean:
<beans xmlns:http="http://servicemix.apache.org/http/1.0";
xmlns:my="http://www.example.com/my";> <http:endpoint service="my:MyConsumerService" endpoint="myConsumer" role="consumer" locationURI="http://localhost:8080/Service/"; defaultMep="http://www.w3.org/2004/08/wsdl/in-out"/> </beans> & generated a SA with those two SU's as its dependencies.
Two questions please:
1. Under my local tomcat installation folder i located two directories -
remoteService & Service. The wsdl to my remote service is located in the
remoteService direcftory. Should it be there?
2. I get the following error once running "mvn install" in the root
directory (in the final step before deployment): /PROXY/proxy-consumer-su/src/main/resources/xbean.xml] [WARNING] Failed to generate jbi.xml:
org.apache.servicemix.maven.plugin.jbi.JbiPluginException: Unable to
generate service unit
descriptor!org.apache.servicemix.maven.plugin.jbi.JbiPluginException: Unable
to generate service unit descriptor! It seems as if i defined something wrong in the consumer xbean file. Please advice. Thanks in advance. Liav.


  • U Liav Ezer
    • Re: U Gert Vanthienen
    • u Ryan Moquin

Reply via email to