English 中文(简体)
Wcf客户向 Java服务器传送数据
原标题:streaming data from Wcf client to Java server

我们的情况:我们有一个 j服务器,这里是网络服务的定义:

@WebMethod(operationName = "upload")
void upload(
 @WebParam(name = "User", partName = "User", header = true) String user,
 @WebParam(name = "Pwd",partName = "Pwd",header = true) String password,
 @WebParam(name = "Filename",partName = "Filename",header = true) String filename,
 @WebParam(name = "Data", partName = "Data",targetNamespace = "http://") @XmlMimeType("application/octet-stream")
DataHandler data) throws InvalidRequestException, ServiceException;

我们的客户是按正文撰写的。 自动生成的Wcf客户对“上载”方法的要求参数是:

public partial class uploadRequest {
 [MessageBodyMemberAttribute(Namespace="http://", Order=0)]
 [XmlArrayAttribute(Form=XmlSchemaForm.Unqualified)]
 [XmlArrayItemAttribute(Form=XmlSchemaForm.Unqualified, IsNullable=false)]
 public Property[] Properties;

 [MessageBodyMemberAttribute(Namespace="http://", Order=1)]
 [XmlElementAttribute(Form=XmlSchemaForm.Unqualified, DataType="base64Binary")]
 public byte[] Data;

 public uploadRequest() {}

 public uploadRequest(Property[] Properties, byte[] Data) {
  this.Properties = Properties;
  this.Data = Data;
 }
}

这一法典运作良好,但我们需要数据作为精简,而不是仓促,因为我们想要上载大量档案。 现在,在主流化方面,我们需要为负责人而不是为身体确定的“财产”(以及自然在编织档案中的一些变化),但问题是:这是自动产生的。

www.un.org/Depts/DGACM/index_french.htm 我们如何能够迫使 w客一方为我们制定正确的法典? 或者,我们是否应当改变服务器面以实现这一目标?

问题回答

暂无回答




相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签