You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Alex A <al...@alex-andr.org> on 2010/12/01 12:06:57 UTC

Re: AW: Need help: large attachments inside SOAP XML request

Thanks Josef

By chance, do you have any suggestions how can I "insert" (I am trying 
not to use word "stream") the content of a file inside XML generated via 
Axis2/J?

In particular, I am looking for a direction how to replace wsdl2java - 
generated
"setContent(byte[] content)" to something like 
"setContent(SomeStreamingMechanism source)"

Thanks,
~ Alex.

On 11/30/2010 3:52 AM, Stadelmann Josef wrote:
>
> just a hint !
>
> For those elaborating with-in heterogeneous environments, such as 
> MS-something-client to axis2-services or axis2-client to 
> MS-something-service
>
> MS-something can stand for a ASP.NET or IIS or WCF-based web-service 
> or whatever comes from MS*.
>
> My learning was:
>
> Do it first 1 to 1 by using not a heterogeneous environment that is to say
>
> a)Java to Java -> axis2-client-Java to axis2-service-Java AND
>
> b)Monitor and record traffic using TCPMON or Wire Shark AND THEN
>
> c)If you understand what is going on and how to control it MAKE
>
> d)MS-some-client (ie. ASP.NET-client) to  MS-some-service (i.e. 
> ASP.NET-service or IIS-service) AND
>
> e)Trace and record all traffic using TCPMON or Wire-Shark UNLESS
>
> f) you really know how this two partner in each environment 
> communicate with each other AND UNLESS
>
> g)your are happy and understand the protocol-bits and bytes, THEN
>
> h)figure out the commonalities AND
>
> i)figure out how you can best make your axis2-Client fake to your 
> MS-something-service i.e. IIS BECAUSE YOU SHOULD
>
> *j)**concentrate fully on the protocol traced and recorded by TCPMON 
> or Wire Shark*
>
> k)make your client as independent as possible from the service but 
> make it send and receive to what the service expects to receive and 
> send, AND
>
> l)even MTOM and streaming goes into the same business, BECAUSE
>
> m)if streaming is not supported according to standards by one party 
> forget it AND
>
> n)if MTOM is not supported by one party according to standards forget it
>
> We did that even for  long lasting sessions, between a MS C# .NET WCF 
> 3.5 client and a Axis2/J 1.2 Service in scope="soapsession", passing 
> nested collections trimmed tour needs.
>
> But we would not be able to do it not following the approach and 
> sequence shown above.
>
> Josef. Stadelmann
>
> @axa-winterthur.ch
>
> *Von:*Alex A [mailto:alex@alex-andr.org]
> *Gesendet:* Dienstag, 30. November 2010 03:41
> *An:* java-dev@axis.apache.org
> *Cc:* java-user@axis.apache.org
> *Betreff:* Need help: large attachments inside SOAP XML request
>
> Hello
>
> I am looking for a way to stream the content of file inside the XML 
> element, *without MTOM enabled*.
>
> Because it looks like MTOM is not supported by the Microsoft's IIS.
>
> Axis2/J, only client - wsdl used to generate xmlbeans/stub.
>
> Anyone could give me pointers or even better, examples?
>
> Thanks,
> ~ Alex.
>