You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Cybexion <cy...@email.de> on 2008/02/28 09:36:45 UTC

soap:address changing

Hi, 
one question concerning cxfbc:
In my development env the URL of the Service is always

    <service name="CRMService">
        <port binding="tns:crmServiceBinding" name="crmService">
            <soap:address location="http://localhost:8092/CRMService/"/>
        </port>
    </service>

Now, if I deploy the service to the test machine, it should be 
            <soap:address location="http://machine-test:8092/CRMService/"/>
and on production it should be
            <soap:address location="http://production:8092/CRMService/"/>

How can I change the URL of the service during build time?

Thanks!
   
-- 
View this message in context: http://www.nabble.com/soap%3Aaddress-changing-tp15731922s12049p15731922.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: soap:address changing

Posted by Freeman Fang <fr...@gmail.com>.
yes, this can be done by the placeholder of spring.

I believe you can find example from the mailing list, just search
placeholder

Regards

Freeman


On 2/28/08, Cybexion <cy...@email.de> wrote:
>
>
> Thanks, that works.
> Now I have to replace the URL depending on the env inside xbean.
> I think this can be done with spring.
>
>
> Freeman Fang wrote:
> >
> > Hi,
> >
> > We have a locationURI attribute for cxfbc endpoint xbean configuration,
> so
> > you can override the address.
> >
> > Best Regards
> >
> > Freeman
> >
> >
> > On 2/28/08, Cybexion <cy...@email.de> wrote:
> >>
> >>
> >> Hi,
> >> one question concerning cxfbc:
> >> In my development env the URL of the Service is always
> >>
> >>    <service name="CRMService">
> >>        <port binding="tns:crmServiceBinding" name="crmService">
> >>            <soap:address location="http://localhost:8092/CRMService/"/>
> >>        </port>
> >>    </service>
> >>
> >> Now, if I deploy the service to the test machine, it should be
> >>            <soap:address
> >> location="http://machine-test:8092/CRMService/"/>
> >> and on production it should be
> >>            <soap:address location="http://production:8092/CRMService/
> "/>
> >>
> >> How can I change the URL of the service during build time?
> >>
> >> Thanks!
> >>
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/soap%3Aaddress-changing-tp15731922s12049p15731922.html
> >> Sent from the ServiceMix - User mailing list archive at Nabble.com.
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/soap%3Aaddress-changing-tp15731922s12049p15734508.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>

Re: soap:address changing

Posted by Cybexion <cy...@email.de>.
Thanks, that works.
Now I have to replace the URL depending on the env inside xbean.
I think this can be done with spring.


Freeman Fang wrote:
> 
> Hi,
> 
> We have a locationURI attribute for cxfbc endpoint xbean configuration, so
> you can override the address.
> 
> Best Regards
> 
> Freeman
> 
> 
> On 2/28/08, Cybexion <cy...@email.de> wrote:
>>
>>
>> Hi,
>> one question concerning cxfbc:
>> In my development env the URL of the Service is always
>>
>>    <service name="CRMService">
>>        <port binding="tns:crmServiceBinding" name="crmService">
>>            <soap:address location="http://localhost:8092/CRMService/"/>
>>        </port>
>>    </service>
>>
>> Now, if I deploy the service to the test machine, it should be
>>            <soap:address
>> location="http://machine-test:8092/CRMService/"/>
>> and on production it should be
>>            <soap:address location="http://production:8092/CRMService/"/>
>>
>> How can I change the URL of the service during build time?
>>
>> Thanks!
>>
>> --
>> View this message in context:
>> http://www.nabble.com/soap%3Aaddress-changing-tp15731922s12049p15731922.html
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/soap%3Aaddress-changing-tp15731922s12049p15734508.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: soap:address changing

Posted by Freeman Fang <fr...@gmail.com>.
Hi,

We have a locationURI attribute for cxfbc endpoint xbean configuration, so
you can override the address.

Best Regards

Freeman


On 2/28/08, Cybexion <cy...@email.de> wrote:
>
>
> Hi,
> one question concerning cxfbc:
> In my development env the URL of the Service is always
>
>    <service name="CRMService">
>        <port binding="tns:crmServiceBinding" name="crmService">
>            <soap:address location="http://localhost:8092/CRMService/"/>
>        </port>
>    </service>
>
> Now, if I deploy the service to the test machine, it should be
>            <soap:address location="http://machine-test:8092/CRMService/"/>
> and on production it should be
>            <soap:address location="http://production:8092/CRMService/"/>
>
> How can I change the URL of the service during build time?
>
> Thanks!
>
> --
> View this message in context:
> http://www.nabble.com/soap%3Aaddress-changing-tp15731922s12049p15731922.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>