i am having Integrated Windows Authentication based .NET WEB Service which 
is deployed on IIS. 

I am having JAVA based SOAP Client so i tried to call the .NET WEB Service 
but the response i am getting is "You are not authorized". 
becuase SOAPHTTPConnection is only support Basic Authentication.

now what i did i changed the .NET WEB Service to used BASIC Authentication 
then i got proper responce. 

So my Question here is that Is there any other way by which Apache SOAP to call 
Integrated Window based .NET WEB Service.  Becuase SOAPHTTPConnection contains 2 
method setUserName and setPassword 
which is for BASIC Authentication. 

 i am providing u the code that i am using to call web service from java. 

 org.apache.soap.rpc.Call call = new org.apache.soap.rpc.Call(); 
call.setEncodingStyleURI(Constants.NS_URI_SOAP_ENC); 

 org.apache.soap.transport.http.SOAPHTTPConnection conn =  new 
org.apache.soap.transport.http.SOAPHTTPConnection(); 
 conn.setUserName("administrator"); 
 conn.setPassword("flip.sit"); 
 if(conn!=null) 
 { 
 call.setSOAPTransport(conn); 
 } 
 else 
 { 
 System.out.println("nulll in conn"); 
 } 
 
           Response resp = call.invoke(url, ""); 
 
 if u can send some tips regarding how to call Integrated WIndows Based 
.NET Web Service that will be very greatfull to me. 

Thx
nilesh

Reply via email to