Python论坛  - 讨论区

标题:[python-chinese] 请教:Python调用WebService的问题(SOAPy)

2004年09月16日 星期四 16:37

Jacky Lee jagucpu at 126.com
Thu Sep 16 16:37:48 HKT 2004

使用SOAPy调用Java开发的WebService,大部分调用都能成功,其中有一个服务接口返回了一个20个元素的数组,每个数组元素也比较长,这时就出现异常了。

其它接口没有这样的问题,也有好几个是返回自定义结构的数组。只是这个返回的数据稍多一些。

有人知道如何解决这个问题吗?异常信息如下:

Traceback (most recent call last):
  File "", line 1, in -toplevel-
    gs.getRooms(1)
  File "c:\soft\python24\Lib\site-packages\SOAPpy\Client.py", line 453, in __call__
    return self.__r_call(*args, **kw)
  File "c:\soft\python24\Lib\site-packages\SOAPpy\Client.py", line 475, in __r_call
    self.__hd, self.__ma)
  File "c:\soft\python24\Lib\site-packages\SOAPpy\Client.py", line 379, in __call
    p, attrs = parseSOAPRPC(r, attrs = 1)
  File "c:\soft\python24\Lib\site-packages\SOAPpy\Parser.py", line 1006, in parseSOAPRPC
    t = _parseSOAP(xml_str, rules = rules)
  File "c:\soft\python24\Lib\site-packages\SOAPpy\Parser.py", line 985, in _parseSOAP
    parser.parse(inpsrc)
  File "c:\soft\python24\lib\xml\sax\expatreader.py", line 107, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "c:\soft\python24\lib\xml\sax\xmlreader.py", line 123, in parse
    self.feed(buffer)
  File "c:\soft\python24\lib\xml\sax\expatreader.py", line 207, in feed
    self._parser.Parse(data, isFinal)
  File "c:\soft\python24\lib\xml\sax\expatreader.py", line 348, in end_element_ns
    self._cont_handler.endElementNS(pair, None)
  File "c:\soft\python24\Lib\site-packages\SOAPpy\Parser.py", line 395, in endElementNS
    i.parent._placeItem(i.name, data, i.pos, i.subpos, attrs)
  File "c:\soft\python24\Lib\site-packages\SOAPpy\Types.py", line 1311, in _placeItem
    self._keyord[pos] = name
IndexError: list assignment index out of range
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20040916/3d6604df/attachment.htm

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2004年09月16日 星期四 16:41

Jacky Lee jagucpu at 126.com
Thu Sep 16 16:41:27 HKT 2004

我还有另一个接口,一次返回一个元素,我循环了20次,调用没有问题。我把这20次获得的数据发在这吧,看看为什么一次过来就不能解析?

: {'dealerLastChangeTime': (2004, 9, 14, 1, 5, 24.059999999999999), 'maxBet': 500, 'dealerName': None, 'maxTotalBet': 1000000, 'playerCount': 0, 'gameType': 1, 'roomCapacity': 7, 'siteID': 1, 'cameraID': 1, 'maxExposure': 1000000, 'minBet': 50, 'roomID': 1, 'gameStatus': 0, 'cameraStatus': 0}
: {'dealerLastChangeTime': (2004, 9, 14, 1, 5, 24.059999999999999), 'maxBet': 500, 'dealerName': None, 'maxTotalBet': 1000000, 'playerCount': 0, 'gameType': 1, 'roomCapacity': 7, 'siteID': 1, 'cameraID': 1, 'maxExposure': 1000000, 'minBet': 50, 'roomID': 2, 'gameStatus': 0, 'cameraStatus': 0}
: {'dealerLastChangeTime': (2004, 9, 14, 1, 5, 24.059999999999999), 'maxBet': 500, 'dealerName': None, 'maxTotalBet': 1000000, 'playerCount': 0, 'gameType': 1, 'roomCapacity': 7, 'siteID': 1, 'cameraID': 1, 'maxExposure': 1000000, 'minBet': 50, 'roomID': 3, 'gameStatus': 0, 'cameraStatus': 0}
: {'dealerLastChangeTime': (2004, 9, 14, 1, 5, 24.059999999999999), 'maxBet': 500, 'dealerName': None, 'maxTotalBet': 1000000, 'playerCount': 0, 'gameType': 1, 'roomCapacity': 7, 'siteID': 1, 'cameraID': 1, 'maxExposure': 1000000, 'minBet': 50, 'roomID': 4, 'gameStatus': 0, 'cameraStatus': 0}
: {'dealerLastChangeTime': (2004, 9, 14, 1, 5, 24.059999999999999), 'maxBet': 500, 'dealerName': None, 'maxTotalBet': 1000000, 'playerCount': 0, 'gameType': 1, 'roomCapacity': 7, 'siteID': 1, 'cameraID': 1, 'maxExposure': 1000000, 'minBet': 50, 'roomID': 5, 'gameStatus': 0, 'cameraStatus': 0}
: {'dealerLastChangeTime': (2004, 9, 14, 1, 5, 24.059999999999999), 'maxBet': 1000, 'dealerName': None, 'maxTotalBet': 1000000, 'playerCount': 0, 'gameType': 1, 'roomCapacity': 7, 'siteID': 1, 'cameraID': 1, 'maxExposure': 1000000, 'minBet': 100, 'roomID': 6, 'gameStatus': 0, 'cameraStatus': 0}
: {'dealerLastChangeTime': (2004, 9, 14, 1, 5, 24.059999999999999), 'maxBet': 1000, 'dealerName': None, 'maxTotalBet': 1000000, 'playerCount': 0, 'gameType': 1, 'roomCapacity': 7, 'siteID': 1, 'cameraID': 1, 'maxExposure': 1000000, 'minBet': 100, 'roomID': 7, 'gameStatus': 0, 'cameraStatus': 0}
: {'dealerLastChangeTime': (2004, 9, 14, 1, 5, 24.059999999999999), 'maxBet': 1000, 'dealerName': None, 'maxTotalBet': 1000000, 'playerCount': 0, 'gameType': 1, 'roomCapacity': 7, 'siteID': 1, 'cameraID': 1, 'maxExposure': 1000000, 'minBet': 100, 'roomID': 8, 'gameStatus': 0, 'cameraStatus': 0}
: {'dealerLastChangeTime': (2004, 9, 14, 1, 5, 24.059999999999999), 'maxBet': 5000, 'dealerName': None, 'maxTotalBet': 1000000, 'playerCount': 0, 'gameType': 1, 'roomCapacity': 7, 'siteID': 1, 'cameraID': 1, 'maxExposure': 1000000, 'minBet': 500, 'roomID': 9, 'gameStatus': 0, 'cameraStatus': 0}
: {'dealerLastChangeTime': (2004, 9, 14, 1, 5, 24.059999999999999), 'maxBet': 5000, 'dealerName': None, 'maxTotalBet': 1000000, 'playerCount': 0, 'gameType': 1, 'roomCapacity': 7, 'siteID': 1, 'cameraID': 1, 'maxExposure': 1000000, 'minBet': 500, 'roomID': 10, 'gameStatus': 0, 'cameraStatus': 0}
: {'dealerLastChangeTime': (2004, 9, 9, 5, 13, 15.224), 'maxBet': 500, 'dealerName': None, 'maxTotalBet': 1000000, 'playerCount': 0, 'gameType': 1, 'roomCapacity': 7, 'siteID': 1, 'cameraID': 2, 'maxExposure': 1000000, 'minBet': 50, 'roomID': 11, 'gameStatus': 0, 'cameraStatus': 0}
: {'dealerLastChangeTime': (2004, 9, 9, 5, 13, 15.224), 'maxBet': 500, 'dealerName': None, 'maxTotalBet': 1000000, 'playerCount': 0, 'gameType': 1, 'roomCapacity': 7, 'siteID': 1, 'cameraID': 2, 'maxExposure': 1000000, 'minBet': 50, 'roomID': 12, 'gameStatus': 0, 'cameraStatus': 0}
: {'dealerLastChangeTime': (2004, 9, 9, 5, 13, 15.224), 'maxBet': 500, 'dealerName': None, 'maxTotalBet': 1000000, 'playerCount': 0, 'gameType': 1, 'roomCapacity': 7, 'siteID': 1, 'cameraID': 2, 'maxExposure': 1000000, 'minBet': 50, 'roomID': 13, 'gameStatus': 0, 'cameraStatus': 0}
: {'dealerLastChangeTime': (2004, 9, 9, 5, 13, 15.224), 'maxBet': 500, 'dealerName': None, 'maxTotalBet': 1000000, 'playerCount': 0, 'gameType': 1, 'roomCapacity': 7, 'siteID': 1, 'cameraID': 2, 'maxExposure': 1000000, 'minBet': 50, 'roomID': 14, 'gameStatus': 0, 'cameraStatus': 0}
: {'dealerLastChangeTime': (2004, 9, 9, 5, 13, 15.224), 'maxBet': 500, 'dealerName': None, 'maxTotalBet': 1000000, 'playerCount': 0, 'gameType': 1, 'roomCapacity': 7, 'siteID': 1, 'cameraID': 2, 'maxExposure': 1000000, 'minBet': 50, 'roomID': 15, 'gameStatus': 0, 'cameraStatus': 0}
: {'dealerLastChangeTime': (2004, 9, 9, 5, 13, 15.224), 'maxBet': 1000, 'dealerName': None, 'maxTotalBet': 1000000, 'playerCount': 0, 'gameType': 1, 'roomCapacity': 7, 'siteID': 1, 'cameraID': 2, 'maxExposure': 1000000, 'minBet': 100, 'roomID': 16, 'gameStatus': 0, 'cameraStatus': 0}
: {'dealerLastChangeTime': (2004, 9, 9, 5, 13, 15.224), 'maxBet': 1000, 'dealerName': None, 'maxTotalBet': 1000000, 'playerCount': 0, 'gameType': 1, 'roomCapacity': 7, 'siteID': 1, 'cameraID': 2, 'maxExposure': 1000000, 'minBet': 100, 'roomID': 17, 'gameStatus': 0, 'cameraStatus': 0}
: {'dealerLastChangeTime': (2004, 9, 9, 5, 13, 15.224), 'maxBet': 1000, 'dealerName': None, 'maxTotalBet': 1000000, 'playerCount': 0, 'gameType': 1, 'roomCapacity': 7, 'siteID': 1, 'cameraID': 2, 'maxExposure': 1000000, 'minBet': 100, 'roomID': 18, 'gameStatus': 0, 'cameraStatus': 0}
: {'dealerLastChangeTime': (2004, 9, 9, 5, 13, 15.224), 'maxBet': 5000, 'dealerName': None, 'maxTotalBet': 1000000, 'playerCount': 0, 'gameType': 1, 'roomCapacity': 7, 'siteID': 1, 'cameraID': 2, 'maxExposure': 1000000, 'minBet': 500, 'roomID': 19, 'gameStatus': 0, 'cameraStatus': 0}
: {'dealerLastChangeTime': (2004, 9, 9, 5, 13, 15.224), 'maxBet': 5000, 'dealerName': None, 'maxTotalBet': 1000000, 'playerCount': 0, 'gameType': 1, 'roomCapacity': 7, 'siteID': 1, 'cameraID': 2, 'maxExposure': 1000000, 'minBet': 500, 'roomID': 20, 'gameStatus': 0, 'cameraStatus': 0}
  ----- Original Message ----- 
  From: Jacky Lee 
  To: python-chinese at lists.python.cn 
  Sent: Thursday, September 16, 2004 4:37 PM
  Subject: [python-chinese] 请教:Python调用WebService的问题(SOAPy) 


  使用SOAPy调用Java开发的WebService,大部分调用都能成功,其中有一个服务接口返回了一个20个元素的数组,每个数组元素也比较长,这时就出现异常了。

  其它接口没有这样的问题,也有好几个是返回自定义结构的数组。只是这个返回的数据稍多一些。

  有人知道如何解决这个问题吗?异常信息如下:

  Traceback (most recent call last):
    File "", line 1, in -toplevel-
      gs.getRooms(1)
    File "c:\soft\python24\Lib\site-packages\SOAPpy\Client.py", line 453, in __call__
      return self.__r_call(*args, **kw)
    File "c:\soft\python24\Lib\site-packages\SOAPpy\Client.py", line 475, in __r_call
      self.__hd, self.__ma)
    File "c:\soft\python24\Lib\site-packages\SOAPpy\Client.py", line 379, in __call
      p, attrs = parseSOAPRPC(r, attrs = 1)
    File "c:\soft\python24\Lib\site-packages\SOAPpy\Parser.py", line 1006, in parseSOAPRPC
      t = _parseSOAP(xml_str, rules = rules)
    File "c:\soft\python24\Lib\site-packages\SOAPpy\Parser.py", line 985, in _parseSOAP
      parser.parse(inpsrc)
    File "c:\soft\python24\lib\xml\sax\expatreader.py", line 107, in parse
      xmlreader.IncrementalParser.parse(self, source)
    File "c:\soft\python24\lib\xml\sax\xmlreader.py", line 123, in parse
      self.feed(buffer)
    File "c:\soft\python24\lib\xml\sax\expatreader.py", line 207, in feed
      self._parser.Parse(data, isFinal)
    File "c:\soft\python24\lib\xml\sax\expatreader.py", line 348, in end_element_ns
      self._cont_handler.endElementNS(pair, None)
    File "c:\soft\python24\Lib\site-packages\SOAPpy\Parser.py", line 395, in endElementNS
      i.parent._placeItem(i.name, data, i.pos, i.subpos, attrs)
    File "c:\soft\python24\Lib\site-packages\SOAPpy\Types.py", line 1311, in _placeItem
      self._keyord[pos] = name
  IndexError: list assignment index out of range



