Authorization - WSDL File, Proxy class in C#

Markus Freitag 3,756 Reputation points
2022-01-17T10:01:04.123+00:00

Hello,

I have received a WSDL file from a customer. With this I have created a proxy class via WSDL. --> IO
The server must be connected via Authorization.
I don't see anything there. How can I make the connection via Authorization?
The proxy class is quite complex. I need only 2 requests.

Is there any way I can best create the request. There is no support from the customer.

The alternative would be to create it myself via XDocument, which I am not in favor of.

 private void btnOrderData_Click(object sender, EventArgs e)
        {
            using (PDXCSMEService danS = new PDXCSMEService())
            {
                //danS .Url = "";

//  danS.Auto....???
Windows development | Internet Information Services
Windows for business | Windows Server | User experience | Other
Developer technologies | C#
Developer technologies | C#

An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.

Developer technologies | ASP.NET Core | Other
0 comments No comments

6 answers

Sort by: Most helpful
  1. Limitless Technology 40,116 Reputation points
    2022-01-24T09:15:15.557+00:00

    Hi there,

    Basic authentication is supported by specifying a policy in the WSDL. A basic authentication policy can be added to the WSDL either manually or by using the WS-Policy Attachment window accessed from CASA and provided through Tango (WSIT). A basic authentication policy is specified at the root level of the WSDL and a reference to the policy is made in the WSDL Port type section, binding the policy to the endpoint.


    --If the reply is helpful, please Upvote and Accept it as an answer--

    Was this answer helpful?

    1 person found this answer helpful.

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.