org.ksoap2.transport
Class ServiceConnectionMidp

java.lang.Object
  extended by org.ksoap2.transport.ServiceConnectionMidp
All Implemented Interfaces:
ServiceConnection

public class ServiceConnectionMidp
extends java.lang.Object
implements ServiceConnection


Constructor Summary
ServiceConnectionMidp(java.lang.String url)
           
 
Method Summary
 void connect()
          Make an outgoing connection.
 void disconnect()
          Disconnect from the outgoing connection
 java.io.InputStream getErrorStream()
           
 java.io.InputStream openInputStream()
          Opens and returns the inputstream from which to parse the result of the soap call.
 java.io.OutputStream openOutputStream()
          Open and return the outputStream to the endpoint.
 void setRequestMethod(java.lang.String post)
          Sets how to make the requests.
 void setRequestProperty(java.lang.String string, java.lang.String soapAction)
          Set properties on the outgoing connection.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceConnectionMidp

public ServiceConnectionMidp(java.lang.String url)
                      throws java.io.IOException
Throws:
java.io.IOException
Method Detail

disconnect

public void disconnect()
                throws java.io.IOException
Description copied from interface: ServiceConnection
Disconnect from the outgoing connection

Specified by:
disconnect in interface ServiceConnection
Throws:
java.io.IOException

setRequestProperty

public void setRequestProperty(java.lang.String string,
                               java.lang.String soapAction)
                        throws java.io.IOException
Description copied from interface: ServiceConnection
Set properties on the outgoing connection.

Specified by:
setRequestProperty in interface ServiceConnection
Parameters:
string - the name of the property to set. For HTTP connections these are the request properties in the HTTP Header.
soapAction - the string to set the property header to.
Throws:
java.io.IOException

setRequestMethod

public void setRequestMethod(java.lang.String post)
                      throws java.io.IOException
Description copied from interface: ServiceConnection
Sets how to make the requests. For HTTP this is typically POST or GET.

Specified by:
setRequestMethod in interface ServiceConnection
Parameters:
post - the type of request method to make the soap call with.
Throws:
java.io.IOException

openOutputStream

public java.io.OutputStream openOutputStream()
                                      throws java.io.IOException
Description copied from interface: ServiceConnection
Open and return the outputStream to the endpoint.

Specified by:
openOutputStream in interface ServiceConnection
Returns:
the output stream to write the soap message to.
Throws:
java.io.IOException

openInputStream

public java.io.InputStream openInputStream()
                                    throws java.io.IOException
Description copied from interface: ServiceConnection
Opens and returns the inputstream from which to parse the result of the soap call.

Specified by:
openInputStream in interface ServiceConnection
Returns:
the inputstream containing the xml to parse the result from the call from.
Throws:
java.io.IOException

connect

public void connect()
             throws java.io.IOException
Description copied from interface: ServiceConnection
Make an outgoing connection.

Specified by:
connect in interface ServiceConnection
Throws:
java.io.IOException

getErrorStream

public java.io.InputStream getErrorStream()
Specified by:
getErrorStream in interface ServiceConnection
Returns:
the error stream for the call.