You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by bu...@apache.org on 2003/12/12 10:46:05 UTC

DO NOT REPLY [Bug 25465] New: - WSDL2Java fail with WSDLException

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25465>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25465

WSDL2Java fail with WSDLException

           Summary: WSDL2Java fail with WSDLException
           Product: Axis
           Version: current (nightly)
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: WSDL processing
        AssignedTo: axis-dev@ws.apache.org
        ReportedBy: guillaume.sauthier@bull.net


I'm using Axis current CVS version for classes generation from WSDL. With the
CVS version, WSDL2Java fails with this exception :

WSDLException (at /definitions/binding/operation/input): faultCode=INVALID_WSDL:
Encountered illegal extension attribute 'message'. Extension attributes must be
in a namespace other than WSDL's.

But with another CVS version (1 day prior to Axis 1.2 alpha) WSDL2Java works
perfectly.

Seems that something don't please WSDL4J here :
      <input message="tns:GetDepartmentAdminCenterForCode1Request">
        <soap:body use="encoded"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="urn:ODCODESPOSTAUXIntf-IODCODESPOSTAUX"/>
      </input>
with xmlns:tns="http://tempuri.org/"

See FrenchZip.wsdl in attachments

command line :
jclient -cp $JONAS_ROOT/lib/jonas.jar:$JONAS_ROOT/lib/webservices_axis.jar
org.apache.axis.wsdl.WSDL2Java FrenchZip.wsdl
(jonas.jar contains wsdl4j.jar and webservices_axis contains axis specific classes)

results :
WSDLException (at /definitions/binding/operation/input): faultCode=INVALID_WSDL:
Encountered illegal extension attribute 'message'. Extension attributes must be
in a namespace other than WSDL's.: 
	at com.ibm.wsdl.xml.WSDLReaderImpl.parseExtensibilityAttributes(Unknown Source)
	at com.ibm.wsdl.xml.WSDLReaderImpl.parseBindingInput(Unknown Source)
	at com.ibm.wsdl.xml.WSDLReaderImpl.parseBindingOperation(Unknown Source)
	at com.ibm.wsdl.xml.WSDLReaderImpl.parseBinding(Unknown Source)
	at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown Source)
	at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
	at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
	at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
	at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:519)
	at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:498)
	at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:374)
	at java.lang.Thread.run(Thread.java:534)