Skip to content

Instantly share code, notes, and snippets.

@Qkyrie
Created July 17, 2013 08:07
Show Gist options
  • Save Qkyrie/6018671 to your computer and use it in GitHub Desktop.
Save Qkyrie/6018671 to your computer and use it in GitHub Desktop.
make a web service send the data chunked. This will tell the host it will send it chunked before sending it
...
private static final int STREAMING_CHUNK_SIZE = 4096;
...
Map<String, Object> ctxt = ((BindingProvider)service.getUploadVisitorInformationImplPort()).getRequestContext();
ctxt.put(com.sun.xml.ws.client.BindingProviderProperties.HTTP_CLIENT_STREAMING_CHUNK_SIZE, STREAMING_CHUNK_SIZE);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment