smower

Anyone Gotten FM 13 New Httppost Command to Work?

Discussion created by smower on Dec 4, 2013
Latest reply on Mar 28, 2014 by iamsloper

Hello,

 

Has anyone gotten the FileMaker 13 httppost to work on anything other than the help file example? Can it be used to post xml documents to eBay, FedEx, UPS, Amazon etc.? I have been trying to work with eBay, Amazon and FedEx webservices with it and

 

httpspost://ws.fedex.com:443/web-services/rate/?<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://fedex.com/ws/rate/v10"><SOAP-ENV:Body><my xml data goes here></SOAP-ENV:Envelope>

 

returns error messages like this

 

"<?xml version="1.0" encoding="UTF-8"?>

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode><faultstring>Failure while unmarshalling message: Failed to parse XML text</faultstring><detail><con:fault xmlns:con="http://www.bea.com/wli/sb/context"><con:errorCode>9999</con:errorCode><con:reason>Failure while unmarshalling message: Failed to parse XML text</con:reason></con:fault></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>"

 

 

I can even take named value pair webservices that are stringed together like a get command and paste them into a browser and get results but when I try to do it as an httppost command it doesn't work. For example, the following eBay named value pair when I use the insert from url script step with the following: (putting in my app token)

 

httppost://svcs.ebay.com/services/search/FindingService/v1?OPERATION-NAME=findItemsByKeywords&SERVICE-VERSION=1.0.0&SECURITY-APPNAME=MyAppNameTokenGoesHere&RESPONSE-DATA-FORMAT=XML&REST-PAYLOAD&keywords=harry%20potter%20phoenix

 

it gives this error: <?xml version='1.0' encoding='UTF-8'?><errorMessage xmlns="http://www.ebay.com/marketplace/search/v1/services"><error><errorId>2038</errorId><domain>CoreRuntime</domain><severity>Error</severity><category>System</category><message>Missing SOA operation name header</message><subdomain>System</subdomain></error></errorMessage>

 

The following doesn't work either:

 

httppost://svcs.ebay.com/services/search/FindingService/v1?<findItemsByKeywordsRequest xmlns="http://www.ebay.com/marketplace/search/v1/services"><keywords>harry potter phoenix</keywords></findItemsByKeywordsRequest>

 

Thanks in advance for your info and working examples if you have any.

 

Thanks,

Shawn

Outcomes