You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Demetris G <de...@ece.neu.edu> on 2007/05/23 02:02:23 UTC
Reading Axis SOAP messages
Hey all,
wouldn't reading the SOAP messages as plain text as they come into a
socket be the
right way to go about with it? It seems that I am getting empty SOAP
headers and bodies
for what I verified to be legitimate service calls. Any ideas ?
>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: Reading Axis SOAP messages
Posted by Demetris G <de...@ece.neu.edu>.
I have seen examples today of how others have done this and I am
realizing now
the extent of it:
http://www.systinet.com/doc/ssj-65/ssj/xml.html
Toon Wouters wrote:
> Can you post the code that processes the incoming data and prints out
> those lines?
>
> Toon
>
> On 5/23/07, *Demetris G* < demetris@ece.neu.edu
> <ma...@ece.neu.edu>> wrote:
>
>
> To make this more specific, this is what I get coming into my server
> socket from
> the Axis client:
>
> Waiting for Axis outgoing SOAP message ...
> [Thread[Thread-1,5,main]]Received from Axis=[POST
> /axis/services/remoteFW HTTP/1.0]
> [Thread[Thread-1,5,main]]Received from Axis=[Content-Type: text/xml;
> charset=utf-8]
> [Thread[Thread-1,5,main]]Received from Axis=[Accept:
> application/soap+xml, application/dime, multipart/related, text/*]
> [Thread[Thread-1,5,main]]Received from Axis=[User-Agent: Axis/1.4]
> [Thread[Thread-1,5,main]]Received from Axis=[Host: 127.0.0.1:9090
> <http://127.0.0.1:9090>]
> [Thread[Thread-1,5,main]]Received from Axis=[Cache-Control: no-cache]
> [Thread[Thread-1,5,main]]Received from Axis=[Pragma: no-cache]
> [Thread[Thread-1,5,main]]Received from Axis=[SOAPAction: ""]
> [Thread[Thread-1,5,main]]Received from Axis=[Content-Length: 398]
> [Thread[Thread-1,5,main]]Received from Axis=[]
>
> But then it stalls here waiting for something more that never comes ..
> any ideas ?
>
> Thanks
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> <ma...@ws.apache.org>
> For additional commands, e-mail: axis-user-help@ws.apache.org
> <ma...@ws.apache.org>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: Reading Axis SOAP messages
Posted by Demetris G <de...@ece.neu.edu>.
Hey Todd,
there is nothing much in the code - I open a server socket and I am
simply read everything
coming in using readLine() ... such as:
while ( (line = in.readLine() ) != null) {
System.out.println("["+this+"]"+"Received
from Axis=["+ line+"]");
}
But I am realizing this is not as straight-forward. Are the raw SOAP
message encoded/serialized
in a way that simple text reads is a sophomoric way to read them?
Thanks
Toon Wouters wrote:
> Can you post the code that processes the incoming data and prints out
> those lines?
>
> Toon
>
> On 5/23/07, *Demetris G* < demetris@ece.neu.edu
> <ma...@ece.neu.edu>> wrote:
>
>
> To make this more specific, this is what I get coming into my server
> socket from
> the Axis client:
>
> Waiting for Axis outgoing SOAP message ...
> [Thread[Thread-1,5,main]]Received from Axis=[POST
> /axis/services/remoteFW HTTP/1.0]
> [Thread[Thread-1,5,main]]Received from Axis=[Content-Type: text/xml;
> charset=utf-8]
> [Thread[Thread-1,5,main]]Received from Axis=[Accept:
> application/soap+xml, application/dime, multipart/related, text/*]
> [Thread[Thread-1,5,main]]Received from Axis=[User-Agent: Axis/1.4]
> [Thread[Thread-1,5,main]]Received from Axis=[Host: 127.0.0.1:9090
> <http://127.0.0.1:9090>]
> [Thread[Thread-1,5,main]]Received from Axis=[Cache-Control: no-cache]
> [Thread[Thread-1,5,main]]Received from Axis=[Pragma: no-cache]
> [Thread[Thread-1,5,main]]Received from Axis=[SOAPAction: ""]
> [Thread[Thread-1,5,main]]Received from Axis=[Content-Length: 398]
> [Thread[Thread-1,5,main]]Received from Axis=[]
>
> But then it stalls here waiting for something more that never comes ..
> any ideas ?
>
> Thanks
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> <ma...@ws.apache.org>
> For additional commands, e-mail: axis-user-help@ws.apache.org
> <ma...@ws.apache.org>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: Reading Axis SOAP messages
Posted by Toon Wouters <wo...@gmail.com>.
Can you post the code that processes the incoming data and prints out those
lines?
Toon
On 5/23/07, Demetris G <de...@ece.neu.edu> wrote:
>
>
> To make this more specific, this is what I get coming into my server
> socket from
> the Axis client:
>
> Waiting for Axis outgoing SOAP message ...
> [Thread[Thread-1,5,main]]Received from Axis=[POST
> /axis/services/remoteFW HTTP/1.0]
> [Thread[Thread-1,5,main]]Received from Axis=[Content-Type: text/xml;
> charset=utf-8]
> [Thread[Thread-1,5,main]]Received from Axis=[Accept:
> application/soap+xml, application/dime, multipart/related, text/*]
> [Thread[Thread-1,5,main]]Received from Axis=[User-Agent: Axis/1.4]
> [Thread[Thread-1,5,main]]Received from Axis=[Host: 127.0.0.1:9090]
> [Thread[Thread-1,5,main]]Received from Axis=[Cache-Control: no-cache]
> [Thread[Thread-1,5,main]]Received from Axis=[Pragma: no-cache]
> [Thread[Thread-1,5,main]]Received from Axis=[SOAPAction: ""]
> [Thread[Thread-1,5,main]]Received from Axis=[Content-Length: 398]
> [Thread[Thread-1,5,main]]Received from Axis=[]
>
> But then it stalls here waiting for something more that never comes ..
> any ideas ?
>
> Thanks
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
Re: Reading Axis SOAP messages
Posted by Demetris G <de...@ece.neu.edu>.
To make this more specific, this is what I get coming into my server
socket from
the Axis client:
Waiting for Axis outgoing SOAP message ...
[Thread[Thread-1,5,main]]Received from Axis=[POST
/axis/services/remoteFW HTTP/1.0]
[Thread[Thread-1,5,main]]Received from Axis=[Content-Type: text/xml;
charset=utf-8]
[Thread[Thread-1,5,main]]Received from Axis=[Accept:
application/soap+xml, application/dime, multipart/related, text/*]
[Thread[Thread-1,5,main]]Received from Axis=[User-Agent: Axis/1.4]
[Thread[Thread-1,5,main]]Received from Axis=[Host: 127.0.0.1:9090]
[Thread[Thread-1,5,main]]Received from Axis=[Cache-Control: no-cache]
[Thread[Thread-1,5,main]]Received from Axis=[Pragma: no-cache]
[Thread[Thread-1,5,main]]Received from Axis=[SOAPAction: ""]
[Thread[Thread-1,5,main]]Received from Axis=[Content-Length: 398]
[Thread[Thread-1,5,main]]Received from Axis=[]
But then it stalls here waiting for something more that never comes ..
any ideas ?
Thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org