This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
I am using axis client for accessing webservice. I need to add authentication information in SOAP header.
using wsdl2Java i have generated the stub, skelaton stuff....
From the testClient i am trying the following codes.. But i am not able to view the SOAP Header in the SOAP request..
Way 1.) ****** TpsLocator locator = new TpsLocator(); org.apache.axis.client.Stub s=(org.apache.axis.client.Stub) locator.gettpsSoapDocPort(); s.setHeader("http://my.name.space/headers", "mysecurityheader", "This guy is OK");
Hi Friends, I am new to webservices, I am creating a javaclient for our existing webservice, I sent request with username/password to the server and I got authentication token again I want to send request with my authentication token in the header
GeocodeRequest gcreq = new GeocodeRequest();
GeocoderProxy gp = new GeocoderProxy();
GeocoderSoap11Stub gcStub = (GeocoderSoap11Stub) gp.getGeocoder();
( gcStub)._setProperty(Call.SESSION_MAINTAIN_PROPERTY, new Boolean(true));
( gcStub)._setProperty(HTTPConstants.HEADER_AUTHORIZATION,m_strBase64AccessToken);
gres = gcStub.geocode(gcreq);
if I used the above code ,I got the response as (401)Non-Autorisé error like that,I am using jsp/servlet to create a java client, please help me how can I send authentication token with my request