This discussion is archived
1 Reply Latest reply: Dec 17, 2012 11:55 AM by jtahlborn RSS

importing xsd file

859967 Newbie
Currently Being Moderated
Hi,

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:
<xs:schema 
xmlns:xs="http://www.w3.org/2001/XMLSchema" 
version="1.0" 
xmlns:ds="http://www.w3.org/2000/09/xmldsig#"  
xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"
targetNamespace="http://localhost/v1#" 
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

thanks,

Edited by: litpu on Dec 16, 2012 6:02 PM
  • 1. Re: importing xsd file
    jtahlborn Expert
    Currently Being Moderated
    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.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points