You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by ra...@apache.org on 2005/05/05 11:29:45 UTC
cvs commit: ws-axis/c/tests/utils/simple-server-client attachment_binary_cli_message.txt attachment_base64_cli_message.txt allattachments_binary_cli_message.txt allattachments_base64_cli_message.txt readme
rangika 2005/05/05 02:29:45
Modified: c/tests/utils/simple-server-client readme
Added: c/tests/utils/simple-server-client
attachment_binary_cli_message.txt
attachment_base64_cli_message.txt
allattachments_binary_cli_message.txt
allattachments_base64_cli_message.txt
Log:
Added socket clients to send requests to server to process attachments.
Revision Changes Path
1.2 +18 -7 ws-axis/c/tests/utils/simple-server-client/readme
Index: readme
===================================================================
RCS file: /home/cvs/ws-axis/c/tests/utils/simple-server-client/readme,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- readme 31 Dec 2004 11:30:48 -0000 1.1
+++ readme 5 May 2005 09:29:45 -0000 1.2
@@ -1,13 +1,13 @@
We have a test server and client here
The purpose of the test server is to provide a testing environment
-for a soap client engine. It just accept whatever the request
-sent to it, dicard it and then send back a hard coded soap message
+for a soap client engine. It just accepts whatever the request
+sent to it, dicards it and then sends back a hard coded soap message
read from a file. This is very useful to test a client engine with
different soap messages.
The purpose of the test client is to provide a testing environment
-for a soap server engine. Client can send arbirtray messages read from
-a file and send it to a server. It then read the response sent from the
+for a soap server engine. Client will send arbitarary read messages from
+a file and sends it to a server. It then reads the response sent from the
server
to build the test server
@@ -17,8 +17,8 @@
./serv
Then this will listen to client request
-Once a request comes it just receive it and discard it.
-It read from the serv_message.txt file and
+Once a request comes it just receives it and discards it.
+It reads from the serv_message.txt file and
this is what it returns as the response.
So you need to paste properly formatted soap message that you
@@ -26,7 +26,7 @@
Before you build the client just change the host
and port against which you need to test it with.
-Also paste your message to test into cli_message.txt file.
+Also paste your message to test into the relevant client file.
to build the client
sh build_client.sh
@@ -34,4 +34,15 @@
to run the client
./cli
+Base64 encoded attachments
+=======================
+
+* To send all attachments & receive all at once pls use allattachments_base64_cli_message.txt client.
+*To receive attachments 1 by 1 use attachment_base64_cli_message.txt client.
+
+Binary encoded attachments
+======================
+* To send all attachments & receive all at once pls use allattachments_binary_cli_message.txt client.
+*To receive attachments 1 by 1 use attachment_binary_cli_message.txt client.
+
1.1 ws-axis/c/tests/utils/simple-server-client/attachment_binary_cli_message.txt
Index: attachment_binary_cli_message.txt
===================================================================
POST /axis/servlet/AxisServlet HTTP/1.0
Content-Type: multipart/related; type="text/xml"; start="<1505912FEDEB53D396BC22103DA3A51A>"; boundary="----=_Part_0_6349096.1105418692309"
Accept: application/soap+xml, application/dime, multipart/related, text/*
User-Agent: Axis/1.2beta
Host: 127.0.0.1:5555
Cache-Control: no-cache
Pragma: no-cache
SOAPAction: ""
Content-Length:992
SOAPAction: "AttService#EchoAttachment"
------=_Part_0_6349096.1105418692309
Content-Type: text/xml; charset=UTF-8
Content-Transfer-Encoding:8-bit
Content-Id: <1505912FEDEB53D396BC22103DA3A51A>
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<ns1:EchoAttachment soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="urn:EchoAttachmentsService">
<id1 xsi:type="xsd:string">000001233</id1>
<id2 xsi:type="xsd:string">000001234</id2>
</ns1:EchoAttachment>
</soapenv:Body>
</soapenv:Envelope>
------=_Part_0_6349096.1105418692309
Content-Type: text/xml
Content-Transfer-Encoding: binary
Content-Id: <000001233>
Hello
------=_Part_0_6349096.1105418692309
Content-Type: text/xml
Content-Transfer-Encoding: binary
Content-Id: <000001234>
Congrats
------=_Part_0_6349096.1105418692309
1.1 ws-axis/c/tests/utils/simple-server-client/attachment_base64_cli_message.txt
Index: attachment_base64_cli_message.txt
===================================================================
POST /axis/servlet/AxisServlet HTTP/1.0
Content-Type: multipart/related; type="text/xml"; start="<1505912FEDEB53D396BC22103DA3A51A>"; boundary="----=_Part_0_6349096.1105418692309"
Accept: application/soap+xml, application/dime, multipart/related, text/*
User-Agent: Axis/1.2beta
Host: 127.0.0.1:5555
Cache-Control: no-cache
Pragma: no-cache
SOAPAction: ""
Content-Length:995
SOAPAction: "AttService#EchoAttachment"
------=_Part_0_6349096.1105418692309
Content-Type: text/xml; charset=UTF-8
Content-Transfer-Encoding:8-bit
Content-Id: <1505912FEDEB53D396BC22103DA3A51A>
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<ns1:EchoAttachment soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="urn:EchoAttachmentsService">
<id1 xsi:type="xsd:string">000001233</id1>
<id2 xsi:type="xsd:string">000001234</id2>
</ns1:EchoAttachment>
</soapenv:Body>
</soapenv:Envelope>
------=_Part_0_6349096.1105418692309
Content-Type: text/xml
Content-Transfer-Encoding: base64
Content-Id: <000001233>
SGVsbG8=
------=_Part_0_6349096.1105418692309
Content-Type: text/xml
Content-Transfer-Encoding: base64
Content-Id: <000001234>
R29vZA==
------=_Part_0_6349096.1105418692309
1.1 ws-axis/c/tests/utils/simple-server-client/allattachments_binary_cli_message.txt
Index: allattachments_binary_cli_message.txt
===================================================================
POST /axis/servlet/AxisServlet HTTP/1.0
Content-Type: multipart/related; type="text/xml"; start="<1505912FEDEB53D396BC22103DA3A51A>"; boundary="----=_Part_0_6349096.1105418692309"
Accept: application/soap+xml, application/dime, multipart/related, text/*
User-Agent: Axis/1.2beta
Host: 127.0.0.1:5555
Cache-Control: no-cache
Pragma: no-cache
SOAPAction: ""
Content-Length:992
SOAPAction: "AttService#EchoAttachments"
------=_Part_0_6349096.1105418692309
Content-Type: text/xml; charset=UTF-8
Content-Transfer-Encoding:8-bit
Content-Id: <1505912FEDEB53D396BC22103DA3A51A>
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<ns1:EchoAttachments soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="urn:EchoAttachmentsService">
<id1 xsi:type="xsd:string">000001233</id1>
<id2 xsi:type="xsd:string">000001234</id2>
</ns1:EchoAttachments>
</soapenv:Body>
</soapenv:Envelope>
------=_Part_0_6349096.1105418692309
Content-Type: text/xml
Content-Transfer-Encoding: binary
Content-Id: <000001233>
Hello
------=_Part_0_6349096.1105418692309
Content-Type: text/xml
Content-Transfer-Encoding: binary
Content-Id: <000001234>
Congrats
------=_Part_0_6349096.1105418692309
1.1 ws-axis/c/tests/utils/simple-server-client/allattachments_base64_cli_message.txt
Index: allattachments_base64_cli_message.txt
===================================================================
POST /axis/servlet/AxisServlet HTTP/1.0
Content-Type: multipart/related; type="text/xml"; start="<1505912FEDEB53D396BC22103DA3A51A>"; boundary="----=_Part_0_6349096.1105418692309"
Accept: application/soap+xml, application/dime, multipart/related, text/*
User-Agent: Axis/1.2beta
Host: 127.0.0.1:5555
Cache-Control: no-cache
Pragma: no-cache
SOAPAction: ""
Content-Length:995
SOAPAction: "AttService#EchoAttachments"
------=_Part_0_6349096.1105418692309
Content-Type: text/xml; charset=UTF-8
Content-Transfer-Encoding:8-bit
Content-Id: <1505912FEDEB53D396BC22103DA3A51A>
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<ns1:EchoAttachments soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="urn:EchoAttachmentsService">
<id1 xsi:type="xsd:string">000001233</id1>
<id2 xsi:type="xsd:string">000001234</id2>
</ns1:EchoAttachments>
</soapenv:Body>
</soapenv:Envelope>
------=_Part_0_6349096.1105418692309
Content-Type: text/xml
Content-Transfer-Encoding: base64
Content-Id: <000001233>
SGVsbG8=
------=_Part_0_6349096.1105418692309
Content-Type: text/xml
Content-Transfer-Encoding: base64
Content-Id: <000001234>
R29vZA==
------=_Part_0_6349096.1105418692309