Hi, I'm kind of stuck with doing SOAP TBA like thi...
# general
e
Hi, I'm kind of stuck with doing SOAP TBA like this on .net, more specifically, in what part to integrate this does anyone have experience doing this in C#? https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/section_4395625838.html
c
Have you added the Service Reference to the NetSuite WSDL?
e
Yes.
This is the step im currently on, when I try this, the status response is HTTP 301. I believe the Url should be something else.
Copy code
var netSuiteService = new NetSuiteService()
            {
                Url = "<https://xxxxxxxx-sb1.app.netsuite.com/>",
                tokenPassport = new TokenPassport()
                {
                    account = Account,
                    nonce = Nonce,
                    consumerKey = ConsumerKey,
                    token = Token,
                    timestamp = TimeStamp,
                    signature = new TokenPassportSignature()
                    {
                        algorithm = "HMAC-SHA256",
                        Value = string.Format("{0}&{1}&{2}&{3}&{4}", Account, ConsumerKey, Token, Nonce, TimeStamp)
                    }
                }
            };

            netSuiteService.upsert(new com.netsuite.webservices.Invoice()
            {

            });