Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Axis 1.4 Client and "Did not understand "MustUnderstand" header(s)"

Reply
Thread Tools

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

 
 
Reg
Guest
Posts: n/a
 
      08-13-2007
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,


 
Reply With Quote
 
 
 
 
GArlington
Guest
Posts: n/a
 
      08-14-2007
On 13 Aug, 19:56, "Reg" <(E-Mail Removed)> wrote:
> 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)'

 
Reply With Quote
 
 
 
 
acsimsek acsimsek is offline
Junior Member
Join Date: Jan 2013
Posts: 1
 
      01-28-2013
in my case, this solved the problem

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

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

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Axis question: what is the correct way to use Axis? ed Java 2 12-08-2006 07:31 PM
Calling a Web Service using Axis, from within an Axis Web Service running under Tomcat hocho888 Java 1 04-29-2005 08:26 PM
AXIS jars org.apache.axis.wsi.* and org.apache.axis.transport.jms.* unkwb@web.de Java 0 02-23-2005 04:02 PM
Axis 1.1 don't delete attachments in the axis attachment cache Stefan Java 0 05-06-2004 08:00 PM
axis.jar does not contain org.apache.axis.client.ServiceClient? Joey Vendetta Java 0 04-01-2004 05:51 PM



Advertisments