Service | Data types | Operation index

Port type (persistent procedure)

getCustOrdersObj

No documentation found in WSDL.

Summary

Connection information

The following connection parameters must be specified to use the operations described below. See the Connection Details topic below.

-WSDL 'http://localhost:8080/wsa/wsa1/wsdl?targetURI=urn:getCustOrders'

Operations (internal procedures)

NOTE: Some of the procedures documented below were documented differently in the 10.0 releases of OpenEdge. If you are maintaining web service clients written for release 10.0, or are deploying web service clients in a mixed 10.0/post-10.0 installation, re-execute this utility with the -show100style option.

PROCEDURE getCustOrders:
  DEFINE INPUT PARAMETER iCustNum AS INTEGER EXTENT 2 NO-UNDO.
  DEFINE OUTPUT PARAMETER result AS CHARACTER NO-UNDO.
  DEFINE OUTPUT PARAMETER DATASET FOR dsCustOrd.
END PROCEDURE.

Note: this operation may also be called as a FUNCTION. See the operation detail for the function signature.

No documentation found in WSDL.

Connection details

Connection parameters

-WSDL 'http://localhost:8080/wsa/wsa1/wsdl?targetURI=urn:getCustOrders'
[ -WSDLUserId user-id ]
[ -WSDLPassword password ]
[
  -Service getCustOrdersService
  [ -ServiceNamespace urn:getCustOrders ]
]
[ -Port getCustOrdersObj ]
[ -SOAPEndpointUserId user-id ]
[ -SOAPEndpointPassword password ]
[ -TargetNamespace urn:getCustOrders ]
[ -MaxConnections max-connections ]
[ -pf filename ]
[ -nohostverify ]
[ -nosessionreuse ]

-Service and -Port descriptions

The following service name may be used for the -Service connection parameter.

ServiceDescription
getCustOrdersService

No documentation found in WSDL.

The following port name may be used for the -Port connection parameter, when using the getCustOrdersService service.

PortDescription
getCustOrdersObj No documentation found in WSDL.

Example

This example shows the steps needed to prepare for calling one of the operations described below.

DEFINE VARIABLE hWebService AS HANDLE NO-UNDO.
DEFINE VARIABLE hgetCustOrdersObj AS HANDLE NO-UNDO.


CREATE SERVER hWebService.


hWebService:CONNECT("-WSDL 'http://localhost:8080/wsa/wsa1/wsdl?targetURI=urn:getCustOrders'").

RUN getCustOrdersObj SET hgetCustOrdersObj ON hWebService.

Operation (internal procedure) detail

Top | Service | Data types | Operation index

getCustOrders

No documentation found in WSDL.

Procedure prototype

PROCEDURE getCustOrders:
  DEFINE INPUT PARAMETER iCustNum AS INTEGER EXTENT 2 NO-UNDO.
  DEFINE OUTPUT PARAMETER result AS CHARACTER NO-UNDO.
  DEFINE OUTPUT PARAMETER DATASET FOR dsCustOrd.
END PROCEDURE.

Function prototype

FUNCTION getCustOrders RETURNS CHARACTER
  (INPUT iCustNum AS INTEGER EXTENT 2,
   OUTPUT DATASET dsCustOrd).
END FUNCTION.

Example

DEFINE VARIABLE iCustNum AS INTEGER EXTENT 2 NO-UNDO.
DEFINE VARIABLE result AS CHARACTER NO-UNDO.

DEFINE TEMP-TABLE ttCust NO-UNDO
	NAMESPACE-URI "urn:getCustOrders:getCustOrders" 
	FIELD CustNum AS INTEGER 
	FIELD Name AS CHARACTER 
	FIELD Balance AS DECIMAL 
	INDEX CustNumIdx IS UNIQUE PRIMARY 
		CustNum.

DEFINE TEMP-TABLE ttOrder NO-UNDO
	NAMESPACE-URI "urn:getCustOrders:getCustOrders" 
	FIELD OrderNum AS INTEGER 
	FIELD CustNum AS INTEGER 
	FIELD OrderDate AS DATE 
	INDEX OrderNumIdx IS UNIQUE PRIMARY 
		OrderNum 
	INDEX CustOrdIdx IS UNIQUE 
		CustNum OrderNum.

DEFINE DATASET dsCustOrd NAMESPACE-URI "urn:getCustOrders:getCustOrders" 
	FOR ttCust, ttOrder
	DATA-RELATION CustOrdRel FOR ttCust, ttOrder
		RELATION-FIELDS (CustNum, CustNum).


FUNCTION getCustOrders RETURNS CHARACTER
  (INPUT iCustNum AS INTEGER EXTENT 2,
   OUTPUT DATASET dsCustOrd)
  IN hgetCustOrdersObj.


/* Function invocation of getCustOrders operation. */
result = getCustOrders(iCustNum, DATASET dsCustOrd).


/* Procedure invocation of getCustOrders operation. */
RUN getCustOrders IN hgetCustOrdersObj(INPUT iCustNum, OUTPUT result, OUTPUT DATASET dsCustOrd).

Parameters

iCustNum

This input parameter is defined as an array of 2

The parameter can be the unknown value (?).

Each value is defined as an XML Schema int value.

result

The parameter can be the unknown value (?).

This value is defined as an XML Schema string value.

dsCustOrd

This value is defined as a DATASET.

This value can also be expressed as a dsCustOrd element in the urn:getCustOrders:getCustOrders namespace. View example.

Returns

See description of the result parameter.

Fault details

The following XML fragments may be sent or received in the SOAP fault detail element. These fragments are accessible through the SOAP Fault handle.

  • A fault defined as an FaultDetail element in the urn:soap-fault:details namespace.

    Example

    Construct the value as shown in the following example.


    <soap:detail xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'>
      <ns0:FaultDetail xmlns:ns0="urn:soap-fault:details">
        <errorMessage>string-value</errorMessage>
        <requestID>string-value</requestID>
      </ns0:FaultDetail>
    </soap:detail>