wood burning stoves 2.0*
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
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 ?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: What is wrong ? Using Jax-RPC (Server did not recognize the value of HTTP Header SOAPAction)
 
Similar Threads
javax.rpc.call problem
How to pass complex type parameter in web service while creating it through SAAJ
how to invoke a webservice
Currency Web Service almost there
Webservice...service calling error