On Thursday, April 28, 2011 1:54:24 PM Darrin Thompson wrote:
> On Thu, Apr 28, 2011 at 1:19 PM, Daniel Kulp <[email protected]> wrote:
> > You likely need to add:
> >
> > <import resource="classpath:META-INF/cxf/cxf-extension-ws-security.xml"
> > />
> >
> > to pull in the Security related policies.
> >
> > Or the suggested alternative: upgrade to CXF 2.4.0 and remove all the
> > imports except the "cxf.xml" one.
>
> Thanks. I tried adding the additional import and that made all the
> warnings about missing assertion builders go away. I still get the
> same error message when I attempt to use the service though. Would I
> be likely to get a more helpful error message if I upgrade to CXF
> 2.4.0?
Possible. With the upgrade to Neethi 3, a bunch of work was done in the
Policy area to clean things up. It may provide different messages that may
help.
One message that is a concern:
> INFO: Creating Service {http://wstest4.visionsolutions.com/}MySvc from
> WSDL: classpath:wsdl/mysvc_xl/MySvc.wsdl
> Apr 28, 2011 12:09:55 PM
> org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory
> createEndpoint
> WARNING: Could not find endpoint/port for
> {http://wstest4.visionsolutions.com/}XLMathPort in wsdl. Using
> {http://blah/}WSHttpBinding_MySvc.
It may also be possible that this is causing an issue finding appropriate
policies. I'm not really sure. Definitely configure the correct
service/endpoint names in the spring config or @WebService annotation for the
service.
--
Daniel Kulp
[email protected]
http://dankulp.com/blog
Talend - http://www.talend.com