On Wednesday 19 January 2011 2:33:41 pm diptiv wrote:
> I'm using CXF and wsdl2java to generate my java docs.
> The WSDL importes a XSD:
> 
> <xs:include schemaLocation="ExemptionCertificateService.xsd"/>
> 
> When the wsdl is served up, I see the WSDL has an import location which
> points to the CXF generated WSDL.
> 
> http://localhost:8080/service/operation?wsdl=CreateUpdateExemptionCertifica
> tePortType.wsdl I was happy to see my schema inlined in the generated WSDL.

If it's inlined, I'm pretty sure it's not using your wsdl at runtime.   Can 
you check the logs for the server.     Look for a line like:

"Creating Service {namespace}name  from WSDL: /path/to/wsdl"
or 
"Creating Service {namespace}name  from class  com.foo.blah.Snarf"

My gut feeling it that it's the latter which means it's a  code first scenario 
and the WSDL isn't being picked up.    Make sure your spring config specifies 
a wsdlLocation or use the wsdlLocation attribute on the @WebService annotation 
on the implementation bean.

Dan



> But I could not see the schema annotations in this inlined XSD.
> 
> My XSD has:
> <xs:complexType name="ExemptionCertificate">
> xs:annotation>
> <xs:documentation>
> <![CDATA[
>                 An Exemption Certificate is a document that is issued by a
> taxing authority that provides ..a                 ]]>
> </xs:documentation>
> </xs:annotation>
> ...</complexType>
> 
> Is it possible to see the documentation in the generated WSDL?

-- 
Daniel Kulp
[email protected]
http://dankulp.com/blog

Reply via email to