Apex Integration Services: Apex SOAP Callouts

แชร์
ฝัง
  • เผยแพร่เมื่อ 12 ม.ค. 2025

ความคิดเห็น • 28

  • @kumarmaradapu5478
    @kumarmaradapu5478 2 ปีที่แล้ว +10

    6 errors are not retifed pls help me bro

  • @dhanashrigosavi638
    @dhanashrigosavi638 2 ปีที่แล้ว +4

    Thankyou it really worked I have been trying this for long but it didn't work thanks man

  • @priyankakhilari6014
    @priyankakhilari6014 ปีที่แล้ว

    hii getting Invalid interface: ParkServiceMock error in test class

  • @hemanaidu12
    @hemanaidu12 2 ปีที่แล้ว +1

    No Apex class named 'ParkService' was found. Ensure the class you generated from the WSDL is named 'ParkService'..
    please help me.. this is my error

  • @ammachethiruchulu11
    @ammachethiruchulu11 2 ปีที่แล้ว

    These code has 6 errors 😭

    • @HEMANTHKU
      @HEMANTHKU 2 ปีที่แล้ว

      Same problem bro

  • @spcric6302
    @spcric6302 ปีที่แล้ว

    Thanks❤🙏

  • @technomake1225
    @technomake1225 2 ปีที่แล้ว +3

    please send me code

    • @curiosity09
      @curiosity09  2 ปีที่แล้ว +3

      ParkLocator:
      public class ParkLocator {
      public static String [] country (String x) {
      String parks = x; // {'Yellowstone','Kanha','Mount Fuji'};
      ParkService.ParksImplPort findCountries = new ParkService.ParksImplPort ();
      return findCountries.byCountry (parks);
      }
      }
      ParkLocatorTest:
      @isTest
      public class ParkLocatorTest {
      @isTest static void testCallout () {
      // This causes a fake response to be generated
      Test.setMock (WebServiceMock.class, new ParkServiceMock ());
      String x ='Yellowstone';
      List result = ParkLocator.country (x);
      string resultstring = string.join (result,',');
      System.assertEquals ('USA', resultstring);
      }
      }
      ParkServiceMock:
      @isTest
      global class ParkServiceMock implements WebServiceMock {
      global void doInvoke (
      Object stub,
      Object request,
      Map response,
      String endpoint,
      String soapAction,
      String requestName,
      String responseNS,
      String responseName,
      String responseType) {
      ParkService.byCountryResponse response_x =new ParkService.byCountryResponse ();
      response_x.return_x = new List {'USA'};
      response.put ('response_x', response_x);
      }
      }

  • @kratosAk4700
    @kratosAk4700 2 ปีที่แล้ว +5

    Executing the 'country' method on 'ParkLocator' failed. Make sure the method exists with the name 'country', is public and static, accepts a String, and returns an array of Strings from the web service.

    • @amjadmansoor6115
      @amjadmansoor6115 2 ปีที่แล้ว +1

      Bro same here

    • @Sezu_world27
      @Sezu_world27 2 ปีที่แล้ว +1

      Same here

    • @amjadmansoor6115
      @amjadmansoor6115 2 ปีที่แล้ว +1

      @@Sezu_world27 I got the answers there are few steps for this

    • @reshma_naidu7
      @reshma_naidu7 2 ปีที่แล้ว

      @@amjadmansoor6115 could you please tell me those steps?

    • @musushaik2109
      @musushaik2109 2 ปีที่แล้ว

      @@amjadmansoor6115 please explain those steps to us

  • @curiosity09
    @curiosity09  2 ปีที่แล้ว +3

    ParkLocator:
    public class ParkLocator {
    public static String [] country (String x) {
    String parks = x; // {'Yellowstone','Kanha','Mount Fuji'};
    ParkService.ParksImplPort findCountries = new ParkService.ParksImplPort ();
    return findCountries.byCountry (parks);
    }
    }
    ParkLocatorTest:
    @isTest
    public class ParkLocatorTest {
    @isTest static void testCallout () {
    // This causes a fake response to be generated
    Test.setMock (WebServiceMock.class, new ParkServiceMock ());
    String x ='Yellowstone';
    List result = ParkLocator.country(x);
    string resultstring = string.join (result,',');
    System.assertEquals ('USA', resultstring);
    }
    }
    ParkServiceMock:
    @isTest
    global class ParkServiceMock implements WebServiceMock {
    global void doInvoke (
    Object stub,
    Object request,
    Map response,
    String endpoint,
    String soapAction,
    String requestName,
    String responseNS,
    String responseName,
    String responseType) {
    ParkService.byCountryResponse response_x =new ParkService.byCountryResponse ();
    response_x.return_x = new List {'USA'};
    response.put ('response_x', response_x);
    }
    }

  • @chunchurajeswari7285
    @chunchurajeswari7285 2 ปีที่แล้ว +2

    There are 6 errors in these codes

  • @MsMitalis
    @MsMitalis 2 ปีที่แล้ว

    sir make videos on apex specialist superbadge

    • @curiosity09
      @curiosity09  2 ปีที่แล้ว +1

      It may take a lot of time, but I will try my best

  • @anushagangupamu1635
    @anushagangupamu1635 2 ปีที่แล้ว

    Thank you so much sir .......

  • @geethaallu1183
    @geethaallu1183 2 ปีที่แล้ว

    Tqq for perfect code