Yep, worked fine for me too.
Peter ----- Original Message ----- From: "Glen Daniels" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, March 15, 2002 2:44 PM Subject: RE: Wsdl2java exception > > Are you running with the latest source? I just tried this file and it worked fine for me. > > --G > > > -----Original Message----- > > From: Yoann Brenet [mailto:[EMAIL PROTECTED]] > > Sent: Friday, March 15, 2002 9:37 AM > > To: [EMAIL PROTECTED] > > Subject: RE: Wsdl2java exception > > > > > > > > > > Here it is : > > > > > > <?xml version="1.0" encoding="UTF-8"?> > > <wsdl:definitions > > targetNamespace="http://aulx01:8180/axis/services/PositioningService" > > xmlns="http://schemas.xmlsoap.org/wsdl/" > > xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" > > xmlns:impl="http://aulx01:8180/axis/services/PositioningService-impl" > > xmlns:intf="http://aulx01:8180/axis/services/PositioningService" > > xmlns:tns1="urn:PositioningService" > > xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" > > xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" > > xmlns:xsd="http://www.w3.org/2001/XMLSchema"><types><schema > > targetNamespace="urn:PositioningService" > > xmlns="http://www.w3.org/2001/XMLSchema"><complexType > > name="GeodesicPoint"><sequence><element name="latitude" > > type="xsd:double"/><element name="longitude" > > type="xsd:double"/></sequence></complexType><element > > name="GeodesicPoint" > > nillable="true" type="tns1:GeodesicPoint"/><complexType > > name="Address"><sequence><element name="country" nillable="true" > > type="xsd:string"/><element name="city" nillable="true" > > type="xsd:string"/><element name="street" nillable="true" > > type="xsd:string"/><element name="streetNumber" nillable="true" > > type="xsd:string"/><element name="geo" nillable="true" > > type="tns1:GeodesicPoint"/></sequence></complexType><element > > name="Address" > > nillable="true" type="tns1:Address"/></schema></types> > > <wsdl:message name="getAddressRequest"> > > <wsdl:part name="in0" type="tns1:GeodesicPoint"/> > > </wsdl:message> > > <wsdl:message name="getAddressResponse"> > > <wsdl:part name="return" type="tns1:Address"/> > > </wsdl:message> > > <wsdl:portType name="PositioningService"> > > <wsdl:operation name="getAddress" parameterOrder="in0"> > > <wsdl:input message="intf:getAddressRequest"/> > > <wsdl:output message="intf:getAddressResponse"/> > > </wsdl:operation> > > </wsdl:portType> > > <wsdl:binding name="PositioningServiceSoapBinding" > > type="intf:PositioningService"> > > <wsdlsoap:binding style="rpc" > > transport="http://schemas.xmlsoap.org/soap/http"/> > > <wsdl:operation name="getAddress"> > > <wsdlsoap:operation soapAction=""/> > > <wsdl:input> > > <wsdlsoap:body > > encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" > > namespace="http://aulx01:8180/axis/services/PositioningService" > > use="encoded"/> > > </wsdl:input> > > <wsdl:output> > > <wsdlsoap:body > > encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" > > namespace="http://aulx01:8180/axis/services/PositioningService" > > use="encoded"/> > > </wsdl:output> > > </wsdl:operation> > > </wsdl:binding> > > <wsdl:service name="PositioningServiceService"> > > <wsdl:port binding="intf:PositioningServiceSoapBinding" > > name="PositioningService"> > > <wsdlsoap:address > > location="http://aulx01:8180/axis/services/PositioningService"/> > > </wsdl:port> > > </wsdl:service> > > </wsdl:definitions> > > > > > > -----Message d'origine----- > > De : Peter Allday [mailto:[EMAIL PROTECTED]] > > Envoy� : vendredi 15 mars 2002 15:29 > > � : [EMAIL PROTECTED] > > Objet : Re: Wsdl2java exception > > > > > > 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 > >
