Daniel,
Thanks for your prompt reply. You are exactly correct. I see in my logs
that:
"Creating Service {namespace}name from class com.foo.blah.Snarf"
Can you please tell me where in my bean file should I put the wsdlocation?
Another thing I just noted was:
If I include in my spring bean file for the service the schema location with
the XSD name, I can see the documentation from the XSD...
Here's what my bean config looks like:
<jaxws:endpoint id="createUpdateExemptionCertificateEndPoint"
implementor="#createUpdateExemptionCertificatePortTypeImpl"
address="/exemptioncertificateservice/2011-05-27/createupdateexemptioncertificate">
<jaxws:properties>
<entry key="schema-validation-enabled" value="true"/>
</jaxws:properties>
<jaxws:schemaLocations>
<jaxws:schemaLocation>ExemptionCertificateService.xsd</jaxws:schemaLocation>
<jaxws:schemaLocation>ExemptionCertificate.xsd</jaxws:schemaLocation>
<jaxws:schemaLocation>Customer.xsd</jaxws:schemaLocation>
<jaxws:schemaLocation>Money.xsd</jaxws:schemaLocation>
<jaxws:schemaLocation>CustomerGroup.xsd</jaxws:schemaLocation>
</jaxws:schemaLocations>
</jaxws:endpoint>
I really appreciate your input.
Thanks,
Dipti
On Wed, Jan 19, 2011 at 12:44 PM, Daniel Kulp [via CXF] <
[email protected]<ml-node%[email protected]>
> wrote:
> 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
> [hidden email] <http://user/SendEmail.jtp?type=node&node=3348517&i=0>
> http://dankulp.com/blog
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://cxf.547215.n5.nabble.com/How-to-include-Schema-Annotation-Documentation-in-the-WSDL-tp3348398p3348517.html
> To unsubscribe from How to include Schema Annotation/Documentation in the
> WSDL, click
> here<http://cxf.547215.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=3348398&code=ZHZhaWR5YUBnbWFpbC5jb218MzM0ODM5OHwxMjgzNjM1Mzg1>.
>
>
--
--
View this message in context:
http://cxf.547215.n5.nabble.com/How-to-include-Schema-Annotation-Documentation-in-the-WSDL-tp3348398p3348645.html
Sent from the cxf-user mailing list archive at Nabble.com.