One common problem is when the service / endpoint / targetService names do not match each other and with the wsdl ones. On the provider, the service name / endpoint must match the ones in the wsdl. You can also enable DEBUG logging and see it something is written at deployment time.
On 1/12/07, pascale4 <[EMAIL PROTECTED]> wrote:
Thanks for reply. Target endpoint expose a WSDL at url http://localhost:8080/helloworldws/services/HelloWorldService?wsdl And this is the jbi.xml of SA : <service-unit> <identification> <name>http-su-provider</name> <description>Http BC provider</description> </identification> <target> <artifacts-zip>http-su-provider.zip</artifacts-zip> <component-name>servicemix-http</component-name> </target> </service-unit> <service-unit> <identification> <name>http-su-consumer</name> <description>Http BC consumer</description> </identification> <target> <artifacts-zip>http-su-consumer.zip</artifacts-zip> <component-name>servicemix-http</component-name> </target> </service-unit> Then I think provider is deployed before consumer. Or not? Then, why http://localhost:8192/services/HelloWorldService?wsdl doesn't works? Thanks a lot Massimo gnodet wrote: > > For the http://localhost:8192/services/HelloWorldService?wsdl url > to display the wsdl, the servicemix-http needs to create / retrieve > a wsdl. This can be done by: > * using the wsdlResource attribute > * if the target endpoint exposes a WSDL, it will be used > note that the target endpoint must be activated before this endpoint > > On 1/12/07, pascale4 <[EMAIL PROTECTED]> wrote: >> >> Hi, >> I exposed an external web service with http component >> (consumer-->provider). >> >> This is the xbean.xml of provider >> >> <http:endpoint >> service="ns1:HelloWorldServiceService" >> endpoint="helloWorldServiceServiceEP" >> role="provider" >> >> locationURI="http://localhost:8080/helloworldws/services/HelloWorldService" >> >> wsdlResource="http://localhost:8080/helloworldws/services/HelloWorldService?wsdl" >> /> >> >> and this is xbean.xml of consumer >> >> <http:endpoint >> service="ns1:HelloWorldServiceServiceConsumer" >> endpoint="helloWorldServiceServiceEP" >> role="consumer" >> targetService="ns1:HelloWorldServiceService" >> locationURI="http://localhost:8192/services/HelloWorldService/" >> defaultMep="http://www.w3.org/2004/08/wsdl/in-out" >> /> >> >> I modified client.html of wsd-first example to send a message, and I >> receive >> correctly the response. >> >> How can I invoke external web service through an application client? How >> can >> I generate stub? >> >> The link http://localhost:8192/services/HelloWorldService?wsdl doesn't >> works. >> >> Sorry, but I'm new to service mix. >> >> Thanks a lot >> Massimo >> -- >> View this message in context: >> http://www.nabble.com/Accessing-web-service-through-client-stub-tf2965411s12049.html#a8296708 >> Sent from the ServiceMix - User mailing list archive at Nabble.com. >> >> > > > -- > Cheers, > Guillaume Nodet > ------------------------ > Architect, LogicBlaze (http://www.logicblaze.com/) > Blog: http://gnodet.blogspot.com/ > > -- View this message in context: http://www.nabble.com/Accessing-web-service-through-client-stub-tf2965411s12049.html#a8297883 Sent from the ServiceMix - User mailing list archive at Nabble.com.
-- Cheers, Guillaume Nodet ------------------------ Architect, LogicBlaze (http://www.logicblaze.com/) Blog: http://gnodet.blogspot.com/
