aspose 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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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)
 
Similar Threads
Webservice...service calling error
Currency Web Service almost there
How to pass complex type parameter in web service while creating it through SAAJ
how to invoke a webservice
javax.rpc.call problem