将String转换为输入流,然后将其读入SOAP消息工厂。
InputStream is = new ByteArrayInputStream(send.getBytes());SOAPMessage request = MessageFactory.newInstance().createMessage(null, is);
您可以在此处阅读有关如何执行此操作的信息。

将String转换为输入流,然后将其读入SOAP消息工厂。
InputStream is = new ByteArrayInputStream(send.getBytes());SOAPMessage request = MessageFactory.newInstance().createMessage(null, is);
您可以在此处阅读有关如何执行此操作的信息。