Loading ...
Sorry, an error occurred while loading the content.

1820Strange behavior in SOAP

Expand Messages
  • Bouche
    Sep 11, 2002
      Melding
      Hi,
       
      I'm experiencing some strange things in SOAP which i have trouble fixing.
       
      The response i get from the soap-server looks good....and there is some info i need to extract *look below, a cutout of the response*
      One should belive that when it would be possible to access these elements (resultCauseText & resultCauseCode ), but when i try i only get the
      last element (<resultCauseText xsi:type="xsd:string">Tilgjengelig produktklasse: ADSL 2048/256</resultCauseText>).
       
      I found this pretty strange, and ran a Dumper on the respons-hash, and saw this :
       
      'listOfResultCause' => bless( {
          'item' => bless( {
              'resultCauseText' => 'Tilgjengelig produktklasse: ADSL 2048/256',
              'resultCauseCode' => '180'
          }, 'ResultCause' )
      }, 'Vector' )
       
       
      And this is where it all stops because to me it seemes that the other elements in this Vector is overwriten or something,
      anyone got a clue on what is going on here??
       
       
       
      ***** response ******
       
      <listOfResultCause xsi:type="ns3:Vector">
      <item xmlns:ns9="urn:soap-kapaks-response-ResultCause-kapaksm2minterface" xsi:type="ns9:ResultCause">
      <resultCauseText xsi:type="xsd:string">Linjen har produktet ISDN GT</resultCauseText>
      <resultCauseCode xsi:type="xsd:int">30</resultCauseCode>
      </item>
      <item xmlns:ns10="urn:soap-kapaks-response-ResultCause-kapaksm2minterface" xsi:type="ns10:ResultCause">
      <resultCauseText xsi:type="xsd:string">Total linjelengde inkludert inntak: 496 meter</resultCauseText>
      <resultCauseCode xsi:type="xsd:int">110</resultCauseCode>
      </item>
      <item xmlns:ns11="urn:soap-kapaks-response-ResultCause-kapaksm2minterface" xsi:type="ns11:ResultCause">
      <resultCauseText xsi:type="xsd:string">Lengde på inntak: 100 meter (standard)</resultCauseText>
      <resultCauseCode xsi:type="xsd:int">111</resultCauseCode>
      </item>
      <item xmlns:ns12="urn:soap-kapaks-response-ResultCause-kapaksm2minterface" xsi:type="ns12:ResultCause">
      <resultCauseText xsi:type="xsd:string">Linjestatus: Ukjent</resultCauseText>
      <resultCauseCode xsi:type="xsd:int">122</resultCauseCode>
      </item>
      <item xmlns:ns13="urn:soap-kapaks-response-ResultCause-kapaksm2minterface" xsi:type="ns13:ResultCause">
      <resultCauseText xsi:type="xsd:string">Fabrikat på utstyr: ALCASH</resultCauseText>
      <resultCauseCode xsi:type="xsd:int">150</resultCauseCode>
      </item>
      <item xmlns:ns14="urn:soap-kapaks-response-ResultCause-kapaksm2minterface" xsi:type="ns14:ResultCause">
      <resultCauseText xsi:type="xsd:string">Tilgjengelig produktklasse: ADSL 2048/256</resultCauseText>
      <resultCauseCode xsi:type="xsd:int">180</resultCauseCode>
      </item>
      </listOfResultCause>
       
       
      --
      Med vennlig hilsen / Kind regards
      Stig Woxholt - Senior Programmer
      Tiscali Norway AS
      P.O. Box 598, Skøyen - N-0214 Oslo
      Tel + 47 24 11 24 00 - Fax + 47 24 11 24 11
      Dir + 47 24 11 28 25 - Mob + 47 99 21 76 45
       
    • Show all 3 messages in this topic