错误代码:10944642错误消息:错误:入站SOAP消息 - 缺少会话令牌

时间:2016-06-10 21:31:06

标签: php soap wsdl siebel

我试图打电话给siebel wsdl,

public class CoolArchTekModel : IValidatableObject {
    public string SomeTextBox { get; set; }
    public bool SomeRadioButton { get; set; }

    public IEnumerable<ValidationResult> Validate(ValidationContext validationContext) {
        if (string.IsNullOrEmpty(this.SomeTextBox) && !this.SomeRadioButton) {
            yield return new ValidationResult("The radio button is required if the text box is empty!");
        }
    }
}

我不知道我做错了什么,但当我这样做时,我得到了,

    $wsdl = '/home/netvibes/mysw/public/r2/img/isusertrusted.wsdl';

    $client = new SoapClient($wsdl, array(
                        "trace"=>1,
                        "exceptions"=>0));
    $auth = array(
        'UsernameToken' => 'EXTAPP',
        'PasswordText' => 'EXTAPP'
    );

    $header = new SoapHeader('NAMESPACE', 'Auth', $auth, false);

    $client->__setSoapHeaders($header);

    $result = $client->__call('Execute_Service', array('appthai123zz@zzhotmail.swk')    );

标题可能有问题。有人可以帮忙吗?

1 个答案:

答案 0 :(得分:0)

您可以分享您发送的实际消息吗?发送缺少会话令牌标记的消息时,通常会出现此错误。此签名在初始登录后由Siebel发回,这可以防止必须为每条消息登录 - 减少了身份验证开销。