From: myunghwa H. <mh...@ui...> - 2007-02-22 02:39:28
|
Hello, List! I'm a newbie, today I tried to use wsdl2py in zsi2.0 (release version) to generate python client stub from a wsdl I wrote. During that procedure, I got some error. And I'm not sure if my wsdl has problem or not. With the other parts of wsdl doc unchanged, I changed two parts: soap:binding style and soap:body use. Messages all use simple float data type in the xsd schema in the following way: <message name="getrateRequest"> <part name="nominator" type="xsd:float"/> <part name="denominator" type="xsd:float"/> </message> <message name="getrateResponse"> <part name="rate" type="xsd:float"/> </message> The following is the test result: rpc document encoded no err err2 literal no err err1 ** err1: Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/Current/bin/ wsdl2py", line 7, in ? sys.exit( File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ python2.4/commands.py", line 223, in wsdl2py File "build/bdist.macosx-10.4-fat/egg/ZSI/generate/ wsdl2python.py", line 211, in writeClient File "build/bdist.macosx-10.4-fat/egg/ZSI/generate/ wsdl2python.py", line 289, in fromWsdl File "build/bdist.macosx-10.4-fat/egg/ZSI/generate/ wsdl2python.py", line 362, in setUp File "build/bdist.macosx-10.4-fat/egg/ZSI/generate/containers.py", line 831, in setUp ZSI.generate.Wsdl2PythonError: no doc/lit suport for <part type> err2: Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/Current/bin/ wsdl2py", line 7, in ? sys.exit( File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ python2.4/commands.py", line 223, in wsdl2py File "build/bdist.macosx-10.4-fat/egg/ZSI/generate/ wsdl2python.py", line 211, in writeClient File "build/bdist.macosx-10.4-fat/egg/ZSI/generate/ wsdl2python.py", line 289, in fromWsdl File "build/bdist.macosx-10.4-fat/egg/ZSI/generate/ wsdl2python.py", line 359, in setUp ZSI.generate.WsdlGeneratorError: doc/enc not supported. Because I used type attribute of part element of message, does err1 occur? Is it prohibited, using both document style and encoded use? Please share your tips with me! Thank you in advance. from Myunghwa Hwang |