SSE4E

Home

GPError
GPSystem
ByteString
ByteBuffer
TLV
TLVList
Card
Atr
Key
Crypto
Application GPApplication GPSecDomain

ASN1
CardFile
IsoSecureChannel
ApplFactory
GPXML
JsScript
CardSim

X509
CRL
KeyStore
CMSSignedData
CMSGenerator
XMLSignature
OCSPQuery
LDAP
SOAP
URLConnection

PKCS11Provider
PKCS11Session
PKCS11Object

OutlineNode

OpenSCDP

SOAPConnection - Reference Documentation

Class implementing a SOAP Connection object used to call SOAP WebServices

Index of Methods

Constructor

Prototype

SOAPConnection()

Description

Create a SOAPConnection object.

Exceptions

NameValueDescription
GPErrorGPError.ARGUMENTS_MISSINGToo few arguments in call
GPErrorGPError.INVALID_ARGUMENTSToo many arguments in call
GPErrorGPError.INVALID_TYPEType of argument is invalid for call

Example


var soapConnection = new SOAPConnection();

call()

Prototype

XML call(String url, XML soapBodyElement)

Description

Create a SOAP message with the given element in the SOAP body.

Arguments

TypeNameDescription
StringurlThe URL of the service endpoint
XMLsoapMessageThe element in the SOAP body

Return

Exceptions

NameValueDescription
GPErrorGPError.ARGUMENTS_MISSINGToo few arguments in call
GPErrorGPError.INVALID_ARGUMENTSToo many arguments in call
GPErrorGPError.INVALID_TYPEType of argument is invalid for call

Example


// var url = "http://localhost:8088/mockSoap12";
// var url = "http://localhost:9999/se/soap";
var url = "http://localhost:8080/se/soap";

var typ = new Namespace("urn:test/types");

var request = 
			<typ:ConvertRequest xmlns:typ="urn:test/types">
				<id>12</id>
				<input>cid:440510063901</input>
			<!--You may enter ANY elements at this point-->
			</typ:ConvertRequest>

var response = soapConnection.call(url, request);

print(response);

print(response.output);

/*
var response = soapConnection.call(url, request);

print(response);

print(response.output);
*/

close()

Prototype

void close()

Description

Close SOAP connection and free used resources.

Return

Exceptions

NameValueDescription
GPErrorGPError.ARGUMENTS_MISSINGToo few arguments in call
GPErrorGPError.INVALID_ARGUMENTSToo many arguments in call
GPErrorGPError.INVALID_TYPEType of argument is invalid for call
GPErrorGPError.DEVICE_ERRORClosing the SOAP connection failed

Example


soapConnection.close();