Hi,

You can add @WebService annotation for the service Impl or SEI class where you 
can specify the wsdlLocation
-------------
Freeman(Yue) Fang

Red Hat, Inc. 
FuseSource is now part of Red Hat
Web: http://fusesource.com | http://www.redhat.com/
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
http://blog.sina.com.cn/u/1473905042
weibo: @Freeman小屋

On 2013-4-10, at 下午2:11, Ted Roeloffzen wrote:

> Thank you Glen, the problem is that we don't use a cxf-servlet.xml, we
> create the endpoints in code.
> 
> javax.xml.ws.Endpoint endpoint =
> javax.xml.ws.Endpoint.create(webserviceImpl);
> endpoint.publish(address);
> 
> Can i set the wsdllocation when creating an endpoint in code?
> 
> 
> 
> 2013/4/9 Glen Mazza <[email protected]>
> 
>> The wsdlLocation field in the cxf-servlet.xml file should do it for you:
>> http://www.jroller.com/gmazza/**entry/web_service_tutorial#**WFstep6<http://www.jroller.com/gmazza/entry/web_service_tutorial#WFstep6>
>> 
>> Note the endpoint URL in the WSDL will still get overwritten based on
>> deployment configuration decisions you've made, as discussed in note #2
>> here: 
>> http://www.jroller.com/gmazza/**entry/web_service_tutorial#**notes<http://www.jroller.com/gmazza/entry/web_service_tutorial#notes>
>> 
>> Glen
>> 
>> 
>> On 04/09/2013 10:00 AM, Ted Roeloffzen wrote:
>> 
>>> Hello all,
>>> 
>>> I'm having some difficulty with CXF.
>>> I got a WSDL from an external party and used this to create a
>>> webservice-server.
>>> For this I used de codegen-plugin for maven.
>>> 
>>> When I check the definition of the server, by going to the url and adding
>>> ?wsdl, then I receive a WSDL that seems to be generated by CXF and has an
>>> import to the WSDL that i used to generate the code.
>>> The problem is that the external party can't connect with our server
>>> because of the differences between the WSDL's.
>>> 
>>> Is it possible to tell CXF not to generate a wsdl, but return the WSDL
>>> that
>>> is in the import-statement?
>>> 
>>> best regards,
>>> 
>>> Ted
>>> 
>>> 
>> 

Reply via email to