You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by dahoffer <dh...@gmail.com> on 2009/09/17 15:10:32 UTC
Re: How do I specify SOAP Address Location using maven
cxf-codegen-plugin?
Did you find a solution to this? I have the same issue, seems to cause
problems for PHP clients.
sgomez wrote:
>
> Hi. I'm using the Maven cxf-codegen-plugin to generate a WSDL from a few
> Java classes. Everything works OK except for the <soap:address location>,
> that always has the same value: "http://localhost:9090/hello". I've been
> looking everywhere for a way to specify the location I want, but I haven't
> found anything.
>
> Maybe the way to go is to use the cxf.xml file, but as far as I know, in
> this file I can only configure new endpoints; I wouldn't be able to modify
> the configuration of an endpoint configured in the pom.xml.
>
> Anyone knows some way to define my own soap address location? I'd
> appreciate a lot your help.
>
> Best regards.
>
> Sebastian Gomez.
>
--
View this message in context: http://www.nabble.com/How-do-I-specify-SOAP-Address-Location-using-maven-cxf-codegen-plugin--tp16552110p25490946.html
Sent from the cxf-user mailing list archive at Nabble.com.
RE: How do I specify SOAP Address Location using maven cxf-codegen-plugin?
Posted by "Pydipati, Karuna" <kp...@stubhub.com>.
Regarding customization url and port, I did the following way. It may be
helpful (Any way, I am using cxf with spring and Java-first approach)
STEP 1: Have cxf.xml file as mentioned below
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:jaxws="http://cxf.apache.org/jaxws"
xmlns:cxf="http://cxf.apache.org/core"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
http://www.springframework.org/schema/util
http://www.springframework.org/schema/util/spring-util-2.5.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-2.5.xsd
http://cxf.apache.org/jaxws
http://cxf.apache.org/schemas/jaxws.xsd
http://cxf.apache.org/configuration/security
http://cxf.apache.org/schemas/configuration/security.xsd
http://cxf.apache.org/transports/http/configuration
http://cxf.apache.org/schemas/configuration/http-conf.xsd
http://cxf.apache.org/core
http://cxf.apache.org/schemas/core.xsd
">
<import resource="classpath:META-INF/cxf/cxf.xml" />
<import resource="classpath:META-INF/cxf/cxf-extension-soap.xml"
/>
<import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
<context:property-placeholder
location="file:///${PROPERTY_FILE_HOME}/your_property_file.properties"/>
<jaxws:endpoint id="YourInterface"
implementor="com.xxxx.YourInterfaceImpl"
address="/order/Order"
publishedEndpointUrl="${your.url.port}/YourInterface" />
</beans>
STEP 2: your_property_file.properties may contain the following
property.
#example may be http://localhost:8090/order
your.url.port=http://xxxx:someport/web-context-uri
Regards
Karuna Pydipati
StubHub/eBay - Platform & Services
Phone: (415)222-8752
Email: kpydipati@ebay.com
-----Original Message-----
From: dahoffer [mailto:dhoffer6@gmail.com]
Sent: Thursday, September 17, 2009 6:11 AM
To: users@cxf.apache.org
Subject: Re: How do I specify SOAP Address Location using maven
cxf-codegen-plugin?
Did you find a solution to this? I have the same issue, seems to cause
problems for PHP clients.
sgomez wrote:
>
> Hi. I'm using the Maven cxf-codegen-plugin to generate a WSDL from a
> few Java classes. Everything works OK except for the <soap:address
> location>, that always has the same value:
> "http://localhost:9090/hello". I've been looking everywhere for a way
> to specify the location I want, but I haven't found anything.
>
> Maybe the way to go is to use the cxf.xml file, but as far as I know,
> in this file I can only configure new endpoints; I wouldn't be able to
> modify the configuration of an endpoint configured in the pom.xml.
>
> Anyone knows some way to define my own soap address location? I'd
> appreciate a lot your help.
>
> Best regards.
>
> Sebastian Gomez.
>
--
View this message in context:
http://www.nabble.com/How-do-I-specify-SOAP-Address-Location-using-maven
-cxf-codegen-plugin--tp16552110p25490946.html
Sent from the cxf-user mailing list archive at Nabble.com.
Re: How do I specify SOAP Address Location using maven
cxf-codegen-plugin?
Posted by Glen Mazza <gl...@gmail.com>.
Note #2 here:
http://www.jroller.com/gmazza/entry/creating_a_wsdl_first_web1#notes ?
HTH,
Glen
dahoffer wrote:
>
> Did you find a solution to this? I have the same issue, seems to cause
> problems for PHP clients.
>
>
>
> sgomez wrote:
>>
>> Hi. I'm using the Maven cxf-codegen-plugin to generate a WSDL from a few
>> Java classes. Everything works OK except for the <soap:address location>,
>> that always has the same value: "http://localhost:9090/hello". I've been
>> looking everywhere for a way to specify the location I want, but I
>> haven't found anything.
>>
>> Maybe the way to go is to use the cxf.xml file, but as far as I know, in
>> this file I can only configure new endpoints; I wouldn't be able to
>> modify the configuration of an endpoint configured in the pom.xml.
>>
>> Anyone knows some way to define my own soap address location? I'd
>> appreciate a lot your help.
>>
>> Best regards.
>>
>> Sebastian Gomez.
>>
>
>
--
View this message in context: http://www.nabble.com/How-do-I-specify-SOAP-Address-Location-using-maven-cxf-codegen-plugin--tp16552110p25491810.html
Sent from the cxf-user mailing list archive at Nabble.com.