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

Show last authors
1 You can test your services using the telnet feature in Terminal. You'll need to know your service address and basic calls.
2
3 Open Terminal and type telnet and your server address and port:
4
5 {{code language="none"}}telnet 216.139.xxx.xxx 80{{/code}}
6
7 Then quickly paste the following text with your service specifics in place of these generic names:
8
9 {{code}}
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>
25
26 {{/code}}
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).