Steps 1-5 is what I'm doing.  I do not have a try/catch around the web method 
call but I know it is not throwing anything because I have a number of calls to 
different web services and it is getting past the ones not working write.

BTW - If I deploy my Java web service in JBoss 4.0.3 everything works fine.

Here's the current state of my code within the .NET client.  The calls to 
OrderProcess are from the JBoss 4.0.3 sample which only deploys under 4.0.3 and 
not 4.0.1.  The other two calls are ours.  The authenticate call returns an 
enumeration.

private void button1_Click(object sender, System.EventArgs e)
{
MentorWS.Mentor mentor = new MentorWS.Mentor();
String[] userIds = new String[1];
userIds[0] = "admin";
tUserInfo[] userInfos = mentor.getUserInfo(userIds);
Console.Out.WriteLine("I guess it worked. " + userInfos.Length);
Console.Out.WriteLine("userid: " + userInfos[0].userId);

//OrderProcess.Person person = new OrderProcess.Person();
//person.name = "kelly";
//OrderProcess.OrderItem[] items = new OrderProcess.OrderItem[2];
//OrderProcess.processOrder po = new OrderProcess.processOrder();
//po.arrayOfOrderItem_1 = items;
//po.Person_2 = person;
//OrderProcess.OrderProcessService op = new OrderProcess.OrderProcessService();
//OrderProcess.processOrderResponse por = op.processOrder(po);
//OrderProcess.OrderResponse resp = por.result;
//Console.Out.WriteLine("order message: " + resp.message);
                        
AuthenticateUser param = new AuthenticateUser();
param.userId = auth_username.Text;
param.password = auth_password.Text;

AuthenticateUserResponse result = mentor.authenticateUser(param);
Console.Out.WriteLine("result: " + result.AuthenticationResult.ToString());
if (result.AuthenticationResult == tAuthenticationResult.baduserid) 
{
Console.Out.WriteLine("bad uid");
} 
else if (result.AuthenticationResult == tAuthenticationResult.badpassword) 
{
Console.Out.WriteLine("bad pass");
} 
else if (result.AuthenticationResult == tAuthenticationResult.success) 
{
Console.Out.WriteLine("success");
} 
else 
{
Console.Out.WriteLine("bad code");
}
auth_result.Text = result.ToString();
}


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3905559#3905559

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3905559


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to