You need to sign in to do that
Don't have an account?

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"> <Header> <MessageType>Request</MessageType> <TestMode>false</TestMode> <SubmissionNumber>00000001</SubmissionNumber> <Authentication> <AccNumber>123456</AccNumber> <MD5Value>7dd259dea3393880406d292e3f6f5830</MD5Value> </Authentication> </Header> <Body> <LandingPage> <Dashboard>true</Dashboard> </LandingPage> <ClientID>106476</ClientID> </Body> </System_LogIn>
have been trying to use with the above as the body
HttpRequest req = new HttpRequest(); req.setEndpoint('http://www.TargetURL.co.uk/'); req.setMethod('GET'); req.setBody(body); 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.