Yes it works.

On Tue, 2008-02-05 at 12:53 +0200, Asaf Lahav wrote:
> Did anyone get my email? (If you did please reply to it… I'm not sure
> my news group registration works)
> 
>  
> 
> From: Asaf Lahav [mailto:[EMAIL PROTECTED] 
> Sent: Monday, February 04, 2008 8:26 PM
> To: '[email protected]'
> Subject: Consuming a .NET Windows Integrated Security protected web
> service
> 
> 
>  
> 
> Hello everybody,
> 
> I need your help in consuming a .NET Windows Integrated Security
> protected web service.
> 
> I followed the instructions on the following link:
> http://people.etango.com/~markm/archives/2005/11/21/using_apache_axis_with_integrated_windows_security.html
> 
>  
> 
> And I'm still unable to consume the WS.
> 
> This is the code I'm using:
> 
>  
> 
> import org.apache.axis.EngineConfiguration;
> 
> import org.apache.axis.client.Call;
> 
> import org.apache.axis.client.Service;
> 
> import org.apache.axis.configuration.FileProvider;
> 
>  
> 
> public class Test1 {
> 
>       public static void main(String[] args) {
> 
>  
> 
>            try {
> 
>                   EngineConfiguration config = new
> FileProvider(Test1.class
> 
>                               
> .getResourceAsStream("AxisClientDeployment.wsdd"));
> 
>  
> 
>                  try {
> 
>                         String endpoint =
> "http://MyServer/wsApp/WebService.asmx";;
> 
>  
> 
>                         Service service = new Service(config);
> 
>                         Call call = (Call) service.createCall();
> 
>                        
> 
> 
> call.setSOAPActionURI("http://tempuri.org/MyOperation1";);
> 
>                         call.setUsername("MyDomain\\MyUser");
> 
>                         call.setPassword("MyPassword123456");
> 
>                        
> 
>                         call.setTargetEndpointAddress(new
> java.net.URL(endpoint));
> 
>                         call.setOperationName(new
> QName("http://tempuri.org/";,
> 
>                                    " MyOperation1"));
> 
>  
> 
>                         Object ret = call.invoke(new Object[]
> { "app","usr","ctxt" });
> 
>  
> 
>                         System.out.println("Response'" + ret + "'");
> 
>                   } catch (Exception e) {
> 
>                         e.printStackTrace();
> 
>                   }
> 
>  
> 
>             } catch (Exception e) {
> 
>  
> 
>             }
> 
>       }
> 
> }
> 
>  
> 
 < 
> 
 < 
> 
> Any help would be highly appreciated.
> 
> Best,
> 
> Asaf
> 
> 


==============================
DISCLAIMER: The information in this message is confidential and may be legally 
privileged. It is intended solely for the addressee. Access to this message by 
anyone else is unauthorized. If you are not the intended recipient, any 
disclosure, copying, or distribution of the message, or any action or omission 
taken by you in reliance on it, is prohibited and may be unlawful. Please 
immediately contact the sender if you have received this message in error. 
Further, this e-mail may contain viruses and all reasonable precaution to 
minimize the risk arising there from is taken by OnMobile. OnMobile is not 
liable for any damage sustained by you as a result of any virus in this e-mail. 
All applicable virus checks should be carried out by you before opening this 
e-mail or any attachment thereto. 
Thank you - OnMobile Global Limited.
==============================

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to