The specific bug was due to the fact the elemWComplex is an element with an
"anonymous" type.

In such cases, looking for the "type" attribute of the element will fail.
I fixed this already (bold below).


            // We need to use the Qname of the actual type, not the QName
of the element
            QName qn = p.type.getQName();
            if (p.type instanceof DefinedElement) {
                Node node = symbolTable.getTypeEntry(p.type.getQName(),
true).getNode();
                QName qn2 = Utils.getNodeTypeRefQName(node, "type");
                if (qn2 != null) {
                    qn = qn2;
                }
            }

I am now seeing other (unrelated) test failures
(functional.FunctionalTests):

  <testcase name="testBidBuyService" time="0.931">

    <error message="Fault returned from test: org.xml.sax.SAXException:
Deserializing parameter &apos;PO&apos;:  could not find deserializer for
type http://www.soapinterop.org/Bid:PurchaseOrder"; type
="java.lang.Exception">java.lang.Exception: Fault returned from test:
org.xml.sax.SAXException: Deserializing parameter &apos;PO&apos;:  could
not find deserializer for type http://www.soapinterop.org/Bid:PurchaseOrder

      at
test.functional.TestBidBuySample.testBidBuyService(TestBidBuySample.java:97)
Rich Scheuerle
XML & Web Services Development
512-838-5115  (IBM TL 678-5115)


                                                                                       
                                            
                      Tom Jordahl                                                      
                                            
                      <tomj@macromedia.        To:       "'[EMAIL PROTECTED]'" 
<[EMAIL PROTECTED]>                     
                      com>                     cc:                                     
                                            
                                               Subject:  RE: Comprehensive Test is 
failing                                         
                      03/01/2002 08:57                                                 
                                            
                      AM                                                               
                                            
                      Please respond to                                                
                                            
                      axis-dev                                                         
                                            
                                                                                       
                                            
                                                                                       
                                            




Rich,

I haven't caught up with axis-dev yet, but FYI element types should not
need to be registered.  Since Glen removed the code in the engine that
falls back to checking the element name in the type mappings, it shouldn't
matter anyway.

What should happen is all real types should be registered, and the
parameters
and return type should be specified in the call as to what their types are.

Does this make sense?

Later commits fixed up more bugs in this area and I fixed the deploy writer
to skip Element types as well.

--
Tom Jordahl
Macromedia


-----Original Message-----
From: R J Scheuerle Jr [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 27, 2002 10:39 AM
To: [EMAIL PROTECTED]
Subject: Comprehensive Test is failing


The Comprehensive Test is failing.  The stub no longer is registering
elemWComplex ?  However, the mapping is still in the deploy.wsdd.

I am going to look at the WSDL2Java code to see what changed.

Rich Scheuerle
XML & Web Services Development
512-838-5115  (IBM TL 678-5115)



Reply via email to