1 Reply Latest reply on Dec 17, 2012 7:55 PM by jtahlborn

    importing xsd file


      I am trying to create a webservice from wsdl file and i got undefined type error.
       undefined simple or complex type 'ds:DigestMethodType' 
      So it is completly from xsd problem.

      here is the header of my xsd:
      xmlns:env="http://www.w3.org/2003/05/soap-envelope" elementFormDefault="qualified">
      and this is the importing part of xsd
      <xs:import namespace="http://www.w3.org/2001/04/xmlenc#"/> 
      <xs:import namespace="http://www.w3.org/2003/05/soap-envelope" /> 
      <xs:import namespace="http://www.w3.org/2000/09/xmldsig#" /> 
      is there any issue with xmldsig namespace importing? I have tried to download its xsd to have it imported like this:
      <xs:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="dsig.xsd"/> 
      but then i see missing for the soap-evenlop and xmlenc too. I believe these xsds also import other xsd files hence this is not a good solution.

      if you have a comment to resolve this issue?

      i am using netbeans 7.2.1, java jdk 1.7 and glassfish 3.1.2


      Edited by: litpu on Dec 16, 2012 6:02 PM
        • 1. Re: importing xsd file
          You need to have all the referenced schemas in order for the tools to work. i'm pretty sure that all of that stuff is pretty much irrelevant in terms of pojo stub generation, so you could create a stripped down wsdl w/ all the security stuff removed for the purposes of creating the relevant pojos.