dhaval.shah

Greenhorn
+ Follow
since Oct 15, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by dhaval.shah

hi.. even i am getting the same kind of error...

i have implemented the code in similar manner as specified in the site Cinnamon Service

i am using with spring and haave deployed the service using cinnamon.





any help with this will be appreciated.
thanks.
hey thanks Adeel .. its working now.

I used the following code. if it could help you.
stub is the stub i have generated using WSDL file.

----------------------------------------------------------------------


HttpTransportProperties.ProxyProperties HTTPProxyProperties = new HttpTransportProperties.ProxyProperties();
HTTPProxyProperties.setProxyName("PROXY_NAME");
HTTPProxyProperties.setProxyPort("PROXY_PORT");
HTTPProxyProperties.setUserName("USER_NAME");HTTPProxyProperties.setPassWord(("PASSWORD"));HTTPProxyProperties.setDomain(("DOMAIN"));




Options options = stub._getServiceClient().getOptions();options.setProperty(MessageContextConstants.HTTP_PROTOCOL_VERSION,HTTPConstants.HEADER_PROTOCOL_10);options.setProperty(HTTPConstants.PROXY,HTTPProxyProperties);

----------------------------------------------------------------------

But the problem over here is that i had to use this lines of code everytime i make a call to stub when i am loading the HTTPProxyProperties object in servlet and loading into memory while calling stub. its not taking the proxy settings.
15 years ago
i just posted initially in a wrong category so thought to correct myself.
thanks.
15 years ago
i have webservice deployed over another server and on client side i am generating a stub which is using that service.

But the problem is that i have to pass through the proxy settings of my company so its giving me this errors


----------------------------------------------------------------------
ERROR

11:44:16,688 INFO [STDOUT] 2008-10-30 11:44:16,688 ERROR [HttpMethodDirector-authenticate-235]-Credentials cannot be used for NTLM authentication: org.apache.commons.httpclient.UsernamePasswordCredentials


org.apache.commons.httpclient.auth.InvalidCredentialsException: Credentials cannot be used for NTLM authentication: org.apache.commons.httpclient.UsernamePasswordCredentials


11:44:16,719 INFO [STDOUT] 2008-10-30 11:44:16,719 ERROR [searchTrip_jsp-_jspService-658]-Transport error: 407 Error: Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied. )
org.apache.axis2.AxisFault: Transport error: 407 Error: Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied. )



my code is as folows

----------------------------------------------------------------------


HttpTransportProperties.ProxyProperties http = new HttpTransportProperties.ProxyProperties();
http.setUserName("username");
http.setPassWord("password");
http.setProxyName("urlofproxy");
http.setProxyPort(80);
http.setDomain("domainname");

Options options = new Options();
options.setProperty(HTTPConstants.PROXY, http);
options.setUseSeparateListener(false);
options.setTo(new org.apache.axis2.addressing.EndpointReference(
URLUtil.getUrl("webserviceurl", config)));

WebserviceStub webserviceStub= new WebserviceStub ("URL_of_wsdl");

ServiceClient serviceClient = webserviceStub._getServiceClient();
serviceClient.setTargetEPR(new org.apache.axis2.addressing.EndpointReference("URL_of_wsdl"));

serviceClient.setOptions(options);

webServiceStub._setServiceClient(serviceClient);






----------------------------------------------------------------------
15 years ago
yes i tried. but i m getting following exception



*************************************************************

11:44:16,688 INFO [STDOUT] 2008-10-30 11:44:16,688 ERROR [HttpMethodDirector-authenticate-235]-Credentials cannot be used for NTLM authentication: org.apache.commons.httpclient.UsernamePasswordCredentials


org.apache.commons.httpclient.auth.InvalidCredentialsException: Credentials cannot be used for NTLM authentication: org.apache.commons.httpclient.UsernamePasswordCredentials


11:44:16,719 INFO [STDOUT] 2008-10-30 11:44:16,719 ERROR [searchTrip_jsp-_jspService-658]-Transport error: 407 Error: Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied. )
org.apache.axis2.AxisFault: Transport error: 407 Error: Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied. )




***************************************************************
15 years ago
i have created a webservice client and i am calling the stub i have generated using the WSDL. But the webservices are located on some other server say internet. To access it i need to pass through the proxy authentications.
15 years ago
Hello,
I have created war file for the project and it has been deployed on another server. i want to access it using the proxy settings like proxy url,name,port number, username, password . which i have stored in the proxy.properties file.

Even i have written a servlet that wil load a properties file in memory on start up. can anyone help me to how to create a some class that wil use the proxy settings and call the webservices on server on which it has been deployed ???
15 years ago