------------------------------------------------------------------------------


  _______________________________________________
  python-chinese list
  python-chinese at lists.python.cn
  http://python.cn/mailman/listinfo/python-chinese
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20040916/51b60a86/attachment.html

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2004年09月16日 星期四 16:42

Jacky Lee jagucpu at 126.com
Thu Sep 16 16:42:48 HKT 2004

这是我在浏览器里面调用时的正常返回结果,数据没有问题,要说有什么问题,估计是
太长了些:

  
- http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- 
- http://schemas.xmlsoap.org/soap/encoding/">
- http://datatypes.baccarat"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
- http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="ns2:RoomInfo"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns2="http://datatypes.baccarat">
  2
  0
  2004-09-09T05:13:15.224Z
  
  0
  1
  1000
  1000000
  1000000
  100
  0
  7
  18
  1
  
- http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="ns3:RoomInfo" xmlns:ns3="http://datatypes.baccarat"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
  1
  0
  2004-09-14T01:05:24.060Z
  
  0
  1
  500
  1000000
  1000000
  50
  0
  7
  3
  1
  
- http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="ns4:RoomInfo" xmlns:ns4="http://datatypes.baccarat"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
  1
  0
  2004-09-14T01:05:24.060Z
  
  0
  1
  500
  1000000
  1000000
  50
  0
  7
  4
  1
  
- http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="ns5:RoomInfo" xmlns:ns5="http://datatypes.baccarat"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
  2
  0
  2004-09-09T05:13:15.224Z
  
  0
  1
  1000
  1000000
  1000000
  100
  0
  7
  17
  1
  
- http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="ns6:RoomInfo" xmlns:ns6="http://datatypes.baccarat"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
  2
  0
  2004-09-09T05:13:15.224Z
  
  0
  1
  500
  1000000
  1000000
  50
  0
  7
  13
  1
  
- http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="ns7:RoomInfo" xmlns:ns7="http://datatypes.baccarat"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
  1
  0
  2004-09-14T01:05:24.060Z
  
  0
  1
  500
  1000000
  1000000
  50
  0
  7
  1
  1
  
- http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="ns8:RoomInfo" xmlns:ns8="http://datatypes.baccarat"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
  2
  0
  2004-09-09T05:13:15.224Z
  
  0
  1
  500
  1000000
  1000000
  50
  0
  7
  11
  1
  
- http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="ns9:RoomInfo" xmlns:ns9="http://datatypes.baccarat"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
  1
  0
  2004-09-14T01:05:24.060Z
  
  0
  1
  1000
  1000000
  1000000
  100
  0
  7
  6
  1
  
- http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="ns10:RoomInfo" xmlns:ns10="http://datatypes.baccarat"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
  1
  0
  2004-09-14T01:05:24.060Z
  
  0
  1
  500
  1000000
  1000000
  50
  0
  7
  5
  1
  
- http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="ns11:RoomInfo" xmlns:ns11="http://datatypes.baccarat"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
  2
  0
  2004-09-09T05:13:15.224Z
  
  0
  1
  1000
  1000000
  1000000
  100
  0
  7
  16
  1
  
- http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="ns12:RoomInfo" xmlns:ns12="http://datatypes.baccarat"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
  1
  0
  2004-09-14T01:05:24.060Z
  
  0
  1
  500
  1000000
  1000000
  50
  0
  7
  2
  1
  
- http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="ns13:RoomInfo" xmlns:ns13="http://datatypes.baccarat"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
  1
  0
  2004-09-14T01:05:24.060Z
  
  0
  1
  5000
  1000000
  1000000
  500
  0
  7
  9
  1
  
- http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="ns14:RoomInfo" xmlns:ns14="http://datatypes.baccarat"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
  2
  0
  2004-09-09T05:13:15.224Z
  
  0
  1
  500
  1000000
  1000000
  50
  0
  7
  12
  1
  
- http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="ns15:RoomInfo" xmlns:ns15="http://datatypes.baccarat"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
  1
  0
  2004-09-14T01:05:24.060Z
  
  0
  1
  1000
  1000000
  1000000
  100
  0
  7
  8
  1
  
- http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="ns16:RoomInfo" xmlns:ns16="http://datatypes.baccarat"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
  2
  0
  2004-09-09T05:13:15.224Z
  
  0
  1
  5000
  1000000
  1000000
  500
  0
  7
  20
  1
  
- http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="ns17:RoomInfo" xmlns:ns17="http://datatypes.baccarat"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
  1
  0
  2004-09-14T01:05:24.060Z
  
  0
  1
  1000
  1000000
  1000000
  100
  0
  7
  7
  1
  
- http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="ns18:RoomInfo" xmlns:ns18="http://datatypes.baccarat"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
  2
  0
  2004-09-09T05:13:15.224Z
  
  0
  1
  5000
  1000000
  1000000
  500
  0
  7
  19
  1
  
- http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="ns19:RoomInfo" xmlns:ns19="http://datatypes.baccarat"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
  2
  0
  2004-09-09T05:13:15.224Z
  
  0
  1
  500
  1000000
  1000000
  50
  0
  7
  15
  1
  
- http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="ns20:RoomInfo" xmlns:ns20="http://datatypes.baccarat"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
  2
  0
  2004-09-09T05:13:15.224Z
  
  0
  1
  500
  1000000
  1000000
  50
  0
  7
  14
  1
  
- http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="ns21:RoomInfo" xmlns:ns21="http://datatypes.baccarat"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
  1
  0
  2004-09-14T01:05:24.060Z
  
  0
  1
  5000
  1000000
  1000000
  500
  0
  7
  10
  1
  
  
  


----- Original Message ----- 
From: Jacky Lee
To: python-chinese at lists.python.cn
Sent: Thursday, September 16, 2004 4:37 PM
Subject: [python-chinese] 请教:Python调用WebService的问题(SOAPy)


使用SOAPy调用Java开发的WebService,大部分调用都能成功,其中有一个服务接口返
回了一个20个元素的数组,每个数组元素也比较长,这时就出现异常了。

其它接口没有这样的问题,也有好几个是返回自定义结构的数组。只是这个返回的数据
稍多一些。

有人知道如何解决这个问题吗?异常信息如下:

Traceback (most recent call last):
  File "", line 1, in -toplevel-
    gs.getRooms(1)
  File "c:\soft\python24\Lib\site-packages\SOAPpy\Client.py", line 453, in
__call__
    return self.__r_call(*args, **kw)
  File "c:\soft\python24\Lib\site-packages\SOAPpy\Client.py", line 475, in
