I'm sorry for posting this here-
I have to integrate an parcel tracking with Canada Post into one of my
applications. The web service they use is made with SAP and is not
the usual WSDL type of service I am used to. I cannot just add a web
reference to my project and get going.
Canada Post provides a sample in Java and C# - and I do not know
either.
If it's not too hard, is anyone able to translate this into VB.net?
static void Main(string[] args)
{
try
{
WebReference.ZWBRAND_REQUESTEDPINS_LN[] requestPins = new
WebReference.ZWBRAND_REQUESTEDPINS_LN[1];
requestPins[0]= new WebReference.ZWBRAND_REQUESTEDPINS_LN();
WebReference.ZDC_GET_HISTORYService tandtService = new
WebReference.ZDC_GET_HISTORYService();
NetworkCredential UserInfo= new NetworkCredential("MY USER ID", "MY
PASSWORD");
tandtService.Credentials=UserInfo;
//Populate Pin information
requestPins[0].PIN="CH000862116CA";
requestPins[0].FSA="";
//Set-up call and execute service
WebReference.ZWBRAND_CPCRESPONSE tandtResponse =
tandtService.ZDC_GET_HISTORY("N", requestPins, "1", "JKL", "Y");
//Get a handle on response pin information
WebReference.ZWBRAND_PINS_LN[] responsePins =
tandtResponse.PINS;
}
catch (Exception ex)
{
Console.WriteLine(ex.StackTrace);
}
}
Huge thanks and sorry if this is asking alot- I just have no clue
about C#...
Raz