Alistair,
I just encountered this, too. My *.aar ran fine in Wondows XP, but gets the
same First Element must contain the local name, Envelope error when I
tried to run it under Linux. However, I am only using a single WSDL with an
imported XSD file. Is there any was around inserting the XSD
Using the nightly build.
In my MessageReceiverInOut I get this error when invoking a web service:
org.apache.axis2.AxisFault: First Element must contain the local name,
Envelope
I've checked on the wire and this is what comes in:
?xml version='1.0' encoding='UTF-8'?
soapenv:Envelope
The problem only occurs if I split up the WSDL into modular parts:
WSDL_1 includes types from two XSD files
WSDL_1 imports bindings from WSDL_2
bindings imports portTypes from WSDL_3
portTypes imports messages from WSDL_4
if I combine the whole lot into one WSDL file, it works.
In both cases
sorted! was my fault (as usual!).
In the modular WSDL, the messages.wsdl file wasn't importing the
messages-types.xsd. It was imported in the root WSDL file but wasn't
making it's way down to the messages.wsdl file.
Removing the xsd import from the root WSDL and putting it in the
messages.wsdl