Created
February 4, 2016 18:26
-
-
Save luismoramedina/897c492d079a436c6c02 to your computer and use it in GitHub Desktop.
create SOAPMessage from string
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Util to get a soapmessage from a string. | |
| */ | |
| private SOAPMessage getSoapMessageFromString(String xml) throws SOAPException, IOException { | |
| MessageFactory factory = MessageFactory.newInstance() | |
| factory.createMessage(new MimeHeaders(), new ByteArrayInputStream(xml.getBytes('UTF-8'))) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hola, me arroja esta excepcion, pese a indicarle utf-8 "javax.xml.soap.SOAPException: Content-Type not specified"
Un saludo