SoapFormatter in Java

Z

zabutimaxim

Hi,

We developing system where server is .NET while client is Java applet.
The .NET should create some pretty complicated strcuture which is
actually a list of definitions that Java on client should execute.
In .NET we serialize the strucutre with SoapFormatter and the
serialized Xml looks not so user-friendly,
you can see it bellow. The question is whether Java has something that
can deserialize object from the Xml
in easy way like .NET knows to do?


<SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-
ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://
schemas.xmlsoap.org/soap/envelope/" xmlns:clr="http://
schemas.microsoft.com/soap/encoding/clr/1.0" SOAP-
ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<a1:VaultServersOperationDefinitionsCollection id="ref-1"
xmlns:a1="http://schemas.microsoft.com/clr/nsassem/
MyProduct.Common.Contracts.DataContracts/MyProduct.Common%2C%20Version
%3D1.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull">
<IVaultServerOperationDefinitions href="#ref-3"/>
</a1:VaultServersOperationDefinitionsCollection>
<SOAP-ENC:Array id="ref-3" SOAP-
ENC:arrayType="a2:IVaultServerOperationDefinitions[1]"
xmlns:a2="http://schemas.microsoft.com/clr/nsassem/
MyProduct.Common.Interfaces/MyProduct.Common%2C%20Version%3D1.0.0.0%2C
%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull">
<item href="#ref-4"/>
</SOAP-ENC:Array>
<a1:VaultServerOperationDefinitions id="ref-4" xmlns:a1="http://
schemas.microsoft.com/clr/nsassem/
MyProduct.Common.Contracts.DataContracts/MyProduct.Common%2C%20Version
%3D1.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull">
<vaultServerInfo xsi:null="1"/>
<operationDeifnitionsCollection href="#ref-5"/>
</a1:VaultServerOperationDefinitions>
<a1:OperationDefinitionsCollection id="ref-5" xmlns:a1="http://
schemas.microsoft.com/clr/nsassem/
MyProduct.Common.Contracts.DataContracts/MyProduct.Common%2C%20Version
%3D1.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull">
<IOperationDefinition href="#ref-6"/>
</a1:OperationDefinitionsCollection>
<SOAP-ENC:Array id="ref-6" SOAP-
ENC:arrayType="a2:IOperationDefinition[6]" xmlns:a2="http://
schemas.microsoft.com/clr/nsassem/MyProduct.Common.Interfaces/
MyProduct.Common%2C%20Version%3D1.0.0.0%2C%20Culture%3Dneutral%2C
%20PublicKeyToken%3Dnull">
<item href="#ref-7"/>
<item href="#ref-8"/>
<item href="#ref-9"/>
<item href="#ref-10"/>
<item href="#ref-11"/>
<item href="#ref-12"/>
</SOAP-ENC:Array>
<a3:FileExistsDefinition id="ref-7" xmlns:a3="http://
schemas.microsoft.com/clr/nsassem/
MyProduct.Common.Contracts.DataContracts.Definitions/MyProduct.Common
%2C%20Version%3D1.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken
%3Dnull">
<fileInfo href="#ref-13"/>
<BaseOperationDefinition_x002B_token id="ref-14">323fc854-6160-49f3-
a45c-3b88e05743e3</BaseOperationDefinition_x002B_token>
<BaseOperationDefinition_x002B_priority>0</
BaseOperationDefinition_x002B_priority>
<BaseOperationDefinition_x002B_operationId
id="ref-15">3f0ba7a7-10be-47da-9f85-499c8374e8e2</
BaseOperationDefinition_x002B_operationId>
</a3:FileExistsDefinition>
<a4:UploadFileDefinition id="ref-8" xmlns:a4="http://
schemas.microsoft.com/clr/nsassem/
MyProduct.Common.Contracts.MessageContracts.Definitions/
MyProduct.Common%2C%20Version%3D1.0.0.0%2C%20Culture%3Dneutral%2C
%20PublicKeyToken%3Dnull">
<BaseOperationDefinition_x002B_token href="#ref-14"/>
<BaseOperationDefinition_x002B_priority>0</
BaseOperationDefinition_x002B_priority>
<BaseOperationDefinition_x002B_operationId
id="ref-18">7f4ee4df-5822-4fc5-8617-8d780497cb5a</
BaseOperationDefinition_x002B_operationId>
</a4:UploadFileDefinition>
<a3:CopyFileFromVaultToVaultDefinition id="ref-9" xmlns:a3="http://
schemas.microsoft.com/clr/nsassem/
MyProduct.Common.Contracts.DataContracts.Definitions/MyProduct.Common
%2C%20Version%3D1.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken
%3Dnull">
<sourceFileInfo href="#ref-19"/>
<destinationFileInfo href="#ref-20"/>
<overwrite>true</overwrite>
<mandatoryMasks href="#ref-21"/>
<BaseOperationDefinition_x002B_token href="#ref-14"/>
<BaseOperationDefinition_x002B_priority>0</
BaseOperationDefinition_x002B_priority>
<BaseOperationDefinition_x002B_operationId id="ref-24">e788ba17-
e542-40e6-959a-603e4ea04284</
BaseOperationDefinition_x002B_operationId>
</a3:CopyFileFromVaultToVaultDefinition>
<a3:CopyFileFromVaultToVaultDefinition id="ref-10" xmlns:a3="http://
schemas.microsoft.com/clr/nsassem/
MyProduct.Common.Contracts.DataContracts.Definitions/MyProduct.Common
%2C%20Version%3D1.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken
%3Dnull">
<sourceFileInfo href="#ref-25"/>
<destinationFileInfo href="#ref-26"/>
<overwrite>true</overwrite>
<mandatoryMasks href="#ref-27"/>
<BaseOperationDefinition_x002B_token href="#ref-14"/>
<BaseOperationDefinition_x002B_priority>0</
BaseOperationDefinition_x002B_priority>
<BaseOperationDefinition_x002B_operationId
id="ref-30">d853d563-2d79-4e67-917e-35172a97e61f</
BaseOperationDefinition_x002B_operationId>
</a3:CopyFileFromVaultToVaultDefinition>
<a3:CommitTransactionDefinition id="ref-11" xmlns:a3="http://
schemas.microsoft.com/clr/nsassem/
MyProduct.Common.Contracts.DataContracts.Definitions/MyProduct.Common
%2C%20Version%3D1.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken
%3Dnull">
<commitOperationId id="ref-31">d853d563-2d79-4e67-917e-35172a97e61f</
commitOperationId>
<BaseOperationDefinition_x002B_token href="#ref-14"/>
<BaseOperationDefinition_x002B_priority>0</
BaseOperationDefinition_x002B_priority>
<BaseOperationDefinition_x002B_operationId
id="ref-32">383d10d8-11a5-442a-a891-c876e8b4e49a</
BaseOperationDefinition_x002B_operationId>
</a3:CommitTransactionDefinition>
<a3:CloseSessionDefinition id="ref-12" xmlns:a3="http://
schemas.microsoft.com/clr/nsassem/
MyProduct.Common.Contracts.DataContracts.Definitions/MyProduct.Common
%2C%20Version%3D1.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken
%3Dnull">
<BaseOperationDefinition_x002B_token href="#ref-14"/>
<BaseOperationDefinition_x002B_priority>0</
BaseOperationDefinition_x002B_priority>
<BaseOperationDefinition_x002B_operationId
id="ref-33">4dd01341-9403-4bcc-8a20-87f6af49f220</
BaseOperationDefinition_x002B_operationId>
</a3:CloseSessionDefinition>
<a1:RemoteFileInfo id="ref-13" xmlns:a1="http://schemas.microsoft.com/
clr/nsassem/MyProduct.Common.Contracts.DataContracts/MyProduct.Common
%2C%20Version%3D1.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken
%3Dnull">
<vaultObjectId>0</vaultObjectId>
<fileName id="ref-34">test_892.txt</fileName>
<directory id="ref-35"></directory>
</a1:RemoteFileInfo>
<a1:RemoteFileInfo id="ref-16" xmlns:a1="http://schemas.microsoft.com/
clr/nsassem/MyProduct.Common.Contracts.DataContracts/MyProduct.Common
%2C%20Version%3D1.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken
%3Dnull">
<vaultObjectId>0</vaultObjectId>
<fileName id="ref-36">test_892.txt</fileName>
<directory id="ref-37">Dir</directory>
</a1:RemoteFileInfo>
<a1:TransactionDefinition id="ref-17" xmlns:a1="http://
schemas.microsoft.com/clr/nsassem/
MyProduct.Common.Contracts.DataContracts/MyProduct.Common%2C%20Version
%3D1.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull">
<isAutoComplete>true</isAutoComplete>
</a1:TransactionDefinition>
<a1:RemoteFileInfo id="ref-19" xmlns:a1="http://schemas.microsoft.com/
clr/nsassem/MyProduct.Common.Contracts.DataContracts/MyProduct.Common
%2C%20Version%3D1.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken
%3Dnull">
<vaultObjectId>0</vaultObjectId>
<fileName id="ref-38">test_892.txt</fileName>
<directory href="#ref-35"/>
</a1:RemoteFileInfo>
<a1:RemoteFileInfo id="ref-20" xmlns:a1="http://schemas.microsoft.com/
clr/nsassem/MyProduct.Common.Contracts.DataContracts/MyProduct.Common
%2C%20Version%3D1.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken
%3Dnull">
<vaultObjectId>0</vaultObjectId>
<fileName id="ref-39">test_892.txt.copied</fileName>
<directory href="#ref-35"/>
</a1:RemoteFileInfo>
<a1:FileMaskDefinitionsCollection id="ref-21" xmlns:a1="http://
schemas.microsoft.com/clr/nsassem/
MyProduct.Common.Contracts.DataContracts/MyProduct.Common%2C%20Version
%3D1.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull">
<values href="#ref-40"/>
</a1:FileMaskDefinitionsCollection>
<a1:FileMaskDefinitionsCollection id="ref-22" xmlns:a1="http://
schemas.microsoft.com/clr/nsassem/
MyProduct.Common.Contracts.DataContracts/MyProduct.Common%2C%20Version
%3D1.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull">
<values href="#ref-41"/>
</a1:FileMaskDefinitionsCollection>
<a1:TransactionDefinition id="ref-23" xmlns:a1="http://
schemas.microsoft.com/clr/nsassem/
MyProduct.Common.Contracts.DataContracts/MyProduct.Common%2C%20Version
%3D1.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull">
<isAutoComplete>true</isAutoComplete>
</a1:TransactionDefinition>
<a1:RemoteFileInfo id="ref-25" xmlns:a1="http://schemas.microsoft.com/
clr/nsassem/MyProduct.Common.Contracts.DataContracts/MyProduct.Common
%2C%20Version%3D1.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken
%3Dnull">
<vaultObjectId>0</vaultObjectId>
<fileName id="ref-42">test_892.txt.copied</fileName>
<directory href="#ref-35"/>
</a1:RemoteFileInfo>
<a1:RemoteFileInfo id="ref-26" xmlns:a1="http://schemas.microsoft.com/
clr/nsassem/MyProduct.Common.Contracts.DataContracts/MyProduct.Common
%2C%20Version%3D1.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken
%3Dnull">
<vaultObjectId>0</vaultObjectId>
<fileName id="ref-43">test_892.txt.copied2</fileName>
<directory href="#ref-35"/>
</a1:RemoteFileInfo>
<a1:FileMaskDefinitionsCollection id="ref-27" xmlns:a1="http://
schemas.microsoft.com/clr/nsassem/
MyProduct.Common.Contracts.DataContracts/MyProduct.Common%2C%20Version
%3D1.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull">
<values href="#ref-44"/>
</a1:FileMaskDefinitionsCollection>
<a1:FileMaskDefinitionsCollection id="ref-28" xmlns:a1="http://
schemas.microsoft.com/clr/nsassem/
MyProduct.Common.Contracts.DataContracts/MyProduct.Common%2C%20Version
%3D1.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull">
<values href="#ref-45"/>
</a1:FileMaskDefinitionsCollection>
<a1:TransactionDefinition id="ref-29" xmlns:a1="http://
schemas.microsoft.com/clr/nsassem/
MyProduct.Common.Contracts.DataContracts/MyProduct.Common%2C%20Version
%3D1.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull">
<isAutoComplete>false</isAutoComplete>
</a1:TransactionDefinition>
<SOAP-ENC:Array id="ref-40" SOAP-ENC:arrayType="xsd:string[0]">
</SOAP-ENC:Array>
<SOAP-ENC:Array id="ref-41" SOAP-ENC:arrayType="xsd:string[1]">
<item id="ref-46">*.lll</item>
</SOAP-ENC:Array>
<SOAP-ENC:Array id="ref-44" SOAP-ENC:arrayType="xsd:string[0]">
</SOAP-ENC:Array>
<SOAP-ENC:Array id="ref-45" SOAP-ENC:arrayType="xsd:string[1]">
<item id="ref-47">*.lll</item>
</SOAP-ENC:Array>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>



Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,034
Messages
2,570,356
Members
47,002
Latest member
RobertoLip

Latest Threads

Top