[ 
https://issues.apache.org/activemq/browse/SM-1400?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43472#action_43472
 ] 

Freeman Fang commented on SM-1400:
----------------------------------

paste discussion from IRC channel
(14时42分34秒) lhein: ffang: is it really needed to have a wsdl for the cxf-bc ?
(14时42分44秒) lhein: gertv: yes, the reversed package name
(14时42分50秒) ffang: lhein: yes
(14时43分20秒) lhein: but makes that sense in respect to coding annotated ws?
(14时43分21秒) ffang: lhein: because we need build service model from the wsdl for 
cxf bc
(14时43分30秒) lhein: shouldn't it work without then?
(14时43分36秒) gertv: ffang: why is that? why can't the bc endpoint look up the 
WSDL from the ESB endpoint?
(14时43分43秒) gertv: just like the HTTP endpoint used to do
(14时44分04秒) ffang: code first or wsdl first works for cxf se
(14时44分40秒) lhein: but why u need a wsdl for code first?=
(14时44分40秒) ffang: but for cxf bc it's just a bridge between inside and outside 
the jbi container 
(14时45分03秒) ffang: for cxf se, if we use code first, no need the wsdl
(14时45分13秒) lhein: yeah
(14时45分17秒) lhein: but for bc
(14时45分27秒) gertv: lhein: could you check if the internal endpoint exposes a 
WSDL?
(14时45分48秒) lhein: gertv: how?
(14时45分55秒) gertv: using JMX
(14时47分03秒) ffang: for bc, no concept  of wsdl first or code first, if you use 
code first for se, you can get the wsdl from the endpoint of se, like gertv 
said, one way is check the internal endpoint exposes a wsdl
(14时47分45秒) ffang: or use some tool with cxf, something like javatowsdl, which 
you can get a wsdl from the SEI or impl
(14时48分25秒) lhein: yes, the SE endpoint exposes a wsdl
(14时48分48秒) ffang: anyway wsdl is need for the bc, since for bc you needn't 
provide SEI or some other code first stuff
(14时48分49秒) lhein: good to know
(14时49分10秒) gertv: ffang: agreed, but wouldn't it make sense for the bc 
endpoint to get the WSDL from the internal endpoint automatically when 
available?
(14时49分32秒) lhein: that would be imho nice and coder friendly ;)
(14时49分50秒) gertv: if there's a one-to-one link between the BC endpoint and the 
SE endpoint, there is no real need to force a user to copy the WSDL about, is 
there?
(14时50分22秒) ffang: gertv, lhein, agree with you , yeah, we may need add this 
feature later on
(14时52分09秒) ffang: but for bc provider, it's another issue, I think in this 
case wsdl isn't optional, right?
(14时52分36秒) gertv: yes, that would probably be another problem
(14时52分48秒) lhein: the wsdl can be retrieved by ?WSDL from external ws or not?
(14时52分58秒) gertv: because you can rely on the internal endpoint's WSDL to be 
available
(14时53分14秒) gertv: but you'd have to cache and retry for an external WSDL 
probably
(14时53分38秒) ffang: yes, of couse it can retrieved by ?wsdl, it's oneway we 
currently supported to get the wsdl
(14时54分39秒) lhein: ok, forget about wsdl of the internal endpoint...just tried 
to use it and it throws exceptions nowe
(14时55分04秒) ffang: I mean for a cxf bc provider, you can set wsdl attribute as 
http://host/service/?wsdl, so there is no real copy of wsdl on your local disk

> cxf bc consumer should be able to retrieve wsdl from internal endpoint of JBI 
> bus if there is one
> -------------------------------------------------------------------------------------------------
>
>                 Key: SM-1400
>                 URL: https://issues.apache.org/activemq/browse/SM-1400
>             Project: ServiceMix
>          Issue Type: New Feature
>            Reporter: Freeman Fang
>             Fix For: 3.3
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to