cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Roeloffzen <ted.roeloff...@gmail.com>
Subject Re: cxf wsdl generation
Date Wed, 10 Apr 2013 06:11:33 GMT
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 <glen.mazza@gmail.com>

> 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
>>
>>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message