470,810 Members | 1,159 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,810 developers. It's quick & easy.

Connecting Web Service Hosted on Sun ONE system with C# code

I'm trying to create a web service client with C# in VS 2005.
As a test I create a small program that can send out web service request,
but some reason I'm getting Authentication Failure.
I'm suspecting that the Credential function is the problem, but not sure.
I captured packet, but there wasn't any user name or password are sent to
the service atleast in plain text.
If you know how to resolve this problem, please let me know.

private void TestBtn_Click(object sender, EventArgs e)
{
string result="";

// TransmittalHeaderBinding is proxy object created by wsdl.exe
TransmittalHeaderBinding thb = new TransmittalHeaderBinding();
thb.Credentials = new NetworkCredential("xxxxx", "xxxxx");

setReviewerName RName = new setReviewerName();
RName.reviewerName = "AAAAAAA";
RName.aaaaTrackingNumber = "AAAAA";
try
{
//Requesting web service
result = thb.setReviewerName(RName);
}
catch (Exception Eerror)
{
AAAAAMessageBox.Text += Eerror.ToString();
}
AAAAAMessageBox.Text += result;

}
Feb 8 '06 #1
0 834

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

23 posts views Thread by Adam Clauss | last post: by
1 post views Thread by Jim Bayers | last post: by
5 posts views Thread by Jeff Richardson | last post: by
7 posts views Thread by Peter Bradley | last post: by
reply views Thread by =?Utf-8?B?QWRyaWFuIENvbGU=?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.