Every time I try to set up a new channel I run into issues with MvCall (probably because I am just really dense). In this case I am trying to work with the API's on eBay and I keep getting the same response no matter how I format the call. I am trying to send an xml string.
The data setup:
<MvASSIGN NAME = "l.sendxml" VALUE = "{ encodeentities('<?xml version="1.0" encoding="utf-8"?><GetOrdersRequest xmlns="urn:ebay:apis:eBLBaseComponents"> ..... </GetOrdersRequest>') }">
<MvASSIGN NAME = "l.headers" VALUE = "{'X-EBAY-API-COMPATIBILITY-LEVEL:857 ..... X-EBAY-API-CALL-NAME:GetOrders'}">
<MvASSIGN NAME="l.dataformat" VALUE="xml">
<MvASSIGN NAME = "AccessURL" VALUE = "{'https://api.sandbox.ebay.com/ws/api.dll'}">
The calls:
<MvCALL
ACTION="{AccessURL}"
METHOD="POST"
FIELDS = "l.headers, l.dataformat, l.sendxml">
<MvEVAL EXPR="{callvalue}">
</MvCALL>
<MvCALL
ACTION="{AccessURL}"
HEADERS="{l.headers}"
METHOD="POST"
FIELDS = "l.dataformat, l.sendxml">
<MvEVAL EXPR="{callvalue}">
</MvCALL>
<MvCALL
ACTION="{AccessURL}"
HEADERS="{l.headers}"
METHOD="POST"
CONTENT-TYPE = "text/xml"
FIELDS = "l.sendxml">
<MvEVAL EXPR="{callvalue}">
</MvCALL>
I have also tried appending the xml data to the url but that didn't work either.
The result sent back is:
<ShortMessage>
<![CDATA[ Unsupported verb. ]]>
</ShortMessage>
Any ideas?
Thanks
DonB
The data setup:
<MvASSIGN NAME = "l.sendxml" VALUE = "{ encodeentities('<?xml version="1.0" encoding="utf-8"?><GetOrdersRequest xmlns="urn:ebay:apis:eBLBaseComponents"> ..... </GetOrdersRequest>') }">
<MvASSIGN NAME = "l.headers" VALUE = "{'X-EBAY-API-COMPATIBILITY-LEVEL:857 ..... X-EBAY-API-CALL-NAME:GetOrders'}">
<MvASSIGN NAME="l.dataformat" VALUE="xml">
<MvASSIGN NAME = "AccessURL" VALUE = "{'https://api.sandbox.ebay.com/ws/api.dll'}">
The calls:
<MvCALL
ACTION="{AccessURL}"
METHOD="POST"
FIELDS = "l.headers, l.dataformat, l.sendxml">
<MvEVAL EXPR="{callvalue}">
</MvCALL>
<MvCALL
ACTION="{AccessURL}"
HEADERS="{l.headers}"
METHOD="POST"
FIELDS = "l.dataformat, l.sendxml">
<MvEVAL EXPR="{callvalue}">
</MvCALL>
<MvCALL
ACTION="{AccessURL}"
HEADERS="{l.headers}"
METHOD="POST"
CONTENT-TYPE = "text/xml"
FIELDS = "l.sendxml">
<MvEVAL EXPR="{callvalue}">
</MvCALL>
I have also tried appending the xml data to the url but that didn't work either.
The result sent back is:
<ShortMessage>
<![CDATA[ Unsupported verb. ]]>
</ShortMessage>
Any ideas?
Thanks
DonB
Comment