On Wed, Sep 24, 2008 at 7:46 AM, manish_goyal
<[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I have a scenario in which there is two different FUSE.
> One is ESB FUSE which gets message from client and NMR of this FUSE will
> route this message to Http-Binding component. This http-binding component is
> accessing webservice which is deployed in second FUSE(Act as a container).
>
> WebService in second FUSE contain some method which will just display
> message.
>
> I have some questions here:-
> 1. Is this is possible to implement?

Sure it is.

> 2. For testing purpose how can we pass message to first FUSE (http-binding
> component )?

I guess it depends how you run your testing.  I guess you want to make
sure the client can successfully send requests to the service and
receive the response.
You could try to set up a junit test, but the environment will be a different.
More on that later.

> 3.Who will be taking care of marshaling and unmarshaling ? Do i need to
> implement this functionality manually or FUSE will take care of it?

I think it depends what kind of HTTP requests you want to send / accept.
The soap protocol (if you use it) will be handled by the binding component.
However, the binding component deals with xml, so if you want to use POJOs,
you should look at using the CXF service engine too.  The SE will be
able to convert
the XML to POJOs and the opposite usually using JAXB2.

> 4.At the webservice, What will be the message format?

Not sure what you mean.  The common use is to use a SOAP over HTTP request.
Such requests are XML bases and usually described by a WSDL.

> Detail explanation would be appreciate. :)

We can provide more details, but your questions are a bit vague.
We should first make sure we understand what you want.
One of the benefit of using an ESB is to be able to use multiple
protocols seamlessly,
so in order to create a service and a client for it, you need to
choose which protocol they
will use to communicate.
One common protocol is to use SOAP over HTTP, but this is not the only
one that can be
handled.   Anyway, you should ask such ESB related questions on the
ServiceMix users
list I think.

The ServiceMix distributions contains several examples related to CXF,
one being the
cxf-wsdl-first example, which explains how to create and expose a
service on the NMR and
also externally using SOAP/HTTP protocol.  You should first try to run
and understand it.
This example has a very simple client which is an HTML page sending
the request to the service
over SOAP/HTTP.  The next goal would be to mimic  this client part
inside the ESB ...

> Thanks
> --
> View this message in context: 
> http://www.nabble.com/help-need-cfx-http-binding-tp19642393p19642393.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>
>



-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
Open Source SOA
http://open.iona.com

Reply via email to