Hi Willem,

I just tested 2.5-SNAPSHOT on the CXF Jetty and OSGi transports with the 
inclusion of the publishedEndpointUrl property. All worked as expected.

Thanks for your efforts on this!

Regards,
        Scott Christopher.

On 10/10/2010, at 2:38 PM, Willem Jiang wrote:

> Hi Scott,
> 
> I committed a patch of the CAMEL-3190 few days ago, can you try the 
> latest Camel 2.5-SNAPSHOT to verify the fix?
> 
> BTW, you can only set the putlishedEndpointUrl option from URI or the 
> properties element of the CxfEndpoint like this.
> 
> <cxf:cxfEndpoint id="routerEndpoint" 
> address="http://localhost:9003/CamelContext/RouterPort";
>               serviceClass="org.apache.hello_world_soap_http.Greeter"
>               endpointName="s:SoapPort"
>               serviceName="s:SOAPService"
>           xmlns:s="http://apache.org/hello_world_soap_http";>
>           <cxf:properties>
>              <entry key="publishedEndpointUrl" 
> value="http://www.simple.com/services/test"; />
>           </cxf:properties>
>       
>    </cxf:cxfEndpoint>
> 
> 
> On 10/4/10 5:58 PM, Scott Christopher wrote:
>> Thanks Willem.
>> 
>> On 02/10/2010, at 10:47 PM, Willem Jiang wrote:
>> 
>>> Hi Scott,
>>> 
>>> I just checked the schema of cxfEndpoint, it doesn't support the
>>> publishedEndpointUrl.
>>> I filled a JIRA[1] for it.
>>> 
>>> [1]https://issues.apache.org/activemq/browse/CAMEL-3190
>>> 
>>> On 10/2/10 8:33 PM, Scott Christopher wrote:
>>>> On 02/10/2010, at 9:05 PM, Willem Jiang wrote:
>>>> 
>>>>> On 10/2/10 1:33 PM, Scott Christopher wrote:
>>>>>> On 02/10/2010, at 1:18 AM, Ashwin Karpe wrote:
>>>>>> 
>>>>>>> Not sure why setting the address attribute in the spring.xml file does 
>>>>>>> not
>>>>>>> change the address for you since that is the value that overrides the 
>>>>>>> WSDL
>>>>>>> address... I know that it works!!!
>>>>>> 
>>>>>> My apologies, the cxfEndpoint address does allow you to set any 
>>>>>> hostname, which updates the generated WSDL accordingly (I was confusing 
>>>>>> it with the Jetty component, which doesn't allow you to bind to a 
>>>>>> hostname that doesn't resolve to an IP address on a local interface).
>>>>> The publishedEndpointUrl is just used to reset the Address information
>>>>> from the WSDL, it have nothing to do with the address that the service
>>>>> will be bound to.
>>>> 
>>>> 
>>>> This is exactly what I'm trying to achieve, and as per my original 
>>>> question, is it possible to use with a cxfEndpoint bean? Adding the 
>>>> publishedEndpointUrl attribute to the cxfEndpoint bean results in 
>>>> "Attribute 'publishedEndpointUrl' is not allowed to appear in element 
>>>> 'cxf:cxfEndpoint'."
>>>> 
>>>> It would be great if I could do something like:
>>>> 
>>>> <cxf:cxfEndpoint id="endpoint"
>>>>                  address="http://0.0.0.0:8000/service";
>>>>                  publishedEndpointUrl="https://www.example.com/service";
>>>>                  serviceClass="com.example.CxfTest" />
>>>> 
>>>> Regards,
>>>>    Scott Christopher
>>> 
>>> 
>>> --
>>> Willem
>>> ----------------------------------
>>> Open Source Integration: http://www.fusesource.com
>>> Blog:    http://willemjiang.blogspot.com (English)
>>>          http://jnn.javaeye.com (Chinese)
>>> Twitter: http://twitter.com/willemjiang

Reply via email to