__r_call
    self.__hd, self.__ma)
  File "c:\soft\python24\Lib\site-packages\SOAPpy\Client.py", line 379, in
__call
    p, attrs = parseSOAPRPC(r, attrs = 1)
  File "c:\soft\python24\Lib\site-packages\SOAPpy\Parser.py", line 1006, in
parseSOAPRPC
    t = _parseSOAP(xml_str, rules = rules)
  File "c:\soft\python24\Lib\site-packages\SOAPpy\Parser.py", line 985, in
_parseSOAP
    parser.parse(inpsrc)
  File "c:\soft\python24\lib\xml\sax\expatreader.py", line 107, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "c:\soft\python24\lib\xml\sax\xmlreader.py", line 123, in parse
    self.feed(buffer)
  File "c:\soft\python24\lib\xml\sax\expatreader.py", line 207, in feed
    self._parser.Parse(data, isFinal)
  File "c:\soft\python24\lib\xml\sax\expatreader.py", line 348, in
end_element_ns
    self._cont_handler.endElementNS(pair, None)
  File "c:\soft\python24\Lib\site-packages\SOAPpy\Parser.py", line 395, in
endElementNS
    i.parent._placeItem(i.name, data, i.pos, i.subpos, attrs)
  File "c:\soft\python24\Lib\site-packages\SOAPpy\Types.py", line 1311, in
_placeItem
    self._keyord[pos] = name
IndexError: list assignment index out of range




_______________________________________________
python-chinese list
python-chinese at lists.python.cn
http://python.cn/mailman/listinfo/python-chinese




[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2004年09月16日 星期四 16:57

Jacky Lee jagucpu at 126.com
Thu Sep 16 16:57:10 HKT 2004

准确地说,我使用的是SOAPpy,这些个库的命名着实有些糟糕。。。刚看了IBM developerWorks上面的提醒我才想起来看看我用的是哪个。
  ----- Original Message ----- 
  From: Jacky Lee 
  To: python-chinese at lists.python.cn 
  Sent: Thursday, September 16, 2004 4:37 PM
  Subject: [python-chinese] 请教:Python调用WebService的问题(SOAPy) 


  使用SOAPy调用Java开发的WebService,大部分调用都能成功,其中有一个服务接口返回了一个20个元素的数组,每个数组元素也比较长,这时就出现异常了。

  其它接口没有这样的问题,也有好几个是返回自定义结构的数组。只是这个返回的数据稍多一些。

  有人知道如何解决这个问题吗?异常信息如下:

  Traceback (most recent call last):
    File "", line 1, in -toplevel-
      gs.getRooms(1)
    File "c:\soft\python24\Lib\site-packages\SOAPpy\Client.py", line 453, in __call__
      return self.__r_call(*args, **kw)
    File "c:\soft\python24\Lib\site-packages\SOAPpy\Client.py", line 475, in __r_call
      self.__hd, self.__ma)
    File "c:\soft\python24\Lib\site-packages\SOAPpy\Client.py", line 379, in __call
      p, attrs = parseSOAPRPC(r, attrs = 1)
    File "c:\soft\python24\Lib\site-packages\SOAPpy\Parser.py", line 1006, in parseSOAPRPC
      t = _parseSOAP(xml_str, rules = rules)
    File "c:\soft\python24\Lib\site-packages\SOAPpy\Parser.py", line 985, in _parseSOAP
      parser.parse(inpsrc)
    File "c:\soft\python24\lib\xml\sax\expatreader.py", line 107, in parse
      xmlreader.IncrementalParser.parse(self, source)
    File "c:\soft\python24\lib\xml\sax\xmlreader.py", line 123, in parse
      self.feed(buffer)
    File "c:\soft\python24\lib\xml\sax\expatreader.py", line 207, in feed
      self._parser.Parse(data, isFinal)
    File "c:\soft\python24\lib\xml\sax\expatreader.py", line 348, in end_element_ns
      self._cont_handler.endElementNS(pair, None)
    File "c:\soft\python24\Lib\site-packages\SOAPpy\Parser.py", line 395, in endElementNS
      i.parent._placeItem(i.name, data, i.pos, i.subpos, attrs)
    File "c:\soft\python24\Lib\site-packages\SOAPpy\Types.py", line 1311, in _placeItem
      self._keyord[pos] = name
  IndexError: list assignment index out of range



------------------------------------------------------------------------------


  _______________________________________________
  python-chinese list
  python-chinese at lists.python.cn
  http://python.cn/mailman/listinfo/python-chinese
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20040916/9174b587/attachment.htm

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2004年09月16日 星期四 17:06

梅劲松  stephen.cn at gmail.com
Thu Sep 16 17:06:12 HKT 2004

没有程序,只能猜测一下问题的所在。
你常识将所有的返回值都解析成字符串看看,我觉得可能和数字过大有关


On Thu, 16 Sep 2004 16:42:48 +0800, Jacky Lee <jagucpu at 126.com> wrote:
> 这是我在浏览器里面调用时的正常返回结果,数据没有问题,要说有什么问题,估计是
> 太长了些:
> 
>   
> - > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> - 
> - > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
> - > soapenc:arrayType="ns1:RoomInfo[20]" xmlns:ns1="http://datatypes.baccarat"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
> - > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> xsi:type="ns2:RoomInfo"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
> xmlns:ns2="http://datatypes.baccarat">
>   2
>   0
>   > xsi:type="xsd:dateTime">2004-09-09T05:13:15.224Z
>   
>   0
>   1
>   1000
>   1000000
>   1000000
>   100
>   0
>   7
>   18
>   1
>   
> - > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> xsi:type="ns3:RoomInfo" xmlns:ns3="http://datatypes.baccarat"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
>   1
>   0
>   > xsi:type="xsd:dateTime">2004-09-14T01:05:24.060Z
>   
>   0
>   1
>   500
>   1000000
>   1000000
>   50
>   0
>   7
>   3
>   1
>   
> - > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> xsi:type="ns4:RoomInfo" xmlns:ns4="http://datatypes.baccarat"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
>   1
>   0
>   > xsi:type="xsd:dateTime">2004-09-14T01:05:24.060Z
>   
>   0
>   1
>   500
>   1000000
>   1000000
>   50
>   0
>   7
>   4
>   1
>   
> - > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> xsi:type="ns5:RoomInfo" xmlns:ns5="http://datatypes.baccarat"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
>   2
>   0
>   > xsi:type="xsd:dateTime">2004-09-09T05:13:15.224Z
>   
>   0
>   1
>   1000
>   1000000
>   1000000
>   100
>   0
>   7
>   17
>   1
>   
> - > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> xsi:type="ns6:RoomInfo" xmlns:ns6="http://datatypes.baccarat"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
>   2
>   0
>   > xsi:type="xsd:dateTime">2004-09-09T05:13:15.224Z
>   
>   0
>   1
>   500
>   1000000
>   1000000
>   50
>   0
>   7
>   13
>   1
>   
> - > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> xsi:type="ns7:RoomInfo" xmlns:ns7="http://datatypes.baccarat"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
>   1
>   0
>   > xsi:type="xsd:dateTime">2004-09-14T01:05:24.060Z
>   
>   0
>   1
>   500
>   1000000
>   1000000
>   50
>   0
>   7
>   1
>   1
>   
> - > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> xsi:type="ns8:RoomInfo" xmlns:ns8="http://datatypes.baccarat"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
>   2
>   0
>   > xsi:type="xsd:dateTime">2004-09-09T05:13:15.224Z
>   
>   0
>   1
>   500
>   1000000
>   1000000
>   50
>   0
>   7
>   11
>   1
>   
> - > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> xsi:type="ns9:RoomInfo" xmlns:ns9="http://datatypes.baccarat"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
>   1
>   0
>   > xsi:type="xsd:dateTime">2004-09-14T01:05:24.060Z
>   
>   0
>   1
>   1000
>   1000000
>   1000000
>   100
>   0
>   7
>   6
>   1
>   
> - > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> xsi:type="ns10:RoomInfo" xmlns:ns10="http://datatypes.baccarat"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
>   1
>   0
>   > xsi:type="xsd:dateTime">2004-09-14T01:05:24.060Z
>   
>   0
>   1
>   500
>   1000000
>   1000000
>   50
>   0
>   7
>   5
>   1
>   
> - > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> xsi:type="ns11:RoomInfo" xmlns:ns11="http://datatypes.baccarat"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
>   2
>   0
>   > xsi:type="xsd:dateTime">2004-09-09T05:13:15.224Z
>   
>   0
>   1
>   1000
>   1000000
>   1000000
>   100
>   0
>   7
>   16
>   1
>   
> - > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> xsi:type="ns12:RoomInfo" xmlns:ns12="http://datatypes.baccarat"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
>   1
>   0
>   > xsi:type="xsd:dateTime">2004-09-14T01:05:24.060Z
>   
>   0
>   1
>   500
>   1000000
>   1000000
>   50
>   0
>   7
>   2
>   1
>   
> - > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> xsi:type="ns13:RoomInfo" xmlns:ns13="http://datatypes.baccarat"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
>   1
>   0
>   > xsi:type="xsd:dateTime">2004-09-14T01:05:24.060Z
>   
>   0
>   1
>   5000
>   1000000
>   1000000
>   500
>   0
>   7
>   9
>   1
>   
> - > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> xsi:type="ns14:RoomInfo" xmlns:ns14="http://datatypes.baccarat"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
>   2
>   0
>   > xsi:type="xsd:dateTime">2004-09-09T05:13:15.224Z
>   
>   0
>   1
>   500
>   1000000
>   1000000
>   50
>   0
>   7
>   12
>   1
>   
> - > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> xsi:type="ns15:RoomInfo" xmlns:ns15="http://datatypes.baccarat"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
>   1
>   0
>   > xsi:type="xsd:dateTime">2004-09-14T01:05:24.060Z
>   
>   0
>   1
>   1000
>   1000000
>   1000000
>   100
>   0
>   7
>   8
>   1
>   
> - > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> xsi:type="ns16:RoomInfo" xmlns:ns16="http://datatypes.baccarat"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
>   2
>   0
>   > xsi:type="xsd:dateTime">2004-09-09T05:13:15.224Z
>   
>   0
>   1
>   5000
>   1000000
>   1000000
>   500
>   0
>   7
>   20
>   1
>   
> - > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> xsi:type="ns17:RoomInfo" xmlns:ns17="http://datatypes.baccarat"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
>   1
>   0
>   > xsi:type="xsd:dateTime">2004-09-14T01:05:24.060Z
>   
>   0
>   1
>   1000
>   1000000
>   1000000
>   100
>   0
>   7
>   7
>   1
>   
> - > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> xsi:type="ns18:RoomInfo" xmlns:ns18="http://datatypes.baccarat"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
>   2
>   0
>   > xsi:type="xsd:dateTime">2004-09-09T05:13:15.224Z
>   
>   0
>   1
>   5000
>   1000000
>   1000000
>   500
>   0
>   7
>   19
>   1
>   
> - > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> xsi:type="ns19:RoomInfo" xmlns:ns19="http://datatypes.baccarat"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
>   2
>   0
>   > xsi:type="xsd:dateTime">2004-09-09T05:13:15.224Z
>   
>   0
>   1
>   500
>   1000000
>   1000000
>   50
>   0
>   7
>   15
>   1
>   
> - > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> xsi:type="ns20:RoomInfo" xmlns:ns20="http://datatypes.baccarat"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
>   2
>   0
>   > xsi:type="xsd:dateTime">2004-09-09T05:13:15.224Z
>   
>   0
>   1
>   500
>   1000000
>   1000000
>   50
>   0
>   7
>   14
>   1
>   
> - > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> xsi:type="ns21:RoomInfo" xmlns:ns21="http://datatypes.baccarat"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
>   1
>   0
>   > xsi:type="xsd:dateTime">2004-09-14T01:05:24.060Z
>   
>   0
>   1
>   5000
>   1000000
>   1000000
>   500
>   0
>   7
>   10
>   1
>   
>   
>   
> 
> 
> ----- Original Message -----
> From: Jacky Lee
> To: python-chinese at lists.python.cn
> Sent: Thursday, September 16, 2004 4:37 PM
> Subject: [python-chinese] 请教:Python调用WebService的问题(SOAPy)
> 
> 使用SOAPy调用Java开发的WebService,大部分调用都能成功,其中有一个服务接口返
> 回了一个20个元素的数组,每个数组元素也比较长,这时就出现异常了。
> 
> 其它接口没有这样的问题,也有好几个是返回自定义结构的数组。只是这个返回的数据
> 稍多一些。
> 
> 有人知道如何解决这个问题吗?异常信息如下:
> 
> Traceback (most recent call last):
>   File "", line 1, in -toplevel-
>     gs.getRooms(1)
>   File "c:\soft\python24\Lib\site-packages\SOAPpy\Client.py", line 453, in
> __call__
>     return self.__r_call(*args, **kw)
>   File "c:\soft\python24\Lib\site-packages\SOAPpy\Client.py", line 475, in
> __r_call
>     self.__hd, self.__ma)
>   File "c:\soft\python24\Lib\site-packages\SOAPpy\Client.py", line 379, in
> __call
>     p, attrs = parseSOAPRPC(r, attrs = 1)
>   File "c:\soft\python24\Lib\site-packages\SOAPpy\Parser.py", line 1006, in
> parseSOAPRPC
>     t = _parseSOAP(xml_str, rules = rules)
>   File "c:\soft\python24\Lib\site-packages\SOAPpy\Parser.py", line 985, in
> _parseSOAP
>     parser.parse(inpsrc)
>   File "c:\soft\python24\lib\xml\sax\expatreader.py", line 107, in parse
>     xmlreader.IncrementalParser.parse(self, source)
>   File "c:\soft\python24\lib\xml\sax\xmlreader.py", line 123, in parse
>     self.feed(buffer)
>   File "c:\soft\python24\lib\xml\sax\expatreader.py", line 207, in feed
>     self._parser.Parse(data, isFinal)
>   File "c:\soft\python24\lib\xml\sax\expatreader.py", line 348, in
> end_element_ns
>     self._cont_handler.endElementNS(pair, None)
>   File "c:\soft\python24\Lib\site-packages\SOAPpy\Parser.py", line 395, in
> endElementNS
>     i.parent._placeItem(i.name, data, i.pos, i.subpos, attrs)
>   File "c:\soft\python24\Lib\site-packages\SOAPpy\Types.py", line 1311, in
> _placeItem
>     self._keyord[pos] = name
> IndexError: list assignment index out of range
> 
> _______________________________________________
> python-chinese list
> python-chinese at lists.python.cn
> http://python.cn/mailman/listinfo/python-chinese
> 
> 
> 
> 
> _______________________________________________
> python-chinese list
> python-chinese at lists.python.cn
> http://python.cn/mailman/listinfo/python-chinese
>


