org.ksoap2.transport
Class Transport

java.lang.Object
  extended by org.ksoap2.transport.Transport
Direct Known Subclasses:
AuthTransport, HttpTransport

public abstract class Transport
extends java.lang.Object

Abstract class which holds common methods and members that are used by the transport layers. This class encapsulates the serialization and deserialization of the soap messages, leaving the basic communication routines to the subclasses.


Field Summary
 boolean debug
          Set to true if debugging
 java.lang.String requestDump
          String dump of request for debugging.
 java.lang.String responseDump
          String dump of response for debugging
protected  java.lang.String url
           
private  java.lang.String xmlVersionTag
           
 
Constructor Summary
Transport()
           
Transport(java.lang.String url)
           
 
Method Summary
protected  byte[] createRequestData(SoapEnvelope envelope)
          Serializes the request.
protected  void parseResponse(SoapEnvelope envelope, java.io.InputStream is)
          Sets up the parsing to hand over to the envelope to deserialize.
 void setUrl(java.lang.String url)
          Set the target url.
 void setXmlVersionTag(java.lang.String tag)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

url

protected java.lang.String url

debug

public boolean debug
Set to true if debugging


requestDump

public java.lang.String requestDump
String dump of request for debugging.


responseDump

public java.lang.String responseDump
String dump of response for debugging


xmlVersionTag

private java.lang.String xmlVersionTag
Constructor Detail

Transport

public Transport()

Transport

public Transport(java.lang.String url)
Method Detail

parseResponse

protected void parseResponse(SoapEnvelope envelope,
                             java.io.InputStream is)
                      throws XmlPullParserException,
                             java.io.IOException
Sets up the parsing to hand over to the envelope to deserialize.

Throws:
XmlPullParserException
java.io.IOException

createRequestData

protected byte[] createRequestData(SoapEnvelope envelope)
                            throws java.io.IOException
Serializes the request.

Throws:
java.io.IOException

setUrl

public void setUrl(java.lang.String url)
Set the target url.

Parameters:
url - the target url.

setXmlVersionTag

public void setXmlVersionTag(java.lang.String tag)