SOAP request with attribute

前端 未结 3 971
渐次进展
渐次进展 2020-12-14 13:02

I can not seem to find out how to set an attribute to a SOAP request without using the XSD_ANYXML encoding.

The request parameter should look as fol

3条回答
  •  执笔经年
    2020-12-14 13:15

    SOAP 1 does support attributes. Here is an example of Perl code using both attributes and values (from a client):

    $som = $client->call(
        'tran:getContent',
        SOAP::Header->name('cred:credentials')->attr({
            'username' => $username,
            'password' => 'xxx',
            'customerID' => 'xxx'}
        ),
        SOAP::Data->name('contentID')->value('9999')
    )
    

提交回复
热议问题