File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes What is wrong ? Using Jax-RPC (Server did not recognize the value of HTTP Header SOAPAction) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "What is wrong ? Using Jax-RPC (Server did not recognize the value of HTTP Header SOAPAction)" Watch "What is wrong ? Using Jax-RPC (Server did not recognize the value of HTTP Header SOAPAction)" New topic
Author

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

Thiago Seila
Greenhorn

Joined: Dec 10, 2009
Posts: 1
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
 
subject: What is wrong ? Using Jax-RPC (Server did not recognize the value of HTTP Header SOAPAction)