java Axis + SOAP authHeader
Howdy
I'm using java to make a call to a .Net web service. it's all fine and dandy until we require AuthHeaders on the server side. typical route, i used WSDL2Java to stub out the client methods. i have one class called AuthHeader with get and set methods so i can do something like this :
com.unifiedarts.services.RealEstateLogic.AuthHeader auth = new com.unifiedarts.services.RealEstateLogic.AuthHeader();
auth.setUsername("user");
auth.setPassword("pass");
the only other method of importance in AuthHeader returns a
org.apache.axis.description.TypeDesc Object which is basically the peice of the SOAP header i need. now i just need to know how to actually inject this into the outbound soap request. i can show you any code you need.
if anyone is familiar with WSDL2Java i could sure use at least some starting point for this AuthHeader stuff. i've been reading through the pile of code it generated and it mostly makes sense, it compiles and i wrote a main method to actually use it form the command line, but this part escapes me.
i know this is a vague question but if someone could at least reply, call me a noob, tell me it's easy, something.
I'm using java to make a call to a .Net web service. it's all fine and dandy until we require AuthHeaders on the server side. typical route, i used WSDL2Java to stub out the client methods. i have one class called AuthHeader with get and set methods so i can do something like this :
com.unifiedarts.services.RealEstateLogic.AuthHeader auth = new com.unifiedarts.services.RealEstateLogic.AuthHeader();
auth.setUsername("user");
auth.setPassword("pass");
the only other method of importance in AuthHeader returns a
org.apache.axis.description.TypeDesc Object which is basically the peice of the SOAP header i need. now i just need to know how to actually inject this into the outbound soap request. i can show you any code you need.
if anyone is familiar with WSDL2Java i could sure use at least some starting point for this AuthHeader stuff. i've been reading through the pile of code it generated and it mostly makes sense, it compiles and i wrote a main method to actually use it form the command line, but this part escapes me.
i know this is a vague question but if someone could at least reply, call me a noob, tell me it's easy, something.
0