-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Hi, I'm testing the Calculator sample from XRoadLib project with my own C# project.
I would like to know if it is mandatory send the xroad configuration when the Calculate operation is called:
I call the Calculate operation in this way:
string id = "44310B5F";
string issue = "";
string protocolVersion = "4.0";
string userId = "";
ServiceReference2.XRoadClientIdentifierType XRoadClientIdentifierType = new
ServiceReference2.XRoadClientIdentifierType();
XRoadClientIdentifierType.xRoadInstance = "EVA";
XRoadClientIdentifierType.memberClass = "BIS";
XRoadClientIdentifierType.memberCode = "4444";
XRoadClientIdentifierType.objectType = ServiceReference2.XRoadObjectType.SUBSYSTEM;
XRoadClientIdentifierType.subsystemCode = "DIVISION";
ServiceReference2.XRoadServiceIdentifierType XRoadServiceIdentifierType = new
ServiceReference2.XRoadServiceIdentifierType();
XRoadServiceIdentifierType.xRoadInstance = "EVA";
XRoadServiceIdentifierType.objectType = ServiceReference2.XRoadObjectType.SERVICE;
XRoadServiceIdentifierType.memberClass = "BIS";
XRoadServiceIdentifierType.memberCode = "4444";
XRoadServiceIdentifierType.subsystemCode = "DIVISION";
XRoadServiceIdentifierType.serviceCode = "Calculate";
ServiceReference2.Calculate Calculate = new ServiceReference2.Calculate();
Calculate.request = new ServiceReference2.CalculationRequest();
Calculate.request.X = 1;
Calculate.request.Y = 2;
Calculate.request.Operation = ServiceReference2.Operation.Add;
ServiceReference2.PortTypeNameClient PortTypeNameClient = new ServiceReference2.PortTypeNameClient();
PortTypeNameClient.Endpoint.Address = new EndpointAddress("http://localhost:62975/");
PortTypeNameClient.Open();
ServiceReference2.CalculateResponse CalculateResponse = PortTypeNameClient.Calculate(ref
XRoadClientIdentifierType, ref id, ref issue, ref protocolVersion, ref XRoadServiceIdentifierType, ref userId, Calculate);
PortTypeNameClient.Close();
Is there a possibility to send only the input variable Calculate and configure the all XRoad information in the PortTypeNameClient service?
An other doubt that I have, is it possible changel the PortType Name in the CalculatorServiceManager when it is created?
Regards,
Eva
Metadata
Metadata
Assignees
Labels
No labels