Changes for page Web Services-Testing Services with Terminal
Last modified by Pascal Robert on 2007/09/03 19:37
From version 2.1
edited by smmccraw
on 2007/07/08 10:35
on 2007/07/08 10:35
Change comment:
There is no comment for this version
To version 3.1
edited by Pascal Robert
on 2007/09/03 19:37
on 2007/09/03 19:37
Change comment:
There is no comment for this version
Summary
-
Page properties (3 modified, 0 added, 0 removed)
Details
- Page properties
-
- Title
-
... ... @@ -1,1 +1,1 @@ 1 - Programming__WebObjects-WebServices-Testing Services with Terminal1 +Web Services-Testing Services with Terminal - Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. smmccraw1 +XWiki.probert - 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 -{{ panel}}9 +{{code}} 10 10 11 - 12 - 13 - 14 - 15 - 16 - 17 - 18 - 19 - 20 - 21 - 22 - 23 - 24 - 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 -{{/ panel}}26 +{{/code}} 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. 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).