Can you post your wsdl file?
Peter
----- Original Message -----
From: "Yoann Brenet" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 15, 2002 2:20 PM
Subject: Wsdl2java exception
> Hello all !
>
> I'm trying to use the Wsdl2java class on a wsdl file, but there is a
> java.lang.NullPointerException throwed in the
getComplexElementTypesAndNames
> method of the SchemaUtils class.
> I checked the code and here are the code lines :
>
>
> NodeList children = node.getChildNodes();
> Node complexContent = null;
> Node simpleContent = null;
> Node extension = null;
> for (int j = 0; j < children.getLength() && complexContent == null; j++) {
> QName complexContentKind = Utils.getNodeQName(children.item(j));
> if (complexContentKind != null &&
> Constants.isSchemaXSD(complexContentKind.getNamespaceURI())) {
> if
> (complexContentKind.getLocalPart().equals("complexContent") )
> complexContent = children.item(j);
> else if
> (complexContentKind.getLocalPart().equals("simpleContent"))
> simpleContent = children.item(j);
> }
> }
> if (complexContent != null) {
> children = complexContent.getChildNodes();
> for (int j = 0; j < children.getLength() && extension == null; j++)
{
> QName extensionKind = Utils.getNodeQName(children.item(j));
> if (extensionKind != null &&
> extensionKind.getLocalPart().equals("extension") &&
>
> Constants.isSchemaXSD(extensionKind.getNamespaceURI()))
> extension = children.item(j);
> }
> }
>
>
> It seems that the children variable is null, and there is no check to look
> for that.
>
> Does anybody know something about that ??????
>
> Best regards,
>
> Yoann