• 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
  • 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 ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic