Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: WSDL File processing - GET_WORS_ORDERS_LIST - Northgate


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 0
Philip Jackson

Posts: 18
Registered: 6/14/01
WSDL File processing - GET_WORS_ORDERS_LIST - Northgate  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 1, 2015 1:18 AM
Hi

I have a number of WSDL read writes to perform on a remote database and I am struggling to make anything work.

I have imported a WSDL file which is intended to get me a list of Works Orders and then I need to individually download and process each in turn. Afterwards, send a response back when the job has been completed.

The code I have written to simply get the WorksOrderList is as below.

The issue I am having here is with the value for 'wo' which should be a 'WorksOrdersListRequest' and how should it be structured??

The WSDL file can be downloaded from [http://www.pcdata.co.uk/download/wo_wsdl.zip] and is part of the Northgate suit.

Any clues that you can give to help me find the structure of this would be gratefully received.

Regards

Philip L Jackson

procedure TfrmNorthgateMain.btnAPI1_WorksOrderListClick(Sender: TObject);
var cred : TSOAPCredentials;
WorksOrderList: GET_WORKS_ORDERS_LIST;
wo :WorksOrdersListRequest;
begin
try
Cred := TSOAPCredentials.Create;
cred.userName := 'xxxx';
cred.userPassword := 'xxxxx';
cred.Requestor := 'xxxxx';

HTTPRIO_API1.SOAPHeaders.Send(cred);

wo := WorksOrdersListRequest.Create;

//see line 318 in get_works_orders_list_net //what values should be a WorksOrdersListRequest(wo)????????????
worksOrderList := (HTTPRIO_API1 as GetWorksOrdersListPort).GetWorksOrdersList(wo) ;

if worksOrderList.ToString <> '' then
EditTarget.Text := worksOrderList.ToString;
finally
cred.Free;
wo.Free;
end;

end;

Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02