Java Services of Business Connector using webMethods to XI

My question is when the pipeline is filled with the varibles defined in the java services what is the format of the input to the pipeline and the format of output from the pipeline genrated in BC.

[FONT=Tms Rmn]My problem is :

outbound interface–> java mapping in xi->output in the format of BC’s input for java services(X)

X------->BC processing with web methods------------>(Y)

Y---------->some logic----------->output in the format of XI’s output for the inbound interface

I want to match this format with the input and output format of the xml required in the java mapping of XI where stream is used instead of IData pipeline.
I shall be very much thankfull if anyone can provide me with the sample format of that input or output in pipeline of BC.