Title: Authentication while reading WSDL Definition

Hi All
I am newbie to Xfire and currently migrating code from WSIF to xfire ( xfire 1.2.5 ).I would like to know to how provide basic authentication while preparing the client.

I already checked with documentation

Service serviceModel = new AnnotationServiceFactory(new Jsr181WebAnnotations(),
XFireFactory.newInstance().getXFire().getTransportManager()).create(SoapTestImpl.class);
SoapTest soapTest = (SoapTest) new XFireProxyFactory().create(serviceModel, "http://localhost:8181/soap/soap/SoapTestImpl");
Client client = Client.getInstance(m_soapTest)).getClient();
client.setProperty(Channel.USERNAME, "test");
client.setProperty(Channel.PASSWORD, "test");

This code snippet expects service definition to be known before creating the client.In my case its only the wsdl url avaialable as result i cannot use

Client( Definition,serviceClass) constructor.I need to provide authentication information for reading this file.

Can somebody give me some pointers on how to solve this problem.

Thanks a ton
Amey

--------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email

Reply via email to