This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What is wrong ? Using Jax-RPC (Server did not recognize the value of HTTP Header SOAPAction)

 
Thiago Seila
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, sorry my english...

My dub is:

I need create a header in envelope soap. But always throws this exception javax.xml.rpc.soap.SOAPFaultException: Server did not recognize the value of HTTP Header SOAPAction:

Is all correct.

I creted as below:

SOAPElement nfeCabeMsg = sFactory.createElement("nfeCabecMsg",PREFIX,URI);

SOAPElement uf = sFactory.createElement("cUF");
SOAPElement indComp = sFactory.createElement("indComp");
SOAPElement versaoDados = sFactory.createElement("versaoDados");

uf.addTextNode("28");
indComp.addTextNode("0");
versaoDados.addTextNode("1.01");

nfeCabeMsg.addChildElement(uf);
nfeCabeMsg.addChildElement(indComp);
nfeCabeMsg.addChildElement(versaoDados);
System.out.println(nfeCabeMsg.getElementName());

header.addChildElement(nfeCabeMsg);

Any idea ?
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic