How to set SOAPUser
hello,
i hope , think question quiet easy answer. since developing server axis java not used authentication via soap in .net.
i want service, created webreference assistent, send specific user , password in soap header.
its no use me use defaultcredentials or other domainusers. neet set these 2 variable hand.
can give me hint how have modify following constructer use hardcoded user , password?
/// <remarks/>
public simplepackageserviceservice() {
this.url = global::windowsapplication1.properties.settings.default.windowsapplication1_localhost_simplepackageserviceservice;
if ((this.islocalfilesystemwebservice(this.url) == true)) {
this.usedefaultcredentials = true;
this.usedefaultcredentialssetexplicitly = false;
}
else {
this.usedefaultcredentialssetexplicitly = true;
}
}
i using wse 2.
thanks,
alexander
i hope , think question quiet easy answer. since developing server axis java not used authentication via soap in .net.
i want service, created webreference assistent, send specific user , password in soap header.
its no use me use defaultcredentials or other domainusers. neet set these 2 variable hand.
can give me hint how have modify following constructer use hardcoded user , password?
/// <remarks/>
public simplepackageserviceservice() {
this.url = global::windowsapplication1.properties.settings.default.windowsapplication1_localhost_simplepackageserviceservice;
if ((this.islocalfilesystemwebservice(this.url) == true)) {
this.usedefaultcredentials = true;
this.usedefaultcredentialssetexplicitly = false;
}
else {
this.usedefaultcredentialssetexplicitly = true;
}
}
i using wse 2.
thanks,
alexander
does no 1 have idea how set tags in soap header?
i sure there must 1 reason soap 1.2 standard.
setting
this.credentials = new networkcredentials("user","pw");
did not make it.
thx,
alexander
i sure there must 1 reason soap 1.2 standard.
setting
this.credentials = new networkcredentials("user","pw");
did not make it.
thx,
alexander
Archived Forums A-B > ASMX Web Services and XML Serialization
Comments
Post a Comment