You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by "Barlotta, Michael [USA]" <ba...@bah.com> on 2007/12/21 14:26:00 UTC

RE: CXF @WebServiceProvider deployment issue (WORKING)

Dan:

Thanks for the tip! I downloaded the Eclipse WSDL validator (since I just got exceptions with the one in bin that were not so helpful). I did find an error in the port type, I did not have the namespace prefixes on the WSDL. 

Merry Christmas!!

Mike Barlotta
Associate
Booz | Allen | Hamilton

-----Original Message-----
From: Daniel Kulp [mailto:dkulp@apache.org] 
Sent: Thursday, December 20, 2007 2:19 PM
To: cxf-user@incubator.apache.org
Cc: Barlotta, Michael [USA]
Subject: Re: CXF @WebServiceProvider deployment issue


All I can think of to try is to run the validator (in our bin directory) 
on the wsdl and see if it has any issues with it.   Maybe the binding 
node doesn't point to the correct portType or something.    I don't 
really know without looking more at the wsdl.

Dan


On Thursday 20 December 2007, Barlotta, Michael [USA] wrote:
> Thanks Dan, I re-read the docs and you are right. Unfortunately that 
> did not fix the problem.
>
> I checked the code and the line that generates the NPE is 226 of
> WSDLServiceBuilder: 223 PortType bindingPt = binding.getPortType();
>             226 PortType pt = def.getPortType(bindingPt.getQName());
>
> Turns out the bindingPt is null, any ideas or tips you can give as to 
> why this is the case?
>
> Mike Barlotta
> Associate
> Booz | Allen | Hamilton
>
> -----Original Message-----
> From: Daniel Kulp [mailto:dkulp@apache.org]
> Sent: Thursday, December 20, 2007 11:45 AM
> To: cxf-user@incubator.apache.org
> Cc: Barlotta, Michael [USA]
> Subject: Re: CXF @WebServiceProvider deployment issue
>
>
> I believe portName should map to the name of the port in the service.
> Not the portType name.
>
> Dan
>
> On Thursday 20 December 2007, Barlotta, Michael [USA] wrote:
> > > @WebServiceProvider(
> > > serviceName="MessageRouterService",   <------------ mapped to
> >
> > wsdl:service name
> >
> > > portName="RoutePortType",                     <------------ mapped 
> > > to
> >
> > wsdl:portType name
> >
> > > targetNamespace="http://xxxxx/",              <------------ mapped 
> > > to
> >
> > wsdl:definitions targetNamespace
> >
> > > wsdlLocation="WEB-INF/wsdl/MessageRouter.wsdl"
>
> --
> J. Daniel Kulp
> Principal Engineer, IONA
> dkulp@apache.org
> http://www.dankulp.com/blog



--
J. Daniel Kulp
Principal Engineer, IONA
dkulp@apache.org
http://www.dankulp.com/blog