Last modified by Pascal Robert on 2007/09/03 19:37

From version 3.1
edited by Pascal Robert
on 2007/09/03 19:37
Change comment: There is no comment for this version
To version 2.1
edited by smmccraw
on 2007/07/08 10:35
Change comment: There is no comment for this version

Summary

Details

Page properties
Title
... ... @@ -1,1 +1,1 @@
1 -Web Services-Testing Services with Terminal
1 +Programming__WebObjects-Web Services-Testing Services with Terminal
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.probert
1 +XWiki.smmccraw
Content
... ... @@ -2,27 +2,27 @@
2 2  
3 3  Open Terminal and type telnet and your server address and port:
4 4  
5 -##telnet 216.139.xxx.xxx 80##
5 +telnet 216.139.xxx.xxx 80
6 6  
7 7  Then quickly paste the following text with your service specifics in place of these generic names:
8 8  
9 -{{code}}
9 +{{panel}}
10 10  
11 - POST /Apps/WebObjects/appName.woa/ws/ServiceName HTTP/1.0
12 - Host: 216.139.xxx.xxx
13 - Content-Type: text/html; charset=utf-8
14 - Content-Length: 547
15 - SOAPAction: "OperationName"
16 - <?xml version="1.0" encoding="UTF-8" ?>
17 - <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
18 - <SOAP-ENV:Body>
19 - <ns0:OperationName xmlns:ns0="http://DefaultNamespace" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
20 - <inParameter1 xsi:type="xsd:string">49464</inParameter1>
21 - <inParameter2 xsi:type="xsd:int">10</inParameter2>
22 - </ns0:OperationName>
23 - </SOAP-ENV:Body>
24 - </SOAP-ENV:Envelope>
11 + POST /Apps/WebObjects/appName.woa/ws/ServiceName HTTP/1.0
12 + Host: 216.139.xxx.xxx
13 + Content-Type: text/html; charset=utf-8
14 + Content-Length: 547
15 + SOAPAction: "OperationName"
16 + <?xml version="1.0" encoding="UTF-8" ?>
17 + <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
18 + <SOAP-ENV:Body>
19 + <ns0:OperationName xmlns:ns0="http://DefaultNamespace" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
20 + <inParameter1 xsi:type="xsd:string">49464</inParameter1>
21 + <inParameter2 xsi:type="xsd:int">10</inParameter2>
22 + </ns0:OperationName>
23 + </SOAP-ENV:Body>
24 + </SOAP-ENV:Envelope>
25 25  
26 -{{/code}}
26 +{{/panel}}
27 27  
28 -Of course this is just an example but you can get the idea that with the soap wrapper and proper naming you can user terminal for a soap request. The result will appear in the terminal window as well (showing you if your service works and what it returns).
28 +Of course this is just an example but you can get the idea that with the soap wrapper and proper naming you can user terminal for a soap request. The result will appear in the terminal window as well (showing you if your service works and what it returns).