[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2004年09月16日 星期四 17:32

Jacky Lee jagucpu at 126.com
Thu Sep 16 17:32:55 HKT 2004

我有2个函数,一个是一次返回一个元素,运行正常,我调用了20次来获得那20组数
据。另一个是一次返回20个元素的数组,我调用一次来获得那20组数据,运行异常。一
次返回一组正常,好像不是数字太大的原因。

异常输出里有一行:IndexError: list assignment index out of range,我怀疑是它
里面定义了一个list用来容纳那些标记,但list初始容量太小,出现这个异常,比如:

>>> a=[1,2,3,4,5]
>>> a
[1, 2, 3, 4, 5]
>>> a[4]
5
>>> a[5]=3

Traceback (most recent call last):
  File "", line 1, in -toplevel-
    a[5]=3
IndexError: list assignment index out of range

也会出现这个异常。所以我估计它是定义了一个list,以后有记号直接加入到里面,如
果这样的话还不如调用append函数。

这2个函数在java和ie浏览器里调用都正常,C++里有gsoap调用也正常。
----- Original Message ----- 
From: "梅劲松" <stephen.cn at gmail.com>
To: <python-chinese at lists.python.cn>
Sent: Thursday, September 16, 2004 5:06 PM
Subject: Re: [python-chinese] 请教:Python调用WebServ ice的问题(SOAPy)


没有程序,只能猜测一下问题的所在。
你常识将所有的返回值都解析成字符串看看,我觉得可能和数字过大有关


On Thu, 16 Sep 2004 16:42:48 +0800, Jacky Lee <jagucpu at 126.com> wrote:
> 这是我在浏览器里面调用时的正常返回结果,数据没有问题,要说有什么问题,估计
是
> 太长了些:
>
>   
> - > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> - 
> - > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
> - > soapenc:arrayType="ns1:RoomInfo[20]" xmlns:ns1="http://datatypes.baccarat"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
> - > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> xsi:type="ns2:RoomInfo"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
> xmlns:ns2="http://datatypes.baccarat">
>   2
>   0
>   > xsi:type="xsd:dateTime">2004-09-09T05:13:15.224Z
>   
>   0
>   1
>   1000
>   1000000
>   1000000
>   100
>   0
>   7
>   18
>   1
>   
> - > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> xsi:type="ns3:RoomInfo" xmlns:ns3="http://datatypes.baccarat"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
>   1
>   0
>   > xsi:type="xsd:dateTime">2004-09-14T01:05:24.060Z
>   
>   0
>   1
>   500
>   1000000
>   1000000
>   50
>   0
>   7
>   3
>   1
>   
> - > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> xsi:type="ns4:RoomInfo" xmlns:ns4="http://datatypes.baccarat"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
>   1
>   0
>   > xsi:type="xsd:dateTime">2004-09-14T01:05:24.060Z
>   
>   0
>   1
>   500
>   1000000
>   1000000
>   50
>   0
>   7
>   4
>   1
>   
> - > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> xsi:type="ns5:RoomInfo" xmlns:ns5="http://datatypes.baccarat"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
>   2
>   0
>   > xsi:type="xsd:dateTime">2004-09-09T05:13:15.224Z
>   
>   0
>   1
>   1000
>   1000000
>   1000000
>   100
>   0
>   7
>   17
>   1
>   
> - > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> xsi:type="ns6:RoomInfo" xmlns:ns6="http://datatypes.baccarat"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
>   2
>   0
>   > xsi:type="xsd:dateTime">2004-09-09T05:13:15.224Z
>   
>   0
>   1
>   500
>   1000000
>   1000000
>   50
>   0
>   7
>   13
>   1
>   
> - > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> xsi:type="ns7:RoomInfo" xmlns:ns7="http://datatypes.baccarat"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
>   1
>   0
>   > xsi:type="xsd:dateTime">2004-09-14T01:05:24.060Z
>   
>   0
>   1
>   500
>   1000000
>   1000000
>   50
>   0
>   7
>   1
>   1
>   
> - > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> xsi:type="ns8:RoomInfo" xmlns:ns8="http://datatypes.baccarat"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
>   2
>   0
>   > xsi:type="xsd:dateTime">2004-09-09T05:13:15.224Z
>   
>   0
>   1
>   500
>   1000000
>   1000000
>   50
>   0
>   7
>   11
>   1
>   
> - > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> xsi:type="ns9:RoomInfo" xmlns:ns9="http://datatypes.baccarat"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
>   1
>   0
>   > xsi:type="xsd:dateTime">2004-09-14T01:05:24.060Z
>   
>   0
>   1
>   1000
>   1000000
>   1000000
>   100
>   0
>   7
>   6
>   1
>   
> - > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> xsi:type="ns10:RoomInfo" xmlns:ns10="http://datatypes.baccarat"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
>   1
>   0
>   > xsi:type="xsd:dateTime">2004-09-14T01:05:24.060Z
>   
>   0
>   1
>   500
>   1000000
>   1000000
>   50
>   0
>   7
>   5
>   1
>   
> - > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> xsi:type="ns11:RoomInfo" xmlns:ns11="http://datatypes.baccarat"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
>   2
>   0
>   > xsi:type="xsd:dateTime">2004-09-09T05:13:15.224Z
>   
>   0
>   1
>   1000
>   1000000
>   1000000
>   100
>   0
>   7
>   16
>   1
>   
> - > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> xsi:type="ns12:RoomInfo" xmlns:ns12="http://datatypes.baccarat"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
>   1
>   0
>   > xsi:type="xsd:dateTime">2004-09-14T01:05:24.060Z
>   
>   0
>   1
>   500
>   1000000
>   1000000
>   50
>   0
>   7
>   2
>   1
>   
> - > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> xsi:type="ns13:RoomInfo" xmlns:ns13="http://datatypes.baccarat"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
>   1
>   0
>   > xsi:type="xsd:dateTime">2004-09-14T01:05:24.060Z
>   
>   0
>   1
>   5000
>   1000000
>   1000000
>   500
>   0
>   7
>   9
>   1
>   
> - > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> xsi:type="ns14:RoomInfo" xmlns:ns14="http://datatypes.baccarat"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
>   2
>   0
>   > xsi:type="xsd:dateTime">2004-09-09T05:13:15.224Z
>   
>   0
>   1
>   500
>   1000000
>   1000000
>   50
>   0
>   7
>   12
>   1
>   
> - > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> xsi:type="ns15:RoomInfo" xmlns:ns15="http://datatypes.baccarat"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
>   1
>   0
>   > xsi:type="xsd:dateTime">2004-09-14T01:05:24.060Z
>   
>   0
>   1
>   1000
>   1000000
>   1000000
>   100
>   0
>   7
>   8
>   1
>   
> - > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> xsi:type="ns16:RoomInfo" xmlns:ns16="http://datatypes.baccarat"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
>   2
>   0
>   > xsi:type="xsd:dateTime">2004-09-09T05:13:15.224Z
>   
>   0
>   1
>   5000
>   1000000
>   1000000
>   500
>   0
>   7
>   20
>   1
>   
> - > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> xsi:type="ns17:RoomInfo" xmlns:ns17="http://datatypes.baccarat"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
>   1
>   0
>   > xsi:type="xsd:dateTime">2004-09-14T01:05:24.060Z
>   
>   0
>   1
>   1000
>   1000000
>   1000000
>   100
>   0
>   7
>   7
>   1
>   
> - > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> xsi:type="ns18:RoomInfo" xmlns:ns18="http://datatypes.baccarat"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
>   2
>   0
>   > xsi:type="xsd:dateTime">2004-09-09T05:13:15.224Z
>   
>   0
>   1
>   5000
>   1000000
>   1000000
>   500
>   0
>   7
>   19
>   1
>   
> - > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> xsi:type="ns19:RoomInfo" xmlns:ns19="http://datatypes.baccarat"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
>   2
>   0
>   > xsi:type="xsd:dateTime">2004-09-09T05:13:15.224Z
>   
>   0
>   1
>   500
>   1000000
>   1000000
>   50
>   0
>   7
>   15
>   1
>   
> - > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> xsi:type="ns20:RoomInfo" xmlns:ns20="http://datatypes.baccarat"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
>   2
>   0
>   > xsi:type="xsd:dateTime">2004-09-09T05:13:15.224Z
>   
>   0
>   1
>   500
>   1000000
>   1000000
>   50
>   0
>   7
>   14
>   1
>   
> - > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> xsi:type="ns21:RoomInfo" xmlns:ns21="http://datatypes.baccarat"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
>   1
>   0
>   > xsi:type="xsd:dateTime">2004-09-14T01:05:24.060Z
>   
>   0
>   1
>   5000
>   1000000
>   1000000
>   500
>   0
>   7
>   10
>   1
>   
>   
>   
>
>
> ----- Original Message -----
> From: Jacky Lee
> To: python-chinese at lists.python.cn
> Sent: Thursday, September 16, 2004 4:37 PM
> Subject: [python-chinese] 请教:Python调用WebService的问题(SOAPy)
>
> 使用SOAPy调用Java开发的WebService,大部分调用都能成功,其中有一个服务接口
返
> 回了一个20个元素的数组,每个数组元素也比较长,这时就出现异常了。
>
> 其它接口没有这样的问题,也有好几个是返回自定义结构的数组。只是这个返回的数
据
> 稍多一些。
>
> 有人知道如何解决这个问题吗?异常信息如下:
>
> Traceback (most recent call last):
>   File "", line 1, in -toplevel-
>     gs.getRooms(1)
>   File "c:\soft\python24\Lib\site-packages\SOAPpy\Client.py", line 453, in
> __call__
>     return self.__r_call(*args, **kw)
>   File "c:\soft\python24\Lib\site-packages\SOAPpy\Client.py", line 475, in
> __r_call
>     self.__hd, self.__ma)
>   File "c:\soft\python24\Lib\site-packages\SOAPpy\Client.py", line 379, in
> __call
>     p, attrs = parseSOAPRPC(r, attrs = 1)
>   File "c:\soft\python24\Lib\site-packages\SOAPpy\Parser.py", line 1006,
in
> parseSOAPRPC
>     t = _parseSOAP(xml_str, rules = rules)
>   File "c:\soft\python24\Lib\site-packages\SOAPpy\Parser.py", line 985, in
> _parseSOAP
>     parser.parse(inpsrc)
>   File "c:\soft\python24\lib\xml\sax\expatreader.py", line 107, in parse
>     xmlreader.IncrementalParser.parse(self, source)
>   File "c:\soft\python24\lib\xml\sax\xmlreader.py", line 123, in parse
>     self.feed(buffer)
>   File "c:\soft\python24\lib\xml\sax\expatreader.py", line 207, in feed
>     self._parser.Parse(data, isFinal)
>   File "c:\soft\python24\lib\xml\sax\expatreader.py", line 348, in
> end_element_ns
>     self._cont_handler.endElementNS(pair, None)
>   File "c:\soft\python24\Lib\site-packages\SOAPpy\Parser.py", line 395, in
> endElementNS
>     i.parent._placeItem(i.name, data, i.pos, i.subpos, attrs)
>   File "c:\soft\python24\Lib\site-packages\SOAPpy\Types.py", line 1311, in
> _placeItem
>     self._keyord[pos] = name
> IndexError: list assignment index out of range
>
> _______________________________________________
> python-chinese list
> python-chinese at lists.python.cn
> http://python.cn/mailman/listinfo/python-chinese
>
>
>
>
> _______________________________________________
> python-chinese list
> python-chinese at lists.python.cn
> http://python.cn/mailman/listinfo/python-chinese
>
_______________________________________________
python-chinese list
python-chinese at lists.python.cn
http://python.cn/mailman/listinfo/python-chinese




