Hi Guys,

Any help on this would be very appreciated.

I'm playing with a service that is sending incorrect wsdl when I access 
http://hostname/axis/ServiceName?wsdl

There is a definition in the server-config.wsdd

  <operation name="getRegisteredEducationalInstitutions" 
qname="ns13:GetRegisteredEducationalInstitutions" 
returnItemQName="ns13:RegisteredEducationalInstitution" 
returnQName="ns13:GetRegisteredEducationalInstitutionsResult" 
returnType="ns13:ArrayOfRegisteredEducationalInstitution" 
soapAction="http://APASProxy.ServiceContracts/2007/04/GetRegisteredEducationalInstitutions";
 xmlns:ns13="http://APASProxy.ServiceContracts/2007/04"/>

  <arrayMapping innerType="ns43:RegisteredEducationalInstitution" 
languageSpecificType="java:DataTypes.APASProxy._2007._04.                       
RegisteredEducationalInstitution[]" 
qname="ns42:ArrayOfRegisteredEducationalInstitution" 
xmlns:ns42="http://APASProxy.ServiceContracts/2007/04";   
xmlns:ns43="http://APASProxy.DataTypes/2007/04"/>

The output wsdl is...
<element name="GetRegisteredEducationalInstitutionsResponse">
<complexType>
<sequence>
<element maxOccurs="unbounded" 
name="GetRegisteredEducationalInstitutionsResult" 
type="tns1:RegisteredEducationalInstitution"/>
</sequence>
</complexType>
</element>

So, axis creates incorrect code, expecting that 
GetRegisteredEducationalInstitutionsResult has elements that do not exist in 
it, because the wsdl is completely wrong.

This is what it is returning, which is expected...
      <GetRegisteredEducationalInstitutionsResult>
        <RegisteredEducationalInstitution
          xsi:type="ns1:RegisteredEducationalInstitution"
          xmlns:ns1="http://APASProxy.DataTypes/2007/04";>
          <ns1:SourceId>48024000</ns1:SourceId>
          <ns1:EducationalInstitutionName>Lakeland College - Parent 
Institution</ns1:EducationalInstitutionName>
        </RegisteredEducationalInstitution>
        <RegisteredEducationalInstitution
          xsi:type="ns2:RegisteredEducationalInstitution"
          xmlns:ns2="http://APASProxy.DataTypes/2007/04";>
          <ns2:SourceId>48030000</ns2:SourceId>
          <ns2:EducationalInstitutionName>Grant Macewan College - Parent 
Institution
          </ns2:EducationalInstitutionName>
        </RegisteredEducationalInstitution>

So, why is the arrayMapping not causing the wsdl return to have a proper 
definition?

Thanks.

Trenton D. Adams
Systems Analyst/Web Software Engineer
Navy Penguins at your service!
Athabasca University
(780) 675-6195
:wq!

__ 
    This communication is intended for the use of the recipient to whom it
    is addressed, and may contain confidential, personal, and or privileged
    information. Please contact us immediately if you are not the intended
    recipient of this communication, and do not copy, distribute, or take
    action relying on it. Any communications received in error, or
    subsequent reply, should be deleted or destroyed.
---

Reply via email to