Hi Dhiraj, I just filed CXF-935 for this. So the problem is that when 
Provider's WSDL is supplied from spring configuration (so it is still 
WSDL-first, build service model from WSDL), the endpoint point should be from 
WSDL instead of from Provider class name.

Cheers,
Jervis

> -----Original Message-----
> From: Bokde, Dhiraj [mailto:[EMAIL PROTECTED]
> Sent: 2007?8?23? 2:55
> To: [email protected]
> Subject: RE: Generic Provider<DOMSource> server and WSDL metadata
> 
> 
> > >
> > the JAX-WS 'endpoint' element in Spring XML configuration 
> does indeed
> > provide/override the info in the annotation. The reason why it does
> not
> > work? It might be a bug. If you have access to CXF source code, in
> > ReflectionServiceFactoryBean.java line 956, method 
> getEndpointInfo():
> > 
> > public EndpointInfo getEndpointInfo() {
> >         return getService().getEndpointInfo(getEndpointName());
> > }
> > 
> > the getService() returns the service model built from WSDL file, but
> > somehow it does not contain an endpoint whose name is
> getEndpointName()
> > which might come from java class. Could you please report a Jira for
> this.
> > 
> > BTW, you may want to try to add an endpointname attribute into your
> spring
> > config, just a wild guess, not sure if it works. ;-)
> > 
> > <snip>
> >     <jaxws:endpoint id="myEndpoint" implementor="#genericProvider"
> > endpointName="endpointName is the port qname in wsdl"
> >             address="/myLocation/" serviceName="msp:MyService"
> >             wsdlLocation="classpath:wsdl/MyWSDL.wsdl"
> >             xmlns:msp="http://my.service";>
> >     </jaxws:endpoint>
> > <snip>
> > 
> [Bokde, Dhiraj] I debugged it a little, and the 
> getEndpointName() method
> returns GenericProviderService instead of the serviceName in the
> endpoint. 
> I have tried adding the endpointName attribute as well and it didn't
> make any difference. 
> 

----------------------------
IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland

Reply via email to