[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2004年09月17日 星期五 09:48

Jacky Lee jagucpu at 126.com
Fri Sep 17 09:48:44 HKT 2004

请大家看看这个问题好吗?
----- Original Message ----- 
From: "Jacky Lee" <jagucpu at 126.com>
To: "梅劲松" <stephen.cn at gmail.com>; <python-chinese at lists.python.cn>
Sent: Thursday, September 16, 2004 5:32 PM
Subject: Re: [python-chinese] 请教:Python调用WebServ ice的问题(SOAPy)


> 我有2个函数,一个是一次返回一个元素,运行正常,我调用了20次来获得那20组数
> 据。另一个是一次返回20个元素的数组,我调用一次来获得那20组数据,运行异常。
一
> 次返回一组正常,好像不是数字太大的原因。
>
> 异常输出里有一行:IndexError: list assignment index out of range,我怀疑是
它
> 里面定义了一个list用来容纳那些标记,但list初始容量太小,出现这个异常,比如
:
>
> >>> a=[1,2,3,4,5]
> >>> a
> [1, 2, 3, 4, 5]
> >>> a[4]
> 5
> >>> a[5]=3
>
> Traceback (most recent call last):
>   File "", line 1, in -toplevel-
>     a[5]=3
> IndexError: list assignment index out of range
>
> 也会出现这个异常。所以我估计它是定义了一个list,以后有记号直接加入到里面,
如
> 果这样的话还不如调用append函数。
>
> 这2个函数在java和ie浏览器里调用都正常,C++里有gsoap调用也正常。
> ----- Original Message ----- 
> From: "梅劲松" <stephen.cn at gmail.com>
> To: <python-chinese at lists.python.cn>
> Sent: Thursday, September 16, 2004 5:06 PM
> Subject: Re: [python-chinese] 请教:Python调用WebServ ice的问题(SOAPy)
>
>
> 没有程序,只能猜测一下问题的所在。
> 你常识将所有的返回值都解析成字符串看看,我觉得可能和数字过大有关
>
>
> On Thu, 16 Sep 2004 16:42:48 +0800, Jacky Lee <jagucpu at 126.com> wrote:
> > 这是我在浏览器里面调用时的正常返回结果,数据没有问题,要说有什么问题,估
计
>> > 太长了些:
> >
> >   
> > - > > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> > - 
> > - > > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
> > - > > soapenc:arrayType="ns1:RoomInfo[20]"
xmlns:ns1="http://datatypes.baccarat"
> > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
> >   
> >   
> >   
> >   
> >   
> >   
> >   
> >   
> >   
> >   
> >   
> >   
> >   
> >   
> >   
> >   
> >   
> >   
> >   
> >   
> >   
> >   
> > - > > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> > xsi:type="ns2:RoomInfo"
> > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
> > xmlns:ns2="http://datatypes.baccarat">
> >   2
> >   0
> >   > > xsi:type="xsd:dateTime">2004-09-09T05:13:15.224Z
> >   
> >   0
> >   1
> >   1000
> >   1000000
> >   1000000
> >   100
> >   0
> >   7
> >   18
> >   1
> >   
> > - > > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> > xsi:type="ns3:RoomInfo" xmlns:ns3="http://datatypes.baccarat"
> > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
> >   1
> >   0
> >   > > xsi:type="xsd:dateTime">2004-09-14T01:05:24.060Z
> >   
> >   0
> >   1
> >   500
> >   1000000
> >   1000000
> >   50
> >   0
> >   7
> >   3
> >   1
> >   
> > - > > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> > xsi:type="ns4:RoomInfo" xmlns:ns4="http://datatypes.baccarat"
> > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
> >   1
> >   0
> >   > > xsi:type="xsd:dateTime">2004-09-14T01:05:24.060Z
> >   
> >   0
> >   1
> >   500
> >   1000000
> >   1000000
> >   50
> >   0
> >   7
> >   4
> >   1
> >   
> > - > > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> > xsi:type="ns5:RoomInfo" xmlns:ns5="http://datatypes.baccarat"
> > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
> >   2
> >   0
> >   > > xsi:type="xsd:dateTime">2004-09-09T05:13:15.224Z
> >   
> >   0
> >   1
> >   1000
> >   1000000
> >   1000000
> >   100
> >   0
> >   7
> >   17
> >   1
> >   
> > - > > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> > xsi:type="ns6:RoomInfo" xmlns:ns6="http://datatypes.baccarat"
> > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
> >   2
> >   0
> >   > > xsi:type="xsd:dateTime">2004-09-09T05:13:15.224Z
> >   
> >   0
> >   1
> >   500
> >   1000000
> >   1000000
> >   50
> >   0
> >   7
> >   13
> >   1
> >   
> > - > > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> > xsi:type="ns7:RoomInfo" xmlns:ns7="http://datatypes.baccarat"
> > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
> >   1
> >   0
> >   > > xsi:type="xsd:dateTime">2004-09-14T01:05:24.060Z
> >   
> >   0
> >   1
> >   500
> >   1000000
> >   1000000
> >   50
> >   0
> >   7
> >   1
> >   1
> >   
> > - > > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> > xsi:type="ns8:RoomInfo" xmlns:ns8="http://datatypes.baccarat"
> > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
> >   2
> >   0
> >   > > xsi:type="xsd:dateTime">2004-09-09T05:13:15.224Z
> >   
> >   0
> >   1
> >   500
> >   1000000
> >   1000000
> >   50
> >   0
> >   7
> >   11
> >   1
> >   
> > - > > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> > xsi:type="ns9:RoomInfo" xmlns:ns9="http://datatypes.baccarat"
> > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
> >   1
> >   0
> >   > > xsi:type="xsd:dateTime">2004-09-14T01:05:24.060Z
> >   
> >   0
> >   1
> >   1000
> >   1000000
> >   1000000
> >   100
> >   0
> >   7
> >   6
> >   1
> >   
> > - > > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> > xsi:type="ns10:RoomInfo" xmlns:ns10="http://datatypes.baccarat"
> > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
> >   1
> >   0
> >   > > xsi:type="xsd:dateTime">2004-09-14T01:05:24.060Z
> >   
> >   0
> >   1
> >   500
> >   1000000
> >   1000000
> >   50
> >   0
> >   7
> >   5
> >   1
> >   
> > - > > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> > xsi:type="ns11:RoomInfo" xmlns:ns11="http://datatypes.baccarat"
> > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
> >   2
> >   0
> >   > > xsi:type="xsd:dateTime">2004-09-09T05:13:15.224Z
> >   
> >   0
> >   1
> >   1000
> >   1000000
> >   1000000
> >   100
> >   0
> >   7
> >   16
> >   1
> >   
> > - > > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> > xsi:type="ns12:RoomInfo" xmlns:ns12="http://datatypes.baccarat"
> > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
> >   1
> >   0
> >   > > xsi:type="xsd:dateTime">2004-09-14T01:05:24.060Z
> >   
> >   0
> >   1
> >   500
> >   1000000
> >   1000000
> >   50
> >   0
> >   7
> >   2
> >   1
> >   
> > - > > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> > xsi:type="ns13:RoomInfo" xmlns:ns13="http://datatypes.baccarat"
> > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
> >   1
> >   0
> >   > > xsi:type="xsd:dateTime">2004-09-14T01:05:24.060Z
> >   
> >   0
> >   1
> >   5000
> >   1000000
> >   1000000
> >   500
> >   0
> >   7
> >   9
> >   1
> >   
> > - > > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> > xsi:type="ns14:RoomInfo" xmlns:ns14="http://datatypes.baccarat"
> > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
> >   2
> >   0
> >   > > xsi:type="xsd:dateTime">2004-09-09T05:13:15.224Z
> >   
> >   0
> >   1
> >   500
> >   1000000
> >   1000000
> >   50
> >   0
> >   7
> >   12
> >   1
> >   
> > - > > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> > xsi:type="ns15:RoomInfo" xmlns:ns15="http://datatypes.baccarat"
> > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
> >   1
> >   0
> >   > > xsi:type="xsd:dateTime">2004-09-14T01:05:24.060Z
> >   
> >   0
> >   1
> >   1000
> >   1000000
> >   1000000
> >   100
> >   0
> >   7
> >   8
> >   1
> >   
> > - > > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> > xsi:type="ns16:RoomInfo" xmlns:ns16="http://datatypes.baccarat"
> > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
> >   2
> >   0
> >   > > xsi:type="xsd:dateTime">2004-09-09T05:13:15.224Z
> >   
> >   0
> >   1
> >   5000
> >   1000000
> >   1000000
> >   500
> >   0
> >   7
> >   20
> >   1
> >   
> > - > > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> > xsi:type="ns17:RoomInfo" xmlns:ns17="http://datatypes.baccarat"
> > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
> >   1
> >   0
> >   > > xsi:type="xsd:dateTime">2004-09-14T01:05:24.060Z
> >   
> >   0
> >   1
> >   1000
> >   1000000
> >   1000000
> >   100
> >   0
> >   7
> >   7
> >   1
> >   
> > - > > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> > xsi:type="ns18:RoomInfo" xmlns:ns18="http://datatypes.baccarat"
> > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
> >   2
> >   0
> >   > > xsi:type="xsd:dateTime">2004-09-09T05:13:15.224Z
> >   
> >   0
> >   1
> >   5000
> >   1000000
> >   1000000
> >   500
> >   0
> >   7
> >   19
> >   1
> >   
> > - > > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> > xsi:type="ns19:RoomInfo" xmlns:ns19="http://datatypes.baccarat"
> > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
> >   2
> >   0
> >   > > xsi:type="xsd:dateTime">2004-09-09T05:13:15.224Z
> >   
> >   0
> >   1
> >   500
> >   1000000
> >   1000000
> >   50
> >   0
> >   7
> >   15
> >   1
> >   
> > - > > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> > xsi:type="ns20:RoomInfo" xmlns:ns20="http://datatypes.baccarat"
> > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
> >   2
> >   0
> >   > > xsi:type="xsd:dateTime">2004-09-09T05:13:15.224Z
> >   
> >   0
> >   1
> >   500
> >   1000000
> >   1000000
> >   50
> >   0
> >   7
> >   14
> >   1
> >   
> > - > > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> > xsi:type="ns21:RoomInfo" xmlns:ns21="http://datatypes.baccarat"
> > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
> >   1
> >   0
> >   > > xsi:type="xsd:dateTime">2004-09-14T01:05:24.060Z
> >   
> >   0
> >   1
> >   5000
> >   1000000
> >   1000000
> >   500
> >   0
> >   7
> >   10
> >   1
> >   
> >   
> >   
> >
> >
> > ----- Original Message -----
> > From: Jacky Lee
> > To: python-chinese at lists.python.cn
> > Sent: Thursday, September 16, 2004 4:37 PM
> > Subject: [python-chinese] 请教:Python调用WebService的问题(SOAPy)
> >
> > 使用SOAPy调用Java开发的WebService,大部分调用都能成功,其中有一个服务接
口
>> > 回了一个20个元素的数组,每个数组元素也比较长,这时就出现异常了。
> >
> > 其它接口没有这样的问题,也有好几个是返回自定义结构的数组。只是这个返回的
数
>> > 稍多一些。
> >
> > 有人知道如何解决这个问题吗?异常信息如下:
> >
> > Traceback (most recent call last):
> >   File "", line 1, in -toplevel-
> >     gs.getRooms(1)
> >   File "c:\soft\python24\Lib\site-packages\SOAPpy\Client.py", line 453,
in
> > __call__
> >     return self.__r_call(*args, **kw)
> >   File "c:\soft\python24\Lib\site-packages\SOAPpy\Client.py", line 475,
in
> > __r_call
> >     self.__hd, self.__ma)
> >   File "c:\soft\python24\Lib\site-packages\SOAPpy\Client.py", line 379,
in
> > __call
> >     p, attrs = parseSOAPRPC(r, attrs = 1)
> >   File "c:\soft\python24\Lib\site-packages\SOAPpy\Parser.py", line 1006,
> in
> > parseSOAPRPC
> >     t = _parseSOAP(xml_str, rules = rules)
> >   File "c:\soft\python24\Lib\site-packages\SOAPpy\Parser.py", line 985,
in
> > _parseSOAP
> >     parser.parse(inpsrc)
> >   File "c:\soft\python24\lib\xml\sax\expatreader.py", line 107, in parse
> >     xmlreader.IncrementalParser.parse(self, source)
> >   File "c:\soft\python24\lib\xml\sax\xmlreader.py", line 123, in parse
> >     self.feed(buffer)
> >   File "c:\soft\python24\lib\xml\sax\expatreader.py", line 207, in feed
> >     self._parser.Parse(data, isFinal)
> >   File "c:\soft\python24\lib\xml\sax\expatreader.py", line 348, in
> > end_element_ns
> >     self._cont_handler.endElementNS(pair, None)
> >   File "c:\soft\python24\Lib\site-packages\SOAPpy\Parser.py", line 395,
in
> > endElementNS
> >     i.parent._placeItem(i.name, data, i.pos, i.subpos, attrs)
> >   File "c:\soft\python24\Lib\site-packages\SOAPpy\Types.py", line 1311,
in
> > _placeItem
> >     self._keyord[pos] = name
> > IndexError: list assignment index out of range
> >
> > _______________________________________________
> > python-chinese list
> > python-chinese at lists.python.cn
> > http://python.cn/mailman/listinfo/python-chinese
> >
> >
> >
> >
> > _______________________________________________
> > python-chinese list
> > python-chinese at lists.python.cn
> > http://python.cn/mailman/listinfo/python-chinese
> >
> _______________________________________________
> python-chinese list
> python-chinese at lists.python.cn
> http://python.cn/mailman/listinfo/python-chinese
>
>
> _______________________________________________
> python-chinese list
> python-chinese at lists.python.cn
> http://python.cn/mailman/listinfo/python-chinese
>




