A
A
Alexander Dubina2015-04-21 17:18:58
Java
Alexander Dubina, 2015-04-21 17:18:58

How to set up a JAVA client so that it does not serialize data?

There is a Java client in the wcf service.
Everything is fine, but in one place the service accepts a json stream (something like this

WebKitFormBoundary8NCTJYqTYu59ABdo
Content-Disposition: form-data; name="file"; filename="auth.json"
Content-Type: application/octet-stream

{"Response":{"Items":[{"Issuer":{"NameQualifier":null,"SPNameQualifier":null,"Format":null,"SPProvidedID":null,"Val
), and java sends a byte[] wrapped in XML (
<?xml version="1.0" encoding="UTF-8"?>
-<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
-<soapenv:Body>
-<UploadFile xmlns="http://tempuri.org/">
-<inputStream>
<inputStream>37</inputStream>
<inputStream>80</inputStream>
) .
in general, I need to either cancel the serialization manually in the auto-generated web client in Eclipse, or make settings for the web service in order to regenerate the client, or manually somehow read the stream on the server ......

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikolai Pavlov, 2015-04-21
@struggleendlessly

1. Java is a programming language, which Java client are we talking about?
2. Open the code and see what happens there)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question