On Fri, Sep 3, 2010 at 12:59 PM, Matthias Herbst
<[email protected]> wrote:
> Hey!
> Thank you for your fast and very helpful reply!
>
> At the moment we're trying to forward our binding to a webservice binding.
> To clarify why we would like to do this:
> Our reference binding will look like this:
> <reference.....>
> <binding.foo uri="http://blahblah.com/RegistryLookup"; bindingType="ws"
> interfaceDefinition="com.blahblah.interfaces.TestInterface"/>
> </reference>
> Now OUR own binding modul has to do the Lookup at the registry to get the
> URL for the WebService (because of "bindingType=ws") for the Interface
> "com.blahblah.interfaces.TestInterface". Now when the URL is resolved then
> we want to forward the Operation Object to this endpoint.
> So I think we just need to generate our own RuntimeEndpointReference inside
> the ReferenceBindingProvider to pass the message object to the "invoke"
> method of a webservice EndpointReference.
>
> another thing is:
> how can we process new binding attributes as shown above (for example
> "bindingType=ws")?
>
>
> Many Thanks!
>
>
> Best regards,
> Matthias and Sebastian
>

To add an attribute you need to update the .xsd file that defines the
xml schema for the binding and add getter/setters to the Binding class
for the attribute, The Foo binding is using the Tuscany provided
DefaultBeanModelProcessor which does all the work of populating the
binding so nothing else is needed.

To demonstrate I've added a bindingType attribute, it doesn't do much
just prints out the attribute value when the service starts, see this
commit: http://apache.markmail.org/message/ircp3vb4igrn36bq

   ....ant

Reply via email to