title: Removing certain Elements from Header - that were created by WSE 3.0
body: <p>I am working with a wsdl which is automatically adding extra elements into the xml. In order for it to comply with an external web service that do not use these elements.  See the following image:
  <a href="http://img406.imageshack.us/img406/1307/differencese.png" rel="nofollow">http://img406.imageshack.us/img406/1307/differencese.png</a>
  Left = Red elements need removed - Right = What i need it to output</p>
  
  <p>i have attached the code that is creating my envelope and payload.</p>
  
  <pre><code>    Dim content As myProxy.Content = New myProxy.Content
      Dim inputguid As String = Guid.NewGuid.ToString
      Dim service As myProxy.WebService = New myProxy.WebService
      Dim str As New System.Xml.XmlDocument
      Dim payload As myProxy.Payload = New myProxy.Payload
  
      'payload
      str.LoadXml(xmlstr)
  
      'manifest
      service.payloadManifest = New myProxy.PayloadManifest
      service.payloadManifest.manifest = New myProxy.Manifest() {New myProxy.Manifest}
      service.payloadManifest.manifest(0).element = "GetVehicleServiceHistory"
      service.payloadManifest.manifest(0).namespaceURI = ""
      service.payloadManifest.manifest(0).contentID = "Content0"
      service.payloadManifest.manifest(0).version = "2.01"
      service.SoapVersion = SoapProtocolVersion.Soap11
  
      service.UserAgent = "Jakarta Commons-HttpClient/3.1"
      Dim usertoken As New Microsoft.Web.Services3.Security.Tokens.UsernameToken("userid", "password", Microsoft.Web.Services3.Security.Tokens.PasswordOption.SendPlainText)
  
      service.RequestSoapContext.Security.Tokens.Add(usertoken)
      service.RequestSoapContext.Security.MustUnderstand = False
  
      payload.content = New myProxy.Content() {content}
      ReDim Preserve payload.content(0)
      payload.content(0).Any = str.DocumentElement
      payload.content(0).id = "Content0"
  
      service.Url = "http://localhost:8080"
      service.ProcessMessage(payload)
  </code></pre>
  
  <p>Any help would be much appreciated.</p>
  
  <p>Michael</p>