tag:blogger.com,1999:blog-8507185344691363497.post6182975249814664557..comments2023-12-12T12:13:15.557+01:00Comments on i8c - Business Integration Architects: WS-Security mustUnderstand in webmethodsi8chttp://www.blogger.com/profile/05003002313779050051noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-8507185344691363497.post-24368923915755377282012-08-29T09:46:51.158+02:002012-08-29T09:46:51.158+02:00The code looks good. For simplicity's sake, th...The code looks good. For simplicity's sake, the code does not take into account additional headers that do not have a mustUnderstand, it is possible that if you try to call removeAttributeNS() on an element that does not have the attribute to begin with, it could result in an exception. <br /><br />I have not tested this and it is against the specifications so I can't be sure. You could check if the header has the required attribute before attempting to remove it.i8chttps://www.blogger.com/profile/05003002313779050051noreply@blogger.comtag:blogger.com,1999:blog-8507185344691363497.post-42023712128573086222012-08-24T18:43:45.996+02:002012-08-24T18:43:45.996+02:00Did I do this correctly? I am getting the Bundle:c...Did I do this correctly? I am getting the Bundle:com.wm.dom.resources.DOMMessageBundle Key:133.8 error.<br /><br />IDataCursor cursor = pipeline.getCursor();<br />org.w3c.dom.Element element = (org.w3c.dom.Element) IDataUtil.get(cursor, "header");<br />element.removeAttributeNS("http://schemas.xmlsoap.org/soap/envelope/", "mustUnderstand");<br />IDataUtil.put(cursor, "header", element);<br />cursor.destroy();Petehttps://www.blogger.com/profile/05326753645345400833noreply@blogger.com