The Source for Java Technology Collaboration
User: Password:



Vivek Pandey's Blog

May 2007 Archives


How to deal with unresolved xs:schema references in WSDL

Posted by vivekp on May 25, 2007 at 11:45 PM | Permalink | Comments (10)

I have been thinking of writing this blog for quite sometime to the benefit of those who have been having troubles importing WSDLs that references xs:schema but do not have corresponding import for such entities. This causes wsimport tool to report error. Mark from portal team reported the same issue while importing Share Point services and also WSIT and other users have reported the similar problems.

So this is what happens, when wsimport is run on a WSDL that references xs:schema and does not provide a corresponding import:

wsimport  SecureConversation.wsdl

Gives the following error:

[ERROR] undefined element declaration 'xs:schema'
line 1 of http://131.107.72.15/Security_WsSecurity_Service_Indigo/WSSecureConversation.svc?xsd=xsd0

To fix this, you would do two things

  • Run wsimport with -b option and pass the URL of XML Schema. This is to take care of missing import.
  • There are potential name conflicts in schema for schema. this was discussed here at length and Kohsuke has provided a JAXB customization to resolve such conflicts.

So your wsimport command will be

wsimport -b  http://www.w3.org/2001/XMLSchema.xsd  -b  customization.xjb  SecureConversation.wsdl

You can do the same with NB 5.5.1, you would need to provide local copies of these schema and customization files. If you are facing this issue try it and let us know if you see any issue.



JavaOne wrap-up

Posted by vivekp on May 24, 2007 at 06:52 PM | Permalink | Comments (0)

It took me so long to recover from JavaOne! Well not really, right after JavaOne got pulled into various things and could never get to it.

Overall, it was great to meet JAX-WS RI users and hear their feedback and most importantly it was really good to know that its adoption is increasing!

JavaOne slides are out, get the slides for our Technical Session and BOF.

Someone in audience asked about the SMTP demo code. I will post it soon in a separate blog. The demo code is part of SMTP repository so you can have a look at it in the meantime.

JAX-WS RI was mentioned  in many talks, some of them were

  • There was JMX session, where they talked about uses of JAX-WS RI
  • Another talk was on the CommunityOne day by Rod Johnson, where he discussed about how JAX-WS RI supports Spring by extending XML configuration of Spring 2.0. See his blog on the JAX-WS Spring support and Glassfish.
  • There was a session by Salesforce.com where they talked about uses of JAX-WS RI, wsimport etc. and how it gives them better performance. During the JavaOne week Salesforce.com announced the Apex toolkit using JAX-WS 2.1.1 RI. See Arun's blog for details.

Thanks everyone for your continued interest in JAX-WS RI, keep sending your feedback to us.



JAX-WS 2.1.1 RI Released

Posted by vivekp on May 08, 2007 at 03:57 PM | Permalink | Comments (4)

So I have just released JAX-WS RI 2.1.1 This release is update to JAX-WS RI 2.1 and implements the re-spun  JAX-WS 2.1 MR2(JSR 224) specification.

See here for the changes in this release, and yes can use this release with woodstox 3.2.1, see Jitu's blog.

Get the JAX-WS 2.1.1 RI from here or from maven repository and continue providing feedback to users@jax-ws.dev.java.net or to the JAX-WS Forum and report your issues and feature requests at IssueTracker.





Powered by
Movable Type 3.01D
 Feed java.net RSS Feeds