AnsweredAssumed Answered

CURL Post (soap) using MBS Plugin- specify output

Question asked by mchancevet@gmail.com on May 24, 2016
Latest reply on Oct 26, 2016 by monkeybreadsoftware

Hello,

I'm quite new to CURL functions - all a bit confusing.

I'm trying to integrate an Hosted FM solution to a 3rd party API for logisitics

 

Here is the template for my POST

 

curl -v -X POST -d@GenerateLabels.xml https://webapi.auspost.com.au/soap/LodgementManagement_MerchantTest_v1 --header "Content-Type: application/soap+xml;charset=UTF-8;action=\"generateLabel\"" --insecure --user lps_merchant_testing:LPSprodtesting@1 2>out2.txt >out1.xml

 

I am using MBS Plugin with the following functions

 

 

MBS (CURL.New)

SetOptionVerbose

SetOptionPost

SetOptionURL

SetOptionUserName

SetOptionPassword

SetOptionHTTPHeader

SetOptionInputFile (order.xml)

SetOptionPostFields ("2>out2.txt >out1.xml")

SetPerform

 

I'm still getting plenty of errors and no 'out2.txt or out1.xml as a result.

 

How can I add the "2>out2.txt >out1.xml" correctly if this is incorrect, Is it a post field?

 

Is it best to pass the input XML file as a file or as a text string as a Post field?

 

If so should I use this function twice or can it handle 2 fields as a list?

 

Thanks,

 

Morgan

Outcomes