{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/AL/issues/897","repository_url":"https://api.github.com/repos/Microsoft/AL","labels_url":"https://api.github.com/repos/Microsoft/AL/issues/897/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/AL/issues/897/comments","events_url":"https://api.github.com/repos/Microsoft/AL/issues/897/events","html_url":"https://github.com/Microsoft/AL/issues/897","id":271894808,"number":897,"title":"Send SOAP WebService Request (Content-Type and Xml Prefix questions)","user":{"login":"Skordas","id":33229214,"avatar_url":"https://avatars1.githubusercontent.com/u/33229214?v=4","gravatar_id":"","url":"https://api.github.com/users/Skordas","html_url":"https://github.com/Skordas","followers_url":"https://api.github.com/users/Skordas/followers","following_url":"https://api.github.com/users/Skordas/following{/other_user}","gists_url":"https://api.github.com/users/Skordas/gists{/gist_id}","starred_url":"https://api.github.com/users/Skordas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Skordas/subscriptions","organizations_url":"https://api.github.com/users/Skordas/orgs","repos_url":"https://api.github.com/users/Skordas/repos","events_url":"https://api.github.com/users/Skordas/events{/privacy}","received_events_url":"https://api.github.com/users/Skordas/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-11-07T16:23:55Z","updated_at":"2017-12-07T03:19:35Z","closed_at":"2017-11-08T16:28:04Z","author_association":"NONE","body":"sorry for the questions, but since i haven't found any serious AL forum yet and i'm struggeling converting C/SIDE to AL... This time it's about a SOAP WebService call from AL to AL, and i have two issues:\r\n\r\nHow to set the content type to \"text/xml; charset=utf-8\"? I tried content.GetHeaders and Add, but than i do have multiple content types. Without, i do receive a unsupported media error.\r\n\r\n```\r\n        Content.GetHeaders(Headers);\r\n        Content.WriteFrom(CreateMySoapWebServiceXml);\r\n         RequestMessage.SetRequestUri('http://febee32f3cb2:7047/NAV/WS/CRONUS%20AG/Codeunit/MyPublishedWebService');\r\n        RequestMessage.Method('POST');\r\n        RequestMessage.Content(Content);\r\n        RequestMessage.GetHeaders(Headers);\r\n        Headers.Add('SOAPAction',GetSoapServiceName + ':' + GetSoapMethodName);\r\n\r\n        if Client.Send(RequestMessage,ResponseMessage) then begin\r\n            // ....\r\n        end;\r\n```\r\n\r\nThe second question is about the prefixes \"soap\" for XML. In .NET i the CreateElement had an overload for CreateElement(Prefix,LocalName,NamespaceUri). The XmlElement.Create does only have LocalName and NamespaceUri as parameters.\r\n\r\nThanks in advance!"},"comment":{"url":"https://api.github.com/repos/Microsoft/AL/issues/comments/349850768","html_url":"https://github.com/Microsoft/AL/issues/897#issuecomment-349850768","issue_url":"https://api.github.com/repos/Microsoft/AL/issues/897","id":349850768,"user":{"login":"naveenpinnama","id":34326092,"avatar_url":"https://avatars0.githubusercontent.com/u/34326092?v=4","gravatar_id":"","url":"https://api.github.com/users/naveenpinnama","html_url":"https://github.com/naveenpinnama","followers_url":"https://api.github.com/users/naveenpinnama/followers","following_url":"https://api.github.com/users/naveenpinnama/following{/other_user}","gists_url":"https://api.github.com/users/naveenpinnama/gists{/gist_id}","starred_url":"https://api.github.com/users/naveenpinnama/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naveenpinnama/subscriptions","organizations_url":"https://api.github.com/users/naveenpinnama/orgs","repos_url":"https://api.github.com/users/naveenpinnama/repos","events_url":"https://api.github.com/users/naveenpinnama/events{/privacy}","received_events_url":"https://api.github.com/users/naveenpinnama/received_events","type":"User","site_admin":false},"created_at":"2017-12-07T03:19:35Z","updated_at":"2017-12-07T03:19:35Z","author_association":"NONE","body":"I am running into same issue as your question. What is the syntax for removing the headers on request message?"}}
{"actor":{"display_login":"naveenpinnama"}}