Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

pythonºÍdotnetµÄwebservice»¥·Ã

2007-08-22 22:46
Ò»¡¢ÓÃSOAPpy·ÃÎÊdotnet webservice
      dotnetµÄwebservice
      <WebMethod()> _
      Public Function HelloWorld() As String
          Return "Hello World"
      End Function
      <WebMethod()> _
      Public Function HelloWorld2(ByVal s As String) As String
          Return "Hello World2" + s
      End Function
      <WebMethod()> _
      Public Function HelloWorld3(ByVal i As Int16, ByVal j As Int16) As String
          Return "Hello World3" + (i + j).ToString()
      End Function
ÃüÃû¿ÕÒôºó¼ÓÒ»¾ä SoapDocumentService(Use:=SoapBindingUse.Encoded)
·ÃÎÊ
>>>from SOAPpy import WSDL
>>> server= WSDL.Proxy("http://192.168.1.3/mywebservice/Service1.asmx?WSDL
")
>>> server.HelloWorld()
'Hello World'
>>> server.HelloWorld('abcdefg')
'Hello World'
>>> server.HelloWorld2('abcdefg')                   
'Hello World2'
>>> server.HelloWorld2(s = 'abcdefg')     #ÓвÎÊýʱ£¬Ðè´øÉϲÎÊýÃû
'Hello World2abcdefg'
>>> server.HelloWorld3(i=1,j=2)              #ÔÝδ½â¾ö
Traceback (most recent call last):
    File "<pyshell#43>", line 1, in -toplevel-
      server.HelloWorld3(i=1,j=2)
    File "c:\python24\Lib\site-packages\SOAPpy\Client.py", line 453, in __call__
  


Ïà¹ØÎĵµ£º

scite python API

'''gen_python_api.py generates a python.api file for SciTE
The generated api file includes
*) all Python keywords
*) all builtin functions
*) all module attributes
Module functions are represented by their docstring if available,
otherwise by the function definition from the source file. ......

Python·¢ËÍÌìÆøÔ¤±¨ÐÅÏ¢µ½ÊÖ»ú

writeblog.csdn.net writeblog.csdn.net/PostEdit.aspx
Õâ¸ö³ÌÐòºÜÔçÒÔǰ¾Íд¹ýÁË£¬¶øÇÒÊDzο¼µÄ±ðÈ˵Äд£¬¾ßÌåË­µÄ·¢ÔÚÄÄÀïÎÒ¶¼Íü¼ÇÁË¡£ÕâÀï¾ÍËãÊǰëÔ­´´ÁË£¬ÈçÓÐÇÖȨÇ뼰ʱ֪ͨ¸ÄÕý¡£
ÒòΪ´Ó½ñÌì1ÔÂ1ºÅ¿ªÊ¼£¬GoogleÉ϶©ÔĵÄÌìÆøÔ¤±¨·þÎñÒѾ­È¡ÏûÁË£¬¹À¼ÆÊÇGoogle±»Ê©¼ÓѹÁ¦ÁË¡£·´ÕýÊÇÊÕ²»µ½ÌìÆøÔ¤±¨ÁË¡£ÕýºÃÖØÊ°ÒÔǰ ......

Python 3 ½Ì³Ì¶þ:Îļþ,Ŀ¼ºÍ·¾¶

1 ±éÀúÎļþ¼ÐºÍÎļþ
import  os
import  os.path
#  os,os.pathÀï°üº¬´ó¶àÊýÎļþ·ÃÎʵĺ¯Êý,ËùÒÔÒªÏÈÒýÈëËüÃÇ.
#  Çë°´ÕÕÄãµÄʵ¼ÊÇé¿öÐÞ¸ÄÕâ¸ö·¾¶
rootdir  =   " d:/download "
for  parent, dirnames, filenames  in  os.walk(rootdir):
   ......

pythonÐÔÄÜÔöÇ¿¹¤¾ßshedskin 0.3°æ·¢²¼

http://code.google.com/p/shedskin/ Shed Skin 0.3 - support for 3 new standard library modules (now about 20 in total): - itertools (jeremie roquet) - heapq (jeremie roquet) - csv (converted using shedskin) - 4 new example programs (now 44 in total!): - maximum weighted matching al ......

PythonºÍRubyµÄ¶Ô±È£¬¾ÀÕýһЩÎó½â

PythonºÍRubyµÄ¶Ô±È£¬¾ÀÕýһЩÎó½â
ÏÂÃæÊÇÎÒÔÚ¿´Á½Æª¹ØÓÚPythonºÍRuby¶Ô±ÈµÄÎÄÕÂʱ£¬Ëù×÷µÄ¾ÀÕý£¬Ô­ÎͼÊǹ㷺Á÷Ðеģ¬±È½ÏºÃÕÒ¡£
------------------------------------------------------
¡¶rubyºÍpythonµÄ±È½Ï¡·¸üÕýÒ»µãÊÂÇé
1¡¢Îĵµ¡¢¿ªÔ´ÏîÄ¿¡¢¿âÖ§³Ö£¬ÕâЩ¶«Î÷Ruby²»Òª¸úPython±È£¬²»ÊǼ¸¸öÊýÁ¿¼¶µÄÎÊÌ⣬ºÎ±ØÃ²Ë ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