Testing
-----------------------------------------------------------------------
Implemented your patch, got:
WSDL snippet:
<fault>
<soap:fault name="CORBA.SystemException"/>
</fault>
And then:
[ashleyb@ashleyb java-test]$./wsdl2java MessageServicebinding.wsdl
java.io.IOException: ERROR: Fault is missing a name= attribute in
operation "ping", in binding
{
http://www.omg.org/IDL-Mapped/}Thus.AgentBinding.
at
org.apache.axis.wsdl.symbolTable.SymbolTable.faultsFromSOAPFault(SymbolTable.java:2809)
at
org.apache.axis.wsdl.symbolTable.SymbolTable.populateBindings(SymbolTable.java:2549)
at
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:744)
at
org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:543)
at
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:518)
at
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:495)
at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
at java.lang.Thread.run(Thread.java:534)
Then added the name attrib, by adding:
unless (exists $node->{modifier}) { # oneway
my $fault = $self->{dom_doc}->createElement($self->{wsdl} .
'fault');
+ $fault->setAttribute('name', 'CORBA.SystemException');
my $soap_fault = $self->{dom_doc}->createElement($self->{soap} .
'fault');
$soap_fault->setAttribute('name', 'CORBA.SystemException');
$fault->appendChild($soap_fault);
$operation->appendChild($fault);
Ran the compiler, got WSDL snippet:
<fault name="CORBA.SystemException">
<soap:fault name="CORBA.SystemException"/>
</fault>
Axis 1.4 then failed with the follwoing errors:
[ashleyb@ashleyb java-test]$./wsdl2java MessageServicebinding.wsdl
Nov 23, 2007 9:07:32 AM org.apache.axis.constants.Enum$Type getEnum
SEVERE: Unrecognized style: 'null'
Nov 23, 2007 9:07:32 AM org.apache.axis.constants.Enum$Type getEnum
SEVERE: Unrecognized style: 'null'
Nov 23, 2007 9:07:32 AM org.apache.axis.constants.Enum$Type getEnum
SEVERE: Unrecognized style: 'null'
Nov 23, 2007 9:07:32 AM org.apache.axis.constants.Enum$Type getEnum
SEVERE: Unrecognized style: 'null'
Nov 23, 2007 9:07:32 AM org.apache.axis.constants.Enum$Type getEnum
SEVERE: Unrecognized style: 'null'
Nov 23, 2007 9:07:32 AM org.apache.axis.constants.Enum$Type getEnum
SEVERE: Unrecognized style: 'null'
Nov 23, 2007 9:07:32 AM org.apache.axis.constants.Enum$Type getEnum
SEVERE: Unrecognized style: 'null'
Nov 23, 2007 9:07:32 AM org.apache.axis.constants.Enum$Type getEnum
SEVERE: Unrecognized style: 'null'
Nov 23, 2007 9:07:32 AM org.apache.axis.constants.Enum$Type getEnum
SEVERE: Unrecognized style: 'null'
Nov 23, 2007 9:07:32 AM org.apache.axis.constants.Enum$Type getEnum
SEVERE: Unrecognized style: 'null'
Nov 23, 2007 9:07:32 AM org.apache.axis.constants.Enum$Type getEnum
SEVERE: Unrecognized style: 'null'
Nov 23, 2007 9:07:32 AM org.apache.axis.constants.Enum$Type getEnum
SEVERE: Unrecognized style: 'null'
Nov 23, 2007 9:07:32 AM org.apache.axis.constants.Enum$Type getEnum
SEVERE: Unrecognized style: 'null'
Nov 23, 2007 9:07:32 AM org.apache.axis.constants.Enum$Type getEnum
SEVERE: Unrecognized style: 'null'
Nov 23, 2007 9:07:32 AM org.apache.axis.constants.Enum$Type getEnum
SEVERE: Unrecognized style: 'null'
Nov 23, 2007 9:07:32 AM org.apache.axis.constants.Enum$Type getEnum
SEVERE: Unrecognized style: 'null'
Nov 23, 2007 9:07:32 AM org.apache.axis.constants.Enum$Type getEnum
SEVERE: Unrecognized style: 'null'
Nov 23, 2007 9:07:32 AM org.apache.axis.constants.Enum$Type getEnum
SEVERE: Unrecognized style: 'null'
Nov 23, 2007 9:07:32 AM org.apache.axis.constants.Enum$Type getEnum
SEVERE: Unrecognized style: 'null'
Nov 23, 2007 9:07:32 AM org.apache.axis.constants.Enum$Type getEnum
SEVERE: Unrecognized style: 'null'
Nov 23, 2007 9:07:32 AM org.apache.axis.constants.Enum$Type getEnum
SEVERE: Unrecognized style: 'null'
Nov 23, 2007 9:07:32 AM org.apache.axis.constants.Enum$Type getEnum
SEVERE: Unrecognized style: 'null'
Nov 23, 2007 9:07:32 AM org.apache.axis.constants.Enum$Type getEnum
SEVERE: Unrecognized style: 'null'
Nov 23, 2007 9:07:32 AM org.apache.axis.constants.Enum$Type getEnum
SEVERE: Unrecognized style: 'null'
Nov 23, 2007 9:07:32 AM org.apache.axis.constants.Enum$Type getEnum
SEVERE: Unrecognized style: 'null'
[ashleyb@ashleyb java-test]$vi MessageServicebinding.wsdl
[ashleyb@ashleyb java-test]$vi MessageServicebinding.wsdl
[ashleyb@ashleyb java-test]$./wsdl2java MessageServicebinding.wsdl
Nov 23, 2007 9:11:54 AM org.apache.axis.constants.Enum$Type getEnum
SEVERE: Unrecognized style: 'null'
-----------------------------------------------------------------------
Comment:
As you say the standard has been wrong in the past. Is there any other
app you could try the original patch I submitted to see if it causes
problems with that system?
Then if it doesn't we have at least got N=2 for systems it works with.
What do you think?