• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using WS-addressing in axis1.4

 
sandy bose
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
Am using 'addressing-1.0.jar' use WS-addressing in Axis1.4.
Following is a snippet of the header:
<soapenv:Header>
<wsa:Action>VerifyReg</wsa:Action>
<wsa:To>urn:CardServ</wsa:To>
</soapenv:Header>

Can any1 tell me how do i make this header using the Action and To class
Basicaaly this is my code snippet:

AddressingHeaders headers = new AddressingHeaders();
Action a = new Action();
headers.setAction(a);
To to = new To());
headers.setTo(to);
return headers;

My Question is : How do i use Action a = new Action(); & To to = new To();to pass in
<wsa:Action>VerifyReg</wsa:Action>
<wsa:To>urn:CardServ</wsa:To>
resp?

PLease make sure i cannot use Axis 2!!
 
really good
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sandy bose wrote:hi,
Am using 'addressing-1.0.jar' use WS-addressing in Axis1.4.
Following is a snippet of the header:
<soapenv:Header>
<wsa:Action>VerifyReg</wsa:Action>
<wsa:To>urn:CardServ</wsa:To>
</soapenv:Header>

Can any1 tell me how do i make this header using the Action and To class
Basicaaly this is my code snippet:

AddressingHeaders headers = new AddressingHeaders();
Action a = new Action();
headers.setAction(a);
To to = new To());
headers.setTo(to);
return headers;

My Question is : How do i use Action a = new Action(); & To to = new To();to pass in
<wsa:Action>VerifyReg</wsa:Action>
<wsa:To>urn:CardServ</wsa:To>
resp?

PLease make sure i cannot use Axis 2!!
Did you ever find the answer to this?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic