If you define the WSDL namespace with a prefix, you will need to use it: xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
Try using <wsdl:definitions> or (easier) switch your declaration to this: xmlns="http://schemas.xmlsoap.org/wsdl/"> -----Original Message----- From: LeftoverLinguine [mailto:[email protected]] Sent: Monday, July 06, 2009 11:08 AM To: [email protected] Subject: RE: Axis2 1.5 WSDL2Java errors When I use a local validation tool I get an error on the second line saying "cvc-elt.1: 9Cannot find the declaration of element 'definitions'." The definition element seems to have everything it needs so I'm not really sure what the problem with it is. Here's the line that I'm getting the error on: <definitions name="StorageService" targetNamespace="http://schemas.mimeo.com/EnterpriseServices/2008/09/StorageService" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex" xmlns:wsa10="http://www.w3.org/2005/08/addressing" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:i2="http://schemas.mimeo.com/EnterpriseServices/2008/09/StorageService/HttpsMtomBinding" xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:tns="http://schemas.mimeo.com/EnterpriseServices/2008/09/StorageService" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:i1="http://schemas.mimeo.com/EnterpriseServices/2008/09/StorageService/HttpsMSWSEBinding" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:i0="http://schemas.mimeo.com/EnterpriseServices/2008/09/StorageService/HttpsBinding" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"> jcaristi wrote: > > This server does not seem to be available on the Internet. I get: > > "Firefox can't find the server at services.dev.mimeo.com." > > You may be able to get to it because it's on your Intranet. You may want > to try a locally installed WSDL validation tool. > > -- View this message in context: http://www.nabble.com/Axis2-1.5-WSDL2Java-errors-tp24295840p24356817.html Sent from the Axis - User mailing list archive at Nabble.com. STATEMENT OF CONFIDENTIALITY: The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify WHI Solutions immediately at [email protected], and destroy all copies of this message and any attachments.
