This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I am using Oracle Service Bus(OSB). I have two web services running in OSB. One importing schema and making use of it and other one without using schema. I have no problem to invoke the service that doesn't import schema. I am sending the username and password as given in the below code snippet.
weblogic.wsee.connection.transport.http.HttpTransportInfo httpInfo = new weblogic.wsee.connection.transport.http.HttpTransportInfo();
ABCServiceSoap_Service service = new ABCServiceSoap_Service_Impl("http://test1:6118/ABCAuthorizationService/ABCAuthorizationServiceProxyService?WSDL"
With the above code, the service client works fine and no issue. I could invoke the operations. But for the other service which imports schema, I am getting 401 error if i use the same code as above. The reason i notice is the authentication details i give is used to retrieve the WSDL only. For retrieving the schema import, again it expects username and password. How can i pass the username/pw to retrieve the schema? Is there some kind of cache where i can store the username/pw which will be used in subsequent requests or any other way to send authentication details?
The code snippet of proxy wsdl which refers the xmlschema from resource folder is as below.