The best is to use a proxy and inject it on your
service implementation.

<jsr181:endpoint wsdlResource="classpath:service.wsdl">
 <jsr181:pojo>
   <bean class="MyWebserviceImpl">
     <property name="webService">
       <jsr181:proxy service="qname target" context="#context"
type="java class name" />
     </property>
   </bean>
 </jsr181:pojo>
</jsr181:endpoint>

The type attribute is the name of the java interface generated representing the
target web service.  It should also be the type of the property on the
injected pojo .

The service attribute is the qname of the target JBI endpoint (the http provider
endpoint).

The context="#context" attribute is to be able to retrieve a ComponentContext.
This only works inside a SU deployed onto the jsr181 component.
If you use a single servicemix configuration file, you can use a
reference to the JBI
container instead:  container="#jbi".


On 11/30/06, bernulfiskus <[EMAIL PROTECTED]> wrote:

How can I delegate from the jsr component (through the NMR) to the
HttpProvider BC? Which modifications are necessary in the xbean.xml and
WebServiceImpl to call the HttpEndpoint?

<beans xmlns:jsr181="http://servicemix.apache.org/jsr181/1.0";>
    <classpath>
        <location>.</location>
    </classpath>
    <jsr181:endpoint pojoClass="MyWebserviceImpl"
                     wsdlResource="classpath:service.wsdl" />
</beans>

Please help ;-)












gnodet wrote:
>
> Right.
> Be aware that some problems were fixed recently,
> so you should try a nightly distribution of 3.1, or build
> from svn head.
>
> On 11/29/06, bernulfiskus <[EMAIL PROTECTED]> wrote:
>>
>> ;-)
>>
>> To call a webservice via wsdl-generated proxy classes I think a
>> jsr181Wsdl-Service Component should be the best choice, right?
>>
>> jsr181 -> http-bc -> webservice system 2
>>
>> Bernie
>>
>>
>>
>> gnodet wrote:
>> >
>> > Web service calls, either as a client or a server, can be achieved by
>> > using
>> > the servicemix-http component.  In between, you can use whatever JBI
>> > component you want, from bpel engine, servicemix-jsr181, etc ...
>> >
>> > On 11/29/06, bernulfiskus <[EMAIL PROTECTED]> wrote:
>> >>
>> >> Hi!
>> >>
>> >> What's the best way to integrate webservices to the esb?
>> >>
>> >> situation: System 1 calls a webservice from System 2
>> >> System 1, Client (C#) -> Webservice-Call -> ESB -> Webservice-Call ->
>> >> System
>> >> 2, Server (java)
>> >>
>> >> Bernie
>> >> --
>> >> View this message in context:
>> >>
>> 
http://www.nabble.com/Best-way-to-integrate-webservices-tf2723771s12049.html#a7595782
>> >> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>> >>
>> >>
>> >
>> >
>> > --
>> > Cheers,
>> > Guillaume Nodet
>> >
>> >
>>
>> --
>> View this message in context:
>> 
http://www.nabble.com/Best-way-to-integrate-webservices-tf2723771s12049.html#a7597807
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>
>>
>
>
> --
> Cheers,
> Guillaume Nodet
>
>

--
View this message in context: 
http://www.nabble.com/Best-way-to-integrate-webservices-tf2723771s12049.html#a7614668
Sent from the ServiceMix - User mailing list archive at Nabble.com.




--
Cheers,
Guillaume Nodet

Reply via email to