0
我已通過Django
編寫了Spyne
網絡服務。我正在模擬一些應用程序,所以我需要實現精確的接口。我在原來的應用程序如下port
定義:如何在Spyne中設置端口的名稱和綁定?
< wsdl:service name = "SendSmsWebServiceImplService" >
< wsdl:port binding = "tns:SendSmsWebServiceImplServiceSoapBinding" name = "SendSmsWebServiceImplPort" >
< soap:address location = "http://192.168.100.31:8181/smsgateway/sendsms"/>
</wsdl:port >
</wsdl:service >
這是我在模擬器:
< wsdl:service name = "SendSmsWebServiceImplService" >
< wsdl:port name = "SendSmsWebService" binding = "tns:SendSmsWebService" >
< soap:address location = "http://127.0.0.1:5000/smsgateway/services/SendSms/"/>
</wsdl:port >
</wsdl:service >
我想設置爲port
name
和binding
。我正在使用模塊spyne.application.Application
來實現主要應用程序。設置這些屬性的方法是什麼?