Jboss 4.2 Swaref WS客户端附件无法正常工作

时间:2013-12-17 17:11:24

标签: jboss

我们无法通过JBOSS WS Client发送pdf文件。这是细节

Jboss AS版 - > jboss-4.2.2.GA

Java版本 - > jdk1.5.0_22

RHEL版本 - > 5.3

Attachement - > Swaref和DataHandler来处理attachemeent

该计划的步骤

FileDataSource binaryFds = new FileDataSource(filename);

DataHandler binaryFileHandler = new DataHandler(binaryFds);

//将dh设置为元素

运行时JBOSS Jars - > JBOSS WS Run Client脚本中指定的jar

DEBUG [main](JAXBSerializer.java:61) - 序列化:[xmlName = {MNPProtocol.xsd} MNPFrame,xmlType = {MNPProtocol.xsd}> MNPFrame] DEBUG [main](CIDGenerator.java:53) - generateFromCount:0-1387360788652-2004234183@ws.jboss.org DEBUG [main](AttachmentMarshallerImpl.java:125) - 创建附件部分0-1387360788652-2004234183@ws.jboss.org,内容类型application / octet-stream DEBUG [main](JAXBSerializer.java:83) - 序列号:130502800-0000000000000000062013-12-18T15:29:44.259 + 05:30130-M-180-20131207-A0003041305021cid:0-1387360788652-2004234183@ws.jboss.org17303100097FGXXXXX1101051001Postpaidsome1234567890123456789012312312122013- 12-18T15:29:44.259 + 05:30pradeep12122 DEBUG [main](ObjectContent.java:162) - xmlFragment:[source = 130502800-0000000000000000062013-12-18T15:29:44.259 + 05:30130-M-180-20131207-A0003041305021cid:0-1387360788652-2004234183@ws.jboss .org17303100097FGXXXXX1101051001Postpaidsome1234567890123456789012312312122013-12-18T15:29:44.259 + 05:30pradeep12122] DEBUG [main](SOAPContentElement.java:144) - ----------------------------------- DEBUG [main](SOAPMessageUnMarshallerHTTP.java:123) - getMimeHeaders来自:{X-Powered-By = [Servlet 2.4; JBoss-4.2.2.GA(build:SVNTag = JBoss_4_2_2_GA date = 200710221139)/Tomcat-5.5],ResponseCodeMessage = OK,Date = [Wed,2013年12月18日09:59:48 GMT],Content-Type = [text / xml; charset = UTF-8],Server = [Apache-Coyote / 1.1],HEADER = {SOAPAction =“send”,Content-Type = text / xml; charset = UTF-8},Transfer-Encoding = [chunked],NoThrowOnError = true,ResponseCode = 200} DEBUG [main](MessageFactoryImpl.java:215) - createMessage:[contentType = text / xml;字符集= UTF-8] DEBUG [main](InvokerRegistry.java:595) - 从注册表中删除了org.jboss.remoting.transport.http.HTTPClientInvoker@737c2891 DEBUG [main](MessageContextJAXWS.java:105) - 开始响应处理

无法发送从SOAP消息中删除的attachemenet

0 个答案:

没有答案