Welcome Guest [Log In] [Register]
Bookmark and Share
Welcome to LawsonTalk. We hope you enjoy your visit.


You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. After registration, please check your e-mail within 24 hours for an message from us, read it, and reply to it.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
How to set request context from a console application
Topic Started: Oct 19 2016, 04:25 AM (335 Views)
fonua
Newbie
[ * ]
I need to write a console app and need to set the context on my request. What I'm wondering is what goes in the serviceURI, see below? I put our server URL in here, which looks something like https://fosopd.OurAddress.com:21111 but I don't think that is sufficient. I set the user and password too but what else needs to be appended to our servel URL to find the PDS010MI/Select API below?

var record = new MIRecord();
record["FFAC"] = "XXX";
record["TFAC"] = "XXX";
record["PLTP"] = "1";
record["CONO"] = _company;

var request = new MIRequest
{
Context = new MIAccessContext { ServiceUri = "What Goes in here?", }
Program = "PDS010MI",
Transaction = "Select",
Record = record
};

MIWorker.Run(request, OnWorkCentersResponse);
Offline Profile Quote Post Goto Top
 
« Previous Topic · Coding, Program Errors and Bugs · Next Topic »
Add Reply

Sponsored by Nogalis, Inc.