cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Kulp <dk...@apache.org>
Subject Re: whether support for imported xsd in static wsdl as well as xsd's that import other xsd's implemented in cxf???
Date Thu, 19 Aug 2010 19:53:19 GMT
On Thursday 19 August 2010 7:53:58 am Edumudi Viswanath wrote:
> Hi Dan,
> 
> Kindly help us to understand below points.
> 
> 1)As u explained in below mail, Generated wsdl should show just import
> statements for xsds but actually it is inlining those xsds with cxf-2.2.8?  

Because that is the way we decided to do it, is the most performant (less hits 
to the server), and generally works best when serving up wsdl.  When using the 
java2ws command line tool, there is an option (-createxsdimports) to have it 
split the schemas into separate files.   It's just not the default.


> 2) We tried to implement schema validation with cxf-2.2.8. it is doing
> validation for integer types but not for elements with enumarations. What
> needs to be done to enable validation for enumaration ?

If that's not working but integer validation is, it's probably a bug in the 
schema validator built into the JDK or in JAXB.   Fundamentally, that's all 
that we do.   We have it create a Schema object that we pass to JAXB and JAXB 
uses that.

Dan



> 
> Code used for schema valication in cxf-servlet.xml:
> <jaxws:client
> name="{http://service.mycomp.com/provider/userservices/assets/st/x2005/}So
> ftInfoPortType" createdFromAPI="true"> <jaxws:properties>
>             <entry key="schema-validation-enabled" value="true" />
>         </jaxws:properties>
>     </jaxws:client>
> 
> <jaxws:endpoint
> xmlns:st="http://service.mycomp.com/provider/userservices/assets/st/x2005/
> " id="publishedEndpointUrl2" address="/GetSoftInfoService"
> serviceName="st:GetSoftInfoService" endpointName="st:SoftInfoPortType"
> implementor="com.mycomp.service.provider.userservices.assets.st.x2005.Soft
> InfoPortTypeImpl"> <jaxws:properties>
>                                 <entry key="schema-validation-enabled"
> value="true" /> </jaxws:properties>
>  </jaxws:endpoint>
> 
> Regards
> vishy
> 
> -----Original Message-----
> From: Daniel Kulp [mailto:dkulp@apache.org]
> Sent: Thursday, August 19, 2010 1:31 AM
> To: dev@cxf.apache.org
> Cc: Edumudi Viswanath; users@cxf.apache.org
> Subject: Re: whether support for imported xsd in static wsdl as well as
> xsd's that import other xsd's implemented in cxf???
> 
> On Wednesday 18 August 2010 7:26:54 am Edumudi Viswanath wrote:
> > Dan,
> > 
> > 
> > 
> > We are interested to know whether  support for imported xsd in static
> > wsdl as well as xsd's that import other xsd's is implemented in CXF?
> 
> It definitely should be, yea.   Both wsdl4j and XmlSchema that we use for
> schema level things support those types of things just fine.
> 
> Dan
> 
> > By googling, we came to know "support for imported xsd in static wsdl as
> > well as xsd's that import other xsd's" is implemented in Spring WS. The
> > below links will discuss on this. Kindly have a look.
> > 
> > https://jira.springsource.org/browse/SWS-281?page=com.atlassian.jira.plug
> > in .system.issuetabpanels%3Aall-tabpanel#issue-tabs
> > 
> > https://jira.springsource.org/browse/SWS-346
> > 
> > 
> > 
> > 
> > 
> > Thanks & Regards,
> > 
> > Oracle logo.gif
> > 
> > Edumudi Venkata Viswanath | Senior Consultant |  +91 20 3984 7491 (O) |
> > 9665045854 (M) Oracle Financial Services Software Limited | Ambrosia,
> > Pune, India
> > 
> > 
> > 
> > Oracle Financial Services Software Limited was formally i-flex solutions
> > limited.

-- 
Daniel Kulp
dkulp@apache.org
http://dankulp.com/blog

Mime
View raw message