In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces how to input callee parameters when using suds to call this function, the article is very detailed, has a certain reference value, interested friends must read it!
Recently, a small project has been developed with python, which calls the webservice interface (http://202.105.212.146:8080/jboss-net/services/SendSMS?wsdl) provided by the service provider. The interface function sendSMSV2 has a parameter callee,type= "impl:ArrayOf_xsd_string".
How do I enter the parameter callee when calling this function using suds?
Import suds
Url=' http://202.105.212.146:8080/jboss-net/services/SendSMS?wsdl'
Client=suds.client.Client (url)
Print (client)
= = print (client) = =
Suds (https://fedorahosted.org/suds/) version: 0.4.1 jurko 3
Service (SendSMSService) tns= "http://202.105.212.146:8080/jboss-net/services/SendSMS"
Prefixes (2)
Ns0 = "http://202.105.212.146:8080/jboss-net/services/SendSMS"
Ns1 = "http://schemas.xmlsoap.org/soap/encoding/"
Ports (1):
(SendSMS)
Methods (4):
QryOffLineSMS (xs:string ucNumber, xs:string ucPinNum, xs:string rand, xs:string connID)
QrySendSMSStat (xs:string ucNumber, xs:int smsFlag, xs:string ucPinNum, xs:string rand, xs:string connID)
SendSMS (xs:string uc, xs:string pw, xs:string rand, ArrayOf_xsd_string callee, xs:string isreturn, xs:string cont, xs:int msgid, xs:string connID)
SendSMSV2 (xs:string uc, xs:string pw, xs:string rand
ArrayOf_xsd_string callee, xs:string isreturn, xs:string cont, xs:int msgID, xs:string connID, xs:int charset)
Types (49):
Ns1:Array
ArrayOf_xsd_string
Ns1:ENTITIES
Ns1:ENTITY
= =
Answer:
The test was successful just now.
Client = Client (wsdl_url)
Array = client.factory.create ('ns1:Array')
Array.item = ['mobile1','mobile2']
Just bring array into the parameters.
The above is all the contents of the article "how to enter callee parameters when calling this function using suds". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.