Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Java - creating Web Service Request using JDOM - Header issue  RSS feed

Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I done many integrations using JDOM in Eclipse but for first time I have an issue because my SOAP XML message should contain and `HEADER` element wuth specific elements. This is my whole message:

<soapenv:Envelope xmlns:soapenv="" xmlns:agi="http://agilent.parlayx.sms">

I created `BODY` structure using this:

Element top = new Element("sendBulkSms", agi);
Document jDoc = new Document(top);

Element address = new Element("address", agi);

This works OK I did it many times before. But is it possible to create and header element of message uisng JDOM or not? Because as far as I know only BODY element can be defined.

Thank you, I will appreciate help (I must do it over JDOM so there are no other alternative)
Would you turn that thing down? I'm controlling a mind here! Look ... look at the tiny ad ...
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!