[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2004年09月17日 星期五 09:56

梅劲松  stephen.cn at gmail.com
Fri Sep 17 09:56:15 HKT 2004

你的意图是什么,你这个提示是正确的。
如果你想找到5这个数字所在的位置,应该是a.index(5)
如果你是想在a的后面再加上一个3,将a变成[1,2,3,4,5,3]那么应该是a.append(3)
如果你是想让a变成[1,2,3,4,5],应该是a[4]=3或者a[a.index(5)]=3

> >>> a=[1,2,3,4,5]
> >>> a
> [1, 2, 3, 4, 5]
> >>> a[4]
> 5
> >>> a[5]=3

On Fri, 17 Sep 2004 09:48:44 +0800, Jacky Lee <jagucpu at 126.com> wrote:
> 请大家看看这个问题好吗?
> ----- Original Message -----
> From: "Jacky Lee" <jagucpu at 126.com>
> To: "梅劲松" <stephen.cn at gmail.com>; <python-chinese at lists.python.cn>
> Sent: Thursday, September 16, 2004 5:32 PM
> Subject: Re: [python-chinese] 请教:Python调用WebServ ice的问题(SOAPy)
> 
> > 我有2个函数,一个是一次返回一个元素,运行正常,我调用了20次来获得那20组数
> > 据。另一个是一次返回20个元素的数组,我调用一次来获得那20组数据,运行异常。
>> > 次返回一组正常,好像不是数字太大的原因。
> >
> > 异常输出里有一行:IndexError: list assignment index out of range,我怀疑是
>> > 里面定义了一个list用来容纳那些标记,但list初始容量太小,出现这个异常,比如
>> >
> > >>> a=[1,2,3,4,5]
> > >>> a
> > [1, 2, 3, 4, 5]
> > >>> a[4]
> > 5
> > >>> a[5]=3
> >
> > Traceback (most recent call last):
> >   File "", line 1, in -toplevel-
> >     a[5]=3
> > IndexError: list assignment index out of range
> >
> > 也会出现这个异常。所以我估计它是定义了一个list,以后有记号直接加入到里面,
>> > 果这样的话还不如调用append函数。
> >
> > 这2个函数在java和ie浏览器里调用都正常,C++里有gsoap调用也正常。
> > ----- Original Message -----
> > From: "梅劲松" <stephen.cn at gmail.com>
> > To: <python-chinese at lists.python.cn>
> > Sent: Thursday, September 16, 2004 5:06 PM
> > Subject: Re: [python-chinese] 请教:Python调用WebServ ice的问题(SOAPy)
> >
> >
> > 没有程序,只能猜测一下问题的所在。
> > 你常识将所有的返回值都解析成字符串看看,我觉得可能和数字过大有关
> >
> >
> > On Thu, 16 Sep 2004 16:42:48 +0800, Jacky Lee <jagucpu at 126.com> wrote:
> > > 这是我在浏览器里面调用时的正常返回结果,数据没有问题,要说有什么问题,估
>> > 是
> > > 太长了些:
> > >
> > >   
> > > - > > > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> > > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> > > - 
> > > - > > > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
> > > - > > > soapenc:arrayType="ns1:RoomInfo[20]"
> xmlns:ns1="http://datatypes.baccarat"
> > > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
> > >   
> > >   
> > >   
> > >   
> > >   
> > >   
> > >   
> > >   
> > >   
> > >   
> > >   
> > >   
> > >   
> > >   
> > >   
> > >   
> > >   
> > >   
> > >   
> > >   
> > >   
> > >   
> > > - > > > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> > > xsi:type="ns2:RoomInfo"
> > > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
> > > xmlns:ns2="http://datatypes.baccarat">
> > >   2
> > >   0
> > >   > > > xsi:type="xsd:dateTime">2004-09-09T05:13:15.224Z
> > >   
> > >   0
> > >   1
> > >   1000
> > >   1000000
> > >   1000000
> > >   100
> > >   0
> > >   7
> > >   18
> > >   1
> > >   
> > > - > > > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> > > xsi:type="ns3:RoomInfo" xmlns:ns3="http://datatypes.baccarat"
> > > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
> > >   1
> > >   0
> > >   > > > xsi:type="xsd:dateTime">2004-09-14T01:05:24.060Z
> > >   
> > >   0
> > >   1
> > >   500
> > >   1000000
> > >   1000000
> > >   50
> > >   0
> > >   7
> > >   3
> > >   1
> > >   
> > > - > > > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> > > xsi:type="ns4:RoomInfo" xmlns:ns4="http://datatypes.baccarat"
> > > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
> > >   1
> > >   0
> > >   > > > xsi:type="xsd:dateTime">2004-09-14T01:05:24.060Z
> > >   
> > >   0
> > >   1
> > >   500
> > >   1000000
> > >   1000000
> > >   50
> > >   0
> > >   7
> > >   4
> > >   1
> > >   
> > > - > > > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> > > xsi:type="ns5:RoomInfo" xmlns:ns5="http://datatypes.baccarat"
> > > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
> > >   2
> > >   0
> > >   > > > xsi:type="xsd:dateTime">2004-09-09T05:13:15.224Z
> > >   
> > >   0
> > >   1
> > >   1000
> > >   1000000
> > >   1000000
> > >   100
> > >   0
> > >   7
> > >   17
> > >   1
> > >   
> > > - > > > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> > > xsi:type="ns6:RoomInfo" xmlns:ns6="http://datatypes.baccarat"
> > > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
> > >   2
> > >   0
> > >   > > > xsi:type="xsd:dateTime">2004-09-09T05:13:15.224Z
> > >   
> > >   0
> > >   1
> > >   500
> > >   1000000
> > >   1000000
> > >   50
> > >   0
> > >   7
> > >   13
> > >   1
> > >   
> > > - > > > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> > > xsi:type="ns7:RoomInfo" xmlns:ns7="http://datatypes.baccarat"
> > > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
> > >   1
> > >   0
> > >   > > > xsi:type="xsd:dateTime">2004-09-14T01:05:24.060Z
> > >   
> > >   0
> > >   1
> > >   500
> > >   1000000
> > >   1000000
> > >   50
> > >   0
> > >   7
> > >   1
> > >   1
> > >   
> > > - > > > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> > > xsi:type="ns8:RoomInfo" xmlns:ns8="http://datatypes.baccarat"
> > > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
> > >   2
> > >   0
> > >   > > > xsi:type="xsd:dateTime">2004-09-09T05:13:15.224Z
> > >   
> > >   0
> > >   1
> > >   500
> > >   1000000
> > >   1000000
> > >   50
> > >   0
> > >   7
> > >   11
> > >   1
> > >   
> > > - > > > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> > > xsi:type="ns9:RoomInfo" xmlns:ns9="http://datatypes.baccarat"
> > > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
> > >   1
> > >   0
> > >   > > > xsi:type="xsd:dateTime">2004-09-14T01:05:24.060Z
> > >   
> > >   0
> > >   1
> > >   1000
> > >   1000000
> > >   1000000
> > >   100
> > >   0
> > >   7
> > >   6
> > >   1
> > >   
> > > - > > > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> > > xsi:type="ns10:RoomInfo" xmlns:ns10="http://datatypes.baccarat"
> > > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
> > >   1
> > >   0
> > >   > > > xsi:type="xsd:dateTime">2004-09-14T01:05:24.060Z
> > >   
> > >   0
> > >   1
> > >   500
> > >   1000000
> > >   1000000
> > >   50
> > >   0
> > >   7
> > >   5
> > >   1
> > >   
> > > - > > > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> > > xsi:type="ns11:RoomInfo" xmlns:ns11="http://datatypes.baccarat"
> > > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
> > >   2
> > >   0
> > >   > > > xsi:type="xsd:dateTime">2004-09-09T05:13:15.224Z
> > >   
> > >   0
> > >   1
> > >   1000
> > >   1000000
> > >   1000000
> > >   100
> > >   0
> > >   7
> > >   16
> > >   1
> > >   
> > > - > > > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> > > xsi:type="ns12:RoomInfo" xmlns:ns12="http://datatypes.baccarat"
> > > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
> > >   1
> > >   0
> > >   > > > xsi:type="xsd:dateTime">2004-09-14T01:05:24.060Z
> > >   
> > >   0
> > >   1
> > >   500
> > >   1000000
> > >   1000000
> > >   50
> > >   0
> > >   7
> > >   2
> > >   1
> > >   
> > > - > > > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> > > xsi:type="ns13:RoomInfo" xmlns:ns13="http://datatypes.baccarat"
> > > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
> > >   1
> > >   0
> > >   > > > xsi:type="xsd:dateTime">2004-09-14T01:05:24.060Z
> > >   
> > >   0
> > >   1
> > >   5000
> > >   1000000
> > >   1000000
> > >   500
> > >   0
> > >   7
> > >   9
> > >   1
> > >   
> > > - > > > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> > > xsi:type="ns14:RoomInfo" xmlns:ns14="http://datatypes.baccarat"
> > > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
> > >   2
> > >   0
> > >   > > > xsi:type="xsd:dateTime">2004-09-09T05:13:15.224Z
> > >   
> > >   0
> > >   1
> > >   500
> > >   1000000
> > >   1000000
> > >   50
> > >   0
> > >   7
> > >   12
> > >   1
> > >   
> > > - > > > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> > > xsi:type="ns15:RoomInfo" xmlns:ns15="http://datatypes.baccarat"
> > > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
> > >   1
> > >   0
> > >   > > > xsi:type="xsd:dateTime">2004-09-14T01:05:24.060Z
> > >   
> > >   0
> > >   1
> > >   1000
> > >   1000000
> > >   1000000
> > >   100
> > >   0
> > >   7
> > >   8
> > >   1
> > >   
> > > - > > > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> > > xsi:type="ns16:RoomInfo" xmlns:ns16="http://datatypes.baccarat"
> > > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
> > >   2
> > >   0
> > >   > > > xsi:type="xsd:dateTime">2004-09-09T05:13:15.224Z
> > >   
> > >   0
> > >   1
> > >   5000
> > >   1000000
> > >   1000000
> > >   500
> > >   0
> > >   7
> > >   20
> > >   1
> > >   
> > > - > > > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> > > xsi:type="ns17:RoomInfo" xmlns:ns17="http://datatypes.baccarat"
> > > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
> > >   1
> > >   0
> > >   > > > xsi:type="xsd:dateTime">2004-09-14T01:05:24.060Z
> > >   
> > >   0
> > >   1
> > >   1000
> > >   1000000
> > >   1000000
> > >   100
> > >   0
> > >   7
> > >   7
> > >   1
> > >   
> > > - > > > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> > > xsi:type="ns18:RoomInfo" xmlns:ns18="http://datatypes.baccarat"
> > > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
> > >   2
> > >   0
> > >   > > > xsi:type="xsd:dateTime">2004-09-09T05:13:15.224Z
> > >   
> > >   0
> > >   1
> > >   5000
> > >   1000000
> > >   1000000
> > >   500
> > >   0
> > >   7
> > >   19
> > >   1
> > >   
> > > - > > > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> > > xsi:type="ns19:RoomInfo" xmlns:ns19="http://datatypes.baccarat"
> > > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
> > >   2
> > >   0
> > >   > > > xsi:type="xsd:dateTime">2004-09-09T05:13:15.224Z
> > >   
> > >   0
> > >   1
> > >   500
> > >   1000000
> > >   1000000
> > >   50
> > >   0
> > >   7
> > >   15
> > >   1
> > >   
> > > - > > > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> > > xsi:type="ns20:RoomInfo" xmlns:ns20="http://datatypes.baccarat"
> > > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
> > >   2
> > >   0
> > >   > > > xsi:type="xsd:dateTime">2004-09-09T05:13:15.224Z
> > >   
> > >   0
> > >   1
> > >   500
> > >   1000000
> > >   1000000
> > >   50
> > >   0
> > >   7
> > >   14
> > >   1
> > >   
> > > - > > > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> > > xsi:type="ns21:RoomInfo" xmlns:ns21="http://datatypes.baccarat"
> > > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
> > >   1
> > >   0
> > >   > > > xsi:type="xsd:dateTime">2004-09-14T01:05:24.060Z
> > >   
> > >   0
> > >   1
> > >   5000
> > >   1000000
> > >   1000000
> > >   500
> > >   0
> > >   7
> > >   10
> > >   1
> > >   
> > >   
> > >   
> > >
> > >
> > > ----- Original Message -----
> > > From: Jacky Lee
> > > To: python-chinese at lists.python.cn
> > > Sent: Thursday, September 16, 2004 4:37 PM
> > > Subject: [python-chinese] 请教:Python调用WebService的问题(SOAPy)
> > >
> > > 使用SOAPy调用Java开发的WebService,大部分调用都能成功,其中有一个服务接
>> > 返
> > > 回了一个20个元素的数组,每个数组元素也比较长,这时就出现异常了。
> > >
> > > 其它接口没有这样的问题,也有好几个是返回自定义结构的数组。只是这个返回的
>> > 据
> > > 稍多一些。
> > >
> > > 有人知道如何解决这个问题吗?异常信息如下:
> > >
> > > Traceback (most recent call last):
> > >   File "", line 1, in -toplevel-
> > >     gs.getRooms(1)
> > >   File "c:\soft\python24\Lib\site-packages\SOAPpy\Client.py", line 453,
> in
> > > __call__
> > >     return self.__r_call(*args, **kw)
> > >   File "c:\soft\python24\Lib\site-packages\SOAPpy\Client.py", line 475,
> in
> > > __r_call
> > >     self.__hd, self.__ma)
> > >   File "c:\soft\python24\Lib\site-packages\SOAPpy\Client.py", line 379,
> in
> > > __call
> > >     p, attrs = parseSOAPRPC(r, attrs = 1)
> > >   File "c:\soft\python24\Lib\site-packages\SOAPpy\Parser.py", line 1006,
> > in
> > > parseSOAPRPC
> > >     t = _parseSOAP(xml_str, rules = rules)
> > >   File "c:\soft\python24\Lib\site-packages\SOAPpy\Parser.py", line 985,
> in
> > > _parseSOAP
> > >     parser.parse(inpsrc)
> > >   File "c:\soft\python24\lib\xml\sax\expatreader.py", line 107, in parse
> > >     xmlreader.IncrementalParser.parse(self, source)
> > >   File "c:\soft\python24\lib\xml\sax\xmlreader.py", line 123, in parse
> > >     self.feed(buffer)
> > >   File "c:\soft\python24\lib\xml\sax\expatreader.py", line 207, in feed
> > >     self._parser.Parse(data, isFinal)
> > >   File "c:\soft\python24\lib\xml\sax\expatreader.py", line 348, in
> > > end_element_ns
> > >     self._cont_handler.endElementNS(pair, None)
> > >   File "c:\soft\python24\Lib\site-packages\SOAPpy\Parser.py", line 395,
> in
> > > endElementNS
> > >     i.parent._placeItem(i.name, data, i.pos, i.subpos, attrs)
> > >   File "c:\soft\python24\Lib\site-packages\SOAPpy\Types.py", line 1311,
> in
> > > _placeItem
> > >     self._keyord[pos] = name
> > > IndexError: list assignment index out of range
> > >
> > > _______________________________________________
> > > python-chinese list
> > > python-chinese at lists.python.cn
> > > http://python.cn/mailman/listinfo/python-chinese
> > >
> > >
> > >
> > >
> > > _______________________________________________
> > > python-chinese list
> > > python-chinese at lists.python.cn
> > > http://python.cn/mailman/listinfo/python-chinese
> > >
> > _______________________________________________
> > python-chinese list
> > python-chinese at lists.python.cn
> > http://python.cn/mailman/listinfo/python-chinese
> >
> >
> > _______________________________________________
> 
> 
> > python-chinese list
> > python-chinese at lists.python.cn
> > http://python.cn/mailman/listinfo/python-chinese
> >
> 
> _______________________________________________
> python-chinese list
> python-chinese at lists.python.cn
> http://python.cn/mailman/listinfo/python-chinese
>


[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2004年09月17日 星期五 10:00

Xie Yanbo idkey at 163.com
Fri Sep 17 10:00:32 HKT 2004

On 2004-09-17 09:48:1095385724 +0800, Jacky Lee wrote:
> 请大家看看这个问题好吗?

你试试让这个调用返回只包含两个元素的list。如果处理还出错,
很有可能处理返回列表的循环写的有问题,可能是传的索引不太
合适。



[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2004年09月17日 星期五 10:06

梅劲松  stephen.cn at gmail.com
Fri Sep 17 10:06:43 HKT 2004

只包含两个元素的list是什么意思
或者可以理解为a={1:[1,2,3],2:[6,7,8]}



On Fri, 17 Sep 2004 10:00:32 +0800, Xie Yanbo <idkey at 163.com> wrote:
> On 2004-09-17 09:48:1095385724 +0800, Jacky Lee wrote:
> > 请大家看看这个问题好吗?
> 
> 你试试让这个调用返回只包含两个元素的list。如果处理还出错,
> 很有可能处理返回列表的循环写的有问题,可能是传的索引不太
> 合适。
> 
> _______________________________________________
> python-chinese list
> python-chinese at lists.python.cn
> http://python.cn/mailman/listinfo/python-chinese
>


[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2004年09月17日 星期五 10:17

Xie Yanbo idkey at 163.com
Fri Sep 17 10:17:46 HKT 2004

On 2004-09-17 10:06:1095386803 +0800, 梅劲松  wrote:
> 只包含两个元素的list是什么意思
> 或者可以理解为a={1:[1,2,3],2:[6,7,8]}

前面不是说他的调用返回一个包含20个元素的列表吗?我是希望
他逐步简化错误重现的过程,好定位到错误出现的准确位置嘛。



[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2004年09月17日 星期五 10:26

梅劲松  stephen.cn at gmail.com
Fri Sep 17 10:26:00 HKT 2004

太深奥了,不懂。
我习惯用简单的思路来解决问题。

print 语句和设置断点我想对你是有帮助的。


On Fri, 17 Sep 2004 10:17:46 +0800, Xie Yanbo <idkey at 163.com> wrote:
> On 2004-09-17 10:06:1095386803 +0800, 梅劲松  wrote:
> > 只包含两个元素的list是什么意思
> > 或者可以理解为a={1:[1,2,3],2:[6,7,8]}
> 
> 前面不是说他的调用返回一个包含20个元素的列表吗?我是希望
> 他逐步简化错误重现的过程,好定位到错误出现的准确位置嘛。
> 
> 
> 
> _______________________________________________
> python-chinese list
> python-chinese at lists.python.cn
> http://python.cn/mailman/listinfo/python-chinese
>

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2004年09月17日 星期五 11:28

Jacky Lee jagucpu at 126.com
Fri Sep 17 11:28:06 HKT 2004

刚刚测试过了,其它接口都没有问题,就这个有问题。

按你所说的,只返回2个list项,结果还是不行。其它接口有的返回几十个也没有问
题。

这个接口在浏览器里测试是正常的,在java和c++上测试也没有问题。奇怪了


----- Original Message ----- 
From: "Xie Yanbo" <idkey at 163.com>
To: <python-chinese at lists.python.cn>
Sent: Friday, September 17, 2004 10:17 AM
Subject: Re: [python-chinese] 请教: Python调用WebServ ice的问题(SOAPy)


> On 2004-09-17 10:06:1095386803 +0800, 梅劲松  wrote:
> > 只包含两个元素的list是什么意思
> > 或者可以理解为a={1:[1,2,3],2:[6,7,8]}
>
> 前面不是说他的调用返回一个包含20个元素的列表吗?我是希望
> 他逐步简化错误重现的过程,好定位到错误出现的准确位置嘛。
>
> _______________________________________________
> python-chinese list
> python-chinese at lists.python.cn
> http://python.cn/mailman/listinfo/python-chinese
>




[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2004年09月22日 星期三 11:31

mdkr mdkr at 163.com
Wed Sep 22 11:31:11 HKT 2004

谢谢
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20040922/12d3466f/attachment.htm

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

如下红色区域有误,请重新填写。

    你的回复:

    请 登录 后回复。还没有在Zeuux哲思注册吗?现在 注册 !

    Zeuux © 2025

    京ICP备05028076号