axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Gainty" <mgai...@hotmail.com>
Subject Re: [Axis 1.4] Username and password are null from C# client
Date Sun, 09 Jul 2006 13:33:42 GMT
Good Morning

At First Glance I dont see a style declaration e.g. RPC or DocLiteral?
Also I dont see a Datatype declaration for either username or password (assume xsd:string)
We could verify both items if you could display the wsdl for us

Anyone else?
Martin --
*********************************************************************
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



----- Original Message ----- 
From: "Neil Aggarwal" <neil@JAMMConsulting.com>
To: <axis-user@ws.apache.org>
Sent: Saturday, July 08, 2006 11:12 PM
Subject: [Axis 1.4] Username and password are null from C# client


> Hello:
> 
> I have a web service deployed on Axis 1.4 running on Tomcat.
> 
> I have set up an AuthenticationHandler in the request flow to perform user
> name and password checking.  It extends SimpleAuthenticationHandler and
> pulls the username and password from the MessageContext object.
> 
> If I use a Java client with this code:
> 
>   // Locate the service
>   FileUpload_PortType fileUpload = new
> FileUploadServiceLocator().getFileUpload();
>   ((FileUploadSoapBindingStub)fileUpload).setUsername(USER);
>   ((FileUploadSoapBindingStub)fileUpload).setPassword(PASS);
> 
> Everything works fine.  I get the user name and password and the service
> continues.
> 
> But, using this C# code:
> 
>    NetworkCredential credential = new NetworkCredential(USER, PASS);
>    FileUploadService service = new FileUploadService();
>    service.Credentials = credential;
>    service.PreAuthenticate = true;
> 
> When I invoke the service, the AuthenticationHandler on the server gets null
> for the user name and password.
> 
> Is this the correct C# code to use?  
> 
> Any ideas?
> 
> Thanks,
> Neil
> 
> 
> --
> Neil Aggarwal, JAMM Consulting, (214)986-3533, www.JAMMConsulting.com
> FREE! Valuable info on how your business can reduce operating costs by
> 17% or more in 6 months or less! http://newsletter.JAMMConsulting.com 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
> 
>
Mime
View raw message