Jump to content

Recommended Posts

Posted

chala mandiki idi silly ga anipinchavachhu but konchem guide me ya

nenu oka web application meeda working. Now I have to call a web API developed in Java.

asalu adi yela consume chesukovali? aa api vaadu just credentials and url ichhadu ante. yela start avvalo konchem cheppandi

Posted
Just now, bevarse said:

chala mandiki idi silly ga anipinchavachhu but konchem guide me ya

nenu oka web application meeda working. Now I have to call a web API developed in Java.

asalu adi yela consume chesukovali? aa api vaadu just credentials and url ichhadu ante. yela start avvalo konchem cheppandi

You just need to use get post functiions n call that url

You need any code to start with??

Posted
2 minutes ago, futureofandhra said:

You just need to use get post functiions n call that url

You need any code to start with??

yes bhayya oka example or snippet please

Posted

that url will provide the  wsdl. Add that wsdl in your c# project. and you will be able to call the methods provided.

look up online for adding wsdl in VStudio

Posted
16 minutes ago, bevarse said:

chala mandiki idi silly ga anipinchavachhu but konchem guide me ya

nenu oka web application meeda working. Now I have to call a web API developed in Java.

asalu adi yela consume chesukovali? aa api vaadu just credentials and url ichhadu ante. yela start avvalo konchem cheppandi

first aa wsdl  IE koti pani chesthundho chudu.. dummy values tho soapUI lo try chey. apudu pani chesthe aa wsdl ni add service reference lo add chey. app.config lo neeku binding info generate avthadhi. adhi patkocchi web.config lo pareyyi...  inka mee dhantlo MVC,MVVM etla vadithe  atla... Business lo logic rasko.. secured services ki certificates add cheyalsi untadhi adhi kanukko.. 

 

{
    try
    {
        EndpointAddress remoteAddress = new EndpointAddress(Url);
        BasicHttpBinding binding = new BasicHttpBinding();
        binding.Name = "XXXXXX";
        BasicHttpSecurity security = new BasicHttpSecurity();
        security.Mode = BasicHttpSecurityMode.Transport;
        binding.Security = security;
        binding.Security.Transport.ClientCredentialType = HttpClientCredentialType.Certificate;
        ServiceName.ServiceClient client;
        System.Net.ServicePointManager.ServerCertificateValidationCallback = (object s, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors) => true;


        ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;


        client = new serviceName.ServiceClient(binding, remoteAddress);

// If you have any certificates 

        client.ClientCredentials.ClientCertificate.SetCertificate(StoreLocation.LocalMachine, StoreName.My, X509FindType.FindByThumbprint, "XXXXXXXXXXXXXX");

        Response = client.Method(request);
    }
}

 

Online lo vethuku.. manchi clear example untadhi 

Posted
4 minutes ago, MeraBharat_Mahan said:

that url will provide the  wsdl. Add that wsdl in your c# project. and you will be able to call the methods provided.

look up online for adding wsdl in VStudio

Baa nv chepedi WEB services gurinchi.. API calling is using HTTP verbs

Posted

url webpage lo open chesthe WSDL kaadu web form generate avutundi

and expecting xml as input

Posted
Just now, RowdyFellow said:

Baa nv chepedi WEB services gurinchi.. API calling is using HTTP verbs

nenu kuda web service e ankunna

Posted
2 minutes ago, bevarse said:

url webpage lo open chesthe WSDL kaadu web form generate avutundi

and expecting xml as input

neeku vadu icchina URL endhi WSDL kadha ?  normal ga nuvvu oka service consume cheskunnavante adhi chesinodu document isthadu. . how to use ani... worst case email ayina chestharu.. instruction 

Posted
1 minute ago, Crazy_Robert said:

neeku vadu icchina URL endhi WSDL kadha ?  normal ga nuvvu oka service consume cheskunnavante adhi chesinodu document isthadu. . how to use ani... worst case email ayina chestharu.. instruction 

yeah web services aite WSDL vastundi and adi easy gane implement chesa before

but never consumed API and adi kuda manaki teleyani language lo develop chesina API

Here is a sample XML we are expecting ani ichharu bhayya

<plan sendingApplication="My Client Application">
    <email>
        <recipient>[email protected]</recipient>
        <delay>5000</delay>
        <subject>Some Subject</subject>
        <message>This is a test email.</message>
    </email>
    <page>
        <recipient>2223334444</recipient>
        <delay>15000</delay>
        <message>This is a test page.</message>
    </page>
</plan>

 

Posted
35 minutes ago, bevarse said:

chala mandiki idi silly ga anipinchavachhu but konchem guide me ya

nenu oka web application meeda working. Now I have to call a web API developed in Java.

asalu adi yela consume chesukovali? aa api vaadu just credentials and url ichhadu ante. yela start avvalo konchem cheppandi

simple ga youtube la search cheyi... chala examples untai

Posted
37 minutes ago, bevarse said:

chala mandiki idi silly ga anipinchavachhu but konchem guide me ya

nenu oka web application meeda working. Now I have to call a web API developed in Java.

asalu adi yela consume chesukovali? aa api vaadu just credentials and url ichhadu ante. yela start avvalo konchem cheppandi

Sent pm @bevarse

Posted
50 minutes ago, Biskot said:

simple ga youtube la search cheyi... chala examples untai

adedo oka link nuvve ivvu bhayya

chala chusa but confusing ga vundi tappa clear ga ledu

I want to pass in xml to a POST method and also the credentials supplied

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...