我有一个java Web服务提供程序,带有String和File(.doc)参数。 请帮我正确接收File参数。我如何在输入中声明它?
public String createOrder (String subject, String file){
return "ok";
}
我尝试通过SoapUI测试(发送.doc附件),我收到此错误:
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Server.generalException</faultcode>
<faultstring>org.xml.sax.SAXParseException: Content is not allowed in prolog.</faultstring>
<detail/>
</soapenv:Fault>
</soapenv:Body>