+ Start a Discussion

External Application access

Looking for some help creating a call out to produce the following xml

<System_LogIn  xmlns="http://www.TargetURL.co.uk"  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  xsi:schemaLocation="http://www.TargetURL.co.uk http://www.TargetURL.co.uk/WebServices/API/Schemas/invoices/System_LogIn.xsd">

 have been trying to use with the above as the body

    HttpRequest req = new HttpRequest();

    Http http = new Http();
    HttpResponse res = http.send(req);


This is just returning the homepage rather than the API call. I have added www.TargetURL.co.uk to thr Remote Site also.

Any help much appreciated as this is not an area i know much about


You are not using the correct Endpoint. As you have specified homepage url in the req,setEndpoint its returning you the homepage html content in the response. Actual API end point must be different from this.