Php SOAP客户端、wsdl、python

Php SOAP客户端、wsdl、python,php,python,web-services,soap,suds,Php,Python,Web Services,Soap,Suds,我有带WSDL和php客户端的SOAP服务 Php客户端: <?php $client = new SoapClient('https://xx.xx.xx.xx/service/?wsdl'); $headers = array(); $headers[] = new SoapHeader('http://mfisoft.ru/auth','Login','admin'); $headers[] = new SoapHeader('http://mfisoft.ru/auth','Pas

我有带WSDL和php客户端的SOAP服务

Php客户端:

<?php
$client = new SoapClient('https://xx.xx.xx.xx/service/?wsdl');
$headers = array();
$headers[] = new SoapHeader('http://mfisoft.ru/auth','Login','admin');
$headers[] = new SoapHeader('http://mfisoft.ru/auth','Password','admin');
$client->__setSoapHeaders($headers);
$table_hi = $client->getTableByTitle('Blocked numbers');
$row_data = array(
    array(
                      array(
                              'name' => 'prfx',
                              'value' => '55555555'
                       ),
                      array(
                              'name' => 'blocking_time',
                              'value' => '20140306185014'
                       )

)
);

$rowset=$client->insertRowset($table_hi, $row_data);
?>
我不明白如何制作类似的程序,尤其是这些字符串

$headers[] = new SoapHeader('http://mfisoft.ru/auth','Login','admin');
$headers[] = new SoapHeader('http://mfisoft.ru/auth','Password','admin');
$client->__setSoapHeaders($headers);
我在肥皂水里没有找到医生。 我需要你的帮助

提前谢谢

p、 美国。 对不起,我英语不好

附言


我需要在python客户端中重写php客户端。

请事先原谅格式设置。。使用suds客户端进行设置和连接的正确方法如下。如果您想要服务器部件,我无法100%地回答您的问题。。我可能能够提供帮助,但这不是我以前在python中做过的事情

client = suds.client.Client.(self,url=wsdl_url,
                             doctor=schema_doctor,
                             username=username)
try:
    # This will throw an Exception if the wsdl_url is bad
    # and will return False if the authentication fails
    if not client.service.Connection_Authenticate(username,
                                                  password):
        raise Exception("Failed to authenticate.")

我很困惑。您是在尝试用python创建soap客户机还是soap服务器?谢谢您的回答。但它不起作用。我需要soap客户端。WSDL文件位于
client = suds.client.Client.(self,url=wsdl_url,
                             doctor=schema_doctor,
                             username=username)
try:
    # This will throw an Exception if the wsdl_url is bad
    # and will return False if the authentication fails
    if not client.service.Connection_Authenticate(username,
                                                  password):
        raise Exception("Failed to authenticate.")