0 Replies Latest reply on Feb 22, 2010 7:34 AM by flexprinter

    Strange behaviour inside SOAPDecoder.as SDK source code

    flexprinter

      Hi All,

       

      I'm trying to communicate via SOAP using an specific service.

      I created the code to call this service using WSDL wizard.

      My problem is that the result to any requested service is always null.

      Just debugging I have discovered that the result is arriving correctly from the service, but SOAPDecoder code is not able to extract the correct values.

       

      Inside SOAPDecoder.as file, at the line 441 there is the instruction:

       

      encodedPartValues = outputMessageXML.elements(part.name);

       

      Just before running the assignment, outputMessageXML variable contains:


      <GET-CURRENT-LOADED-MEDIA-RESPONSE outcome="OK"  xmlns="http://www.bpo.hp.com/PaperManagement" xmlns:ColorSpaces="http://www.bpo.hp.com/ColorSpaces" xmlns:EngineOperations="http://www.bpo.hp.com/EngineOperations" xmlns:Languages="http://www.bpo.hp.com/Languages" xmlns:PublicIcc="http://www.bpo.hp.com/PublicIcc" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cds="http://www.bpo.hp.com/cds" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <LoadedMedia>
          MyMedia
        </LoadedMedia>
        <MediaID>
          1121
        </MediaID>
      </GET-CURRENT-LOADED-MEDIA-RESPONSE>

       

      and part.name contains:


      name QName (@f39e539)
          localName    "MediaID"
          uri            "http://www.bpo.hp.com:8086/PaperManagement"

       

      After running line 441, encondedPartValues (which is an XMLList variable) has some value, byut the framework doesn't let me to watch it.

      Next instruction is in line 450:

       

      for each (encodedPartValue in encodedPartValues)

       

      The problem is that the "for" code is never executed as encodedPartValue is always null.

       

      Having in mind the original variable values I was specting to have "1121" value in encondedPartValues and exactly the same in encodedPartValue in the first "for" iteration.

       

      I'm assuming something wrong? (I have no so much experience with SOAP protocol)

       

      I'm using Flex3 with SDK 3.0.0 under Windoes Vista.

       

      Thank you in advance for your time.

      Regards,

       

      Angel.