12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- function C_mdsrvPingRequest( v_oListener )
- {
- var pingRequest =
- '<asyncRequest>' +
- '</asyncRequest>';
-
- var v_sBusRequest = '<md1:runSpecification>' +
- '<bus:specification xsi:type="bus:metadataServiceSpecification">' +
- '<bus:value xsi:type="bus:specification">' +
- String(pingRequest).F_XMLEncode() +
- '</bus:value>' +
- '</bus:specification>' +
- G_BusServer.F_GetParameterValues() +
- '<bus:options SOAP-ENC:arrayType="bus:option[]" xsi:type="SOAP-ENC:Array">' +
- '<item xsi:type="bus:asynchOptionInt">' +
- '<bus:name xsi:type="bus:asynchOptionEnum">primaryWaitThreshold</bus:name>' +
- '<bus:value xsi:type="xsd:int">' + C_mdsrvBusRequest.K_sPrimaryWaitThreshold + '</bus:value>' +
- '</item>' +
- '<item xsi:type="bus:asynchOptionInt">' +
- '<bus:name xsi:type="bus:asynchOptionEnum">secondaryWaitThreshold</bus:name>' +
- '<bus:value xsi:type="xsd:int">' + C_mdsrvBusRequest.K_sSecondaryWaitThreshold + '</bus:value>' +
- '</item>' +
- '<item xsi:type="bus:runOptionBoolean">' +
- '<bus:name xsi:type="bus:runOptionEnum">prompt</bus:name>' +
- '<bus:value xsi:type="xsd:boolean">false</bus:value>' +
- '</item>' +
- '</bus:options>' +
- '</md1:runSpecification>';
-
- this.F_ConstructBaseClass( v_oListener, C_mdsrvBusRequest.K_sSOAPAction_metadataService, v_sBusRequest );
- this.F_SetAsyncBusRequest("md1:wait", "md1:cancel", "md1:getOutput");
- };
- C_mdsrvPingRequest.F_Extends( C_mdsrvBusRequest );
- C_mdsrvPingRequest.prototype.F_ProcessResponse = function()
- {
- C_mdsrvPingRequest.superClass.F_ProcessResponse.call( this );
- var v_docSoapResponse = this.F_GetResponse();
- if ( !v_docSoapResponse )
- {
- var err = this.F_GetError();
- alert( err.F_GetErrorSummary() + err.F_GetErrorDetails() );
- return;
- }
-
- var data = v_docSoapResponse.selectNodes( "/SOAP-ENV:Envelope/SOAP-ENV:Body/*/result/details/item/data" );
-
- if( data.length > 0 )
- {
- var encoded = new Base64();
- alert( encoded.decode64( data.item( 0 ).text ) );
- }
-
- };
|