Axis 1.4 Client and "Did not understand "MustUnderstand" header(s)"

R

Reg

Hello,

I have a Axis 1.4 Java client and .NET Web Service.
When I try to use Web Services method "Did not understand "MustUnderstand"
header(s)"
error occurs. Can anyone say how to get rid of it?

I tried to use code like below but without success.

call.setSOAPVersion(SOAPConstants.SOAP12_CONSTANTS);

SOAPHeaderElement header = new
SOAPHeaderElement("http://example.com/header",
"very-important-info",
"blah");
header.setMustUnderstand(true);
header.setActor(Constants.URI_SOAP12_ULTIMATE_ROLE);

call.addHeader(header);

Cheers,
 
G

GArlington

Hello,

I have a Axis 1.4 Java client and .NET Web Service.
When I try to use Web Services method "Did not understand "MustUnderstand"
header(s)"
error occurs. Can anyone say how to get rid of it?

I tried to use code like below but without success.

call.setSOAPVersion(SOAPConstants.SOAP12_CONSTANTS);

SOAPHeaderElement header = new
SOAPHeaderElement("http://example.com/header",
"very-important-info",
"blah");
header.setMustUnderstand(true);
header.setActor(Constants.URI_SOAP12_ULTIMATE_ROLE);

call.addHeader(header);

Cheers,


Try
http://www.pocketsoap.com/weblog/2005/02/1508.html
and
google search for 'axis mustunderstand (header)'
 
Joined
Jan 28, 2013
Messages
1
Reaction score
0
axis 1.4 mustunderstand problem

in my case, this solved the problem

MyService service = new MyServiceLocator();
MyServicePortType port = service.getMyServiceHttpsSoap11Endpoint();

((Stub) port)._setProperty(Call.CHECK_MUST_UNDERSTAND, Boolean.FALSE);
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,756
Messages
2,569,533
Members
45,007
Latest member
OrderFitnessKetoCapsules

Latest Threads

Top