org.apache.ws.util.soap
Class SoapClient
java.lang.Object
org.apache.ws.util.soap.SoapClient
- public class SoapClient
- extends java.lang.Object
LOG-DONE
Based on SOAPClient4XG by Bob DuCharme
(http://www-106.ibm.com/developerworks/xml/library/x-soapcl/listing1.html). Read the SOAP envelope file passed as the
second parameter, pass it to the SOAP endpoint passed as the first parameter, and print out the SOAP envelope passed
as a response.
Requires JDK 1.4.
- Author:
- Bob DuCharme (IBM), Michael Brennan (IBM), Ian P. Springer (HP)
Field Summary |
static org.apache.ws.util.i18n.Messages |
MSG
DOCUMENT_ME |
Method Summary |
static void |
main(java.lang.String[] args)
|
static java.lang.String |
sendRequest(java.net.URL serviceURL,
java.io.File soapMessageFile,
java.net.URI soapAction)
|
static java.lang.String |
sendRequest(java.net.URL serviceURL,
java.io.InputStream soapMessage,
java.net.URI soapAction)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MSG
public static final org.apache.ws.util.i18n.Messages MSG
- DOCUMENT_ME
SoapClient
public SoapClient()
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Parameters:
args
- takes three args, the third being optional: - serviceURL - HTTP SOAP endpoint URL to send request to
- xmlFileToSend - a file with an XML document of the request
- soapAction - the value for the
SOAPAction HTTP header
- Throws:
java.lang.Exception
sendRequest
public static java.lang.String sendRequest(java.net.URL serviceURL,
java.io.File soapMessageFile,
java.net.URI soapAction)
throws java.io.IOException
- Parameters:
serviceURL
- soapMessageFile
- soapAction
-
- Returns:
-
- Throws:
java.io.IOException
sendRequest
public static java.lang.String sendRequest(java.net.URL serviceURL,
java.io.InputStream soapMessage,
java.net.URI soapAction)
throws java.io.IOException
- Parameters:
serviceURL
- soapMessage
- soapAction
-
- Returns:
-
- Throws:
java.io.IOException
Copyright © 2004-2005 Apache Software Foundation. All Rights Reserved.