AXL Exception : org.xml.sax.SAXException: Invalid element in com.cisco.www.

Version 1
    This document was generated from CDN thread

    Created by: Kevin Schantz on 12-08-2009 03:36:04 PM
    I originally posted a thread in the NetPro forums, but I did not get many responses, so I am reposting the problem.
     
    http://forums.cisco.com/eforum/servlet/NetProf?page=netprof&forum=Unified%20Communications%20and%20Video&topic=IP%20Phone%20Services%20for%20Developers&topicID=.ee94c94&fromOutline=&CommCmd=MB%3Fcmd%3Ddisplay_location%26location%3D.2cd442c6
     
     
    I am trying to call the connection stub method getPhone(), and am getting this exception back. From what i know, this exception is caused by getting back values different from those defined by the wsdl....
     
    org.xml.sax.SAXException: Invalid element in com.cisco.www.AXL.API._6_1.XLine - asciiLabel 
     
    Where can i get an updated wsdl file for 6.1(2)???

    Subject: RE: AXL Exception : org.xml.sax.SAXException: Invalid element in com.cisco.
    Replied by: Kevin Schantz on 14-08-2009 04:00:07 PM
    I have searched Xline.java and have not found the string "asciiLabel" anywhere....
     
    This is what the response looks like when i write my axl getPhone query manually.
     

    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
    <SOAP-ENV:Header/>
    <SOAP-ENV:Body>
      <axl:getPhoneResponse xmlns:axl="http://www.cisco.com/AXL/API/1.0" xmlns:xsi="http://www.cisco.com/AXL/API/1.0" sequence="1234">
       <return>
        <device ctiid="1473" uuid="{3C647D82-DA63-A90C-CBA2-C21B1662C488}">
         <name>SEP0006D737CDBD</name>
         <description>TS Student Worker</description>
         <product>Cisco 7940</product>
         <model>Cisco 7940</model>
         <class>Phone</class>
         <protocol>SCCP</protocol>
         <protocolSide>User</protocolSide>
         <callingSearchSpaceName>SA-SpringArbor</callingSearchSpaceName>
         <devicePoolName>SAU2</devicePoolName>
         <commonDeviceConfigName>MigratedCommonProfile1</commonDeviceConfigName>
         <locationName>SA-Main</locationName>
         <mediaResourceListName>Default Media Resource Group List</mediaResourceListName>
         <networkHoldMOHAudioSourceId>0</networkHoldMOHAudioSourceId>
         <userHoldMOHAudioSourceId>0</userHoldMOHAudioSourceId>
         <automatedAlternateRoutingCSSName/>
         <loadInformation special="false">P00308001000</loadInformation>
         <vendorConfig>
          <disableSpeaker>false</disableSpeaker>
          <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset>
          <pcPort>0</pcPort>
          <settingsAccess>1</settingsAccess>
          <garp>0</garp>
          <voiceVlanAccess>0</voiceVlanAccess>
          <videoCapability>0</videoCapability>
          <autoSelectLineEnable>0</autoSelectLineEnable>
          <webAccess>0</webAccess>
         </vendorConfig>
         <versionStamp>{1247511700-E87D2E46-1E2F-42E5-B55E-17D43FA22473}</versionStamp>
         <traceFlag>false</traceFlag>
         <mlppDomainId>-1</mlppDomainId>
         <mlppIndicationStatus>Default</mlppIndicationStatus>
         <preemption>Default</preemption>
         <retryVideoCallAsAudio>true</retryVideoCallAsAudio>
         <securityProfileName>Security Profile-1</securityProfileName>
         <associatedPC/>
         <lines>
          <line index="1" uuid="{E2483C1D-3580-B439-BADB-7FAB84F6EEAA}">
           <label>Andrew Colchagoff  x1545</label>
           <display>Andrew Colchagoff</display>
           <dirn uuid="{BB975ED1-6FE6-BBFD-7616-222B800DAF25}"/>
           <ringSetting>Use System Default</ringSetting>
           <consecutiveRingSetting>Use System Default</consecutiveRingSetting>
           <ringSettingIdlePickupAlert>Use System Default</ringSettingIdlePickupAlert>
           <ringSettingActivePickupAlert>Use System Default</ringSettingActivePickupAlert>
           <displayASCII>Andrew Colchagoff</displayASCII>
           <e164Mask>5177506XXX</e164Mask>
           <dialPlanWizardId>0</dialPlanWizardId>
           <mwlPolicy>Use System Policy</mwlPolicy>
           <maxNumCalls>4</maxNumCalls>
           <busyTrigger>2</busyTrigger>
           <callInfoDisplay>
            <callerName>true</callerName>
            <callerNumber>false</callerNumber>
            <redirectedNumber>false</redirectedNumber>
            <dialedNumber>true</dialedNumber>
           </callInfoDisplay>
           <recordingProfileName/>
           <monitoringCSSName/>
           <recordingFlagName>Call Recording Disabled</recordingFlagName>
           <audibleMWI>Default</audibleMWI>
           <speedDial/>
           <partitionUsage>General</partitionUsage>
           <associatedEndusers/>
          </line>
         </lines>
         <numberOfButtons>2</numberOfButtons>
         <phoneTemplate uuid="{3EA7864D-4A2E-434E-BB7F-E3B8719B919B}"/>
         <speeddials/>
         <busyLampFields/>
         <primaryPhoneName/>
         <blfDirectedCallParks/>
         <addOnModules/>
         <services>
          <service uuid="{FC289FCF-9931-C0C3-D3BB-63147B35E503}">
           <telecasterService uuid="{232673EA-8313-C0CA-4139-B2E34BECF0B5}"/>
           <name>Text Messaging</name>
           <url>http://jasper.arbor.edu:8080/push2phone/push2phone.jsp</url>
           <urlButtonIndex>0</urlButtonIndex>
           <urlLabel/>
          </service>
         </services>
         <softkeyTemplateName/>
         <loginUserId/>
         <currentConfig>
          <userHoldMOHAudioSourceId>0</userHoldMOHAudioSourceId>
          <phoneTemplate uuid="{3EA7864D-4A2E-434E-BB7F-E3B8719B919B}"/>
          <mlppDomainId>-1</mlppDomainId>
          <mlppIndicationStatus>Default</mlppIndicationStatus>
          <preemption>Default</preemption>
          <softkeyTemplateName/>
          <ignorePresentationIndicators>false</ignorePresentationIndicators>
          <callInfoPrivacyStatus>Default</callInfoPrivacyStatus>
          <dndStatus>false</dndStatus>
         </currentConfig>
         <builtInBridgeStatus>Default</builtInBridgeStatus>
         <callInfoPrivacyStatus>Default</callInfoPrivacyStatus>
         <hlogStatus>On</hlogStatus>
         <ownerUserId/>
         <ignorePresentationIndicators>false</ignorePresentationIndicators>
         <packetCaptureMode>None</packetCaptureMode>
         <packetCaptureDuration>60</packetCaptureDuration>
         <allowCtiControlFlag>true</allowCtiControlFlag>
         <presenceGroupName>Standard Presence group</presenceGroupName>
         <unattendedPort>false</unattendedPort>
         <certificateOperation>No Pending Operation</certificateOperation>
         <authenticationString/>
         <certificateStatus>None</certificateStatus>
         <upgradeFinishTime/>
         <deviceMobilityMode>Default</deviceMobilityMode>
         <remoteDevice>false</remoteDevice>
         <dndOption>Ringer Off</dndOption>
         <dndStatus>false</dndStatus>
         <isDualMode>false</isDualMode>
         <phoneSuite>Default</phoneSuite>
        </device>
       </return>
      </axl:getPhoneResponse>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
     
     
    Notice that this also does not contain the string "asciiLabel"
     
    I'm running low on ideas...

    Subject: RE: AXL Exception : org.xml.sax.SAXException: Invalid element in com.cisco.
    Replied by: Kevin Schantz on 14-08-2009 08:37:04 PM
    I fixed it. The solution was:
     
    1. Delete the file AXLSoap.xsd in axlsqltookit/schema/6.1/WSDL-AXIS/
    2. Copy the xsd files in axlsqltookit/schema/6.1  in to the WSDL-AXIS directory above
    3. rename axlsoap.xsd to AXLSoap.xsd
    4. Regenerate all classes using Axis 1.2