org.codehaus.xfire.client.http
Class SoapHttpClient
java.lang.Object
org.codehaus.xfire.client.http.AbstractHttpClient
org.codehaus.xfire.client.http.SoapHttpClient
public class SoapHttpClient
- extends AbstractHttpClient
A SOAP client for the HTTP transport.
- Since:
- Oct 26, 2004
- Author:
- Dan Diephouse
Methods inherited from class org.codehaus.xfire.client.http.AbstractHttpClient |
getEncoding, getPassword, getUrl, getUsername, invoke, readResponse, setEncoding, setPassword, setUrl, setUsername, writeRequest |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SoapHttpClient
public SoapHttpClient(ClientHandler bodyHandler,
java.lang.String url)
- Create the SoapHttpClient. It will default to generating a
SOAP 1.1 Envelope.
- Parameters:
bodyHandler
- A handler which will generate and process
the SOAP Body.url
- The URL to invoke.
SoapHttpClient
public SoapHttpClient(ClientHandler bodyHandler,
ClientHandler headerHandler,
java.lang.String url)
- Create the SoapHttpClient. It will default to generating a
SOAP 1.1 Envelope.
- Parameters:
bodyHandler
- A handler which will generate and process
the SOAP Body.headerHandler
- A handler which will generate and process
the SOAP Header.url
- The URL to invoke.
SoapHttpClient
public SoapHttpClient(ClientHandler bodyHandler,
ClientHandler headerHandler,
java.lang.String url,
java.lang.String soapVersion)
- Create the SoapHttpClient.
- Parameters:
bodyHandler
- A handler which will generate and process
the SOAP Body.headerHandler
- A handler which will generate and process
the SOAP Header.url
- The URL to invoke.soapVersion
- The soap version. See SOAPConstants.
writeRequest
protected void writeRequest(javax.xml.stream.XMLStreamWriter writer)
throws javax.xml.stream.XMLStreamException
- Specified by:
writeRequest
in class AbstractHttpClient
- Throws:
javax.xml.stream.XMLStreamException
readResponse
protected void readResponse(javax.xml.stream.XMLStreamReader reader)
throws javax.xml.stream.XMLStreamException
- Specified by:
readResponse
in class AbstractHttpClient
- Throws:
javax.xml.stream.XMLStreamException
writeHeaders
protected void writeHeaders(java.net.URLConnection urlConn)
- Overrides:
writeHeaders
in class AbstractHttpClient
getBodyHandler
public ClientHandler getBodyHandler()
- Returns:
- Returns the bodyHandler.
getHeaderHandler
public ClientHandler getHeaderHandler()
- Returns:
- Returns the headerHandler.
getSoapVersion
public java.lang.String getSoapVersion()
- Returns:
- Returns the soapVersion.
setSoapVersion
public void setSoapVersion(java.lang.String soapVersion)
- Parameters:
soapVersion
- The soapVersion to set.
setAction
public void setAction(java.lang.String action)
- Parameters:
action
- The action to set.
getAction
public java.lang.String getAction()
Copyright © 2004 Codehaus. All Rights Reserved.