Christian,
the soapAction attribute is only valid for the binding
element, not the portType element
replace
<operation
name="Execute" soapAction="http://localhost:8090/action/HelloWorld.Execute"
parameterOrder="nameParam">
with
with
<operation
name="Execute" parameterOrder="nameParam">
and it should work.
Also, you could use WS-I tool to validate your
WSDL:
Exception:
org.xml.sax.SAXException: Error: cvc-complex-type.3.2.2: Attribute 'xa:default' is not allowed to appear in element 'documentation'.
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at org.wsi.xml.XMLUtils.parseXML(Unknown Source)
at org.wsi.test.profile.validator.impl.WSDLValidatorImpl$WSI2703.validate(Unknown Source)
at org.wsi.test.profile.validator.impl.BaseValidatorImpl.processAssertions(Unknown Source)
at org.wsi.test.profile.validator.impl.WSDLValidatorImpl.processDefinitionAssertions(Unknown Source)
at org.wsi.test.profile.validator.impl.WSDLValidatorImpl.validate(Unknown Source)
at org.wsi.test.analyzer.BasicProfileAnalyzer.validateWSDL(Unknown Source)
at org.wsi.test.analyzer.BasicProfileAnalyzer.validateConformance(Unknown Source)
at org.wsi.test.analyzer.BasicProfileAnalyzer.main(Unknown Source)
org.xml.sax.SAXException: Error: cvc-complex-type.3.2.2: Attribute 'xa:default' is not allowed to appear in element 'documentation'.
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at org.wsi.xml.XMLUtils.parseXML(Unknown Source)
at org.wsi.test.profile.validator.impl.WSDLValidatorImpl$WSI2703.validate(Unknown Source)
at org.wsi.test.profile.validator.impl.BaseValidatorImpl.processAssertions(Unknown Source)
at org.wsi.test.profile.validator.impl.WSDLValidatorImpl.processDefinitionAssertions(Unknown Source)
at org.wsi.test.profile.validator.impl.WSDLValidatorImpl.validate(Unknown Source)
at org.wsi.test.analyzer.BasicProfileAnalyzer.validateWSDL(Unknown Source)
at org.wsi.test.analyzer.BasicProfileAnalyzer.validateConformance(Unknown Source)
at org.wsi.test.analyzer.BasicProfileAnalyzer.main(Unknown Source)
eric
From: Faucher, Christian [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 16, 2004 6:13 AM
To: [EMAIL PROTECTED]
Subject: wsdl2java does not understand the 'soapAction' attribute in /definitions/portType/operation
Greetings,
I am trying to
generate Java stubs from WSDL (see attached WSDL). I get the
following error from wsdl2java (see below), running Axis 1.2 RC2. My WSDL
is generated from XAware product, and seems to work, at least from what WSDL
test tools from XAware tell me.
Any
idea?
Christian Faucher
WSDLException (at
/definitions/portType/operation): faultCode=INVALID_WSDL: Enco
untered illegal extension attribute 'soapAction'. 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.parseOperation(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.parsePortType(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.jav
a:504)
at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav
a:483)
at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:356)
at java.lang.Thread.run(Thread.java:534)
untered illegal extension attribute 'soapAction'. 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.parseOperation(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.parsePortType(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.jav
a:504)
at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav
a:483)
at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:356)
at java.lang.Thread.run(Thread.java:534)
_______________________________
Christian
Faucher
Développeur
Java/J2EE
AXA Canada
(514) 282-6817 ext.
2943
"Ce message est
confidentiel, à l'usage exclusif du destinataire ci-dessus et son contenu ne
représente en aucun cas un engagement de la part de AXA, sauf en cas de
stipulation expresse et par écrit de la part de AXA. Toute publication,
utilisation ou diffusion, même partielle, doit être autorisée préalablement. Si
vous n'êtes pas destinataire de ce message, merci d'en avertir immédiatement
l'expéditeur."
"This e-mail message is confidential, for the exclusive use of the addressee and its contents shall not constitute a commitment by AXA, except as otherwise specifically provided in writing by AXA. Any unauthorized disclosure, use or dissemination, either whole or partial, is prohibited. If you are not the intended recipient of the message, please notify the sender immediately."
"This e-mail message is confidential, for the exclusive use of the addressee and its contents shall not constitute a commitment by AXA, except as otherwise specifically provided in writing by AXA. Any unauthorized disclosure, use or dissemination, either whole or partial, is prohibited. If you are not the intended recipient of the message, please notify the sender immediately."