AnsweredAssumed Answered

FM11 and HTTP Post

Question asked by BillMiller on Aug 14, 2014
Latest reply on Aug 14, 2014 by BillMiller

Hi All,

 

I'm working for a client using FM11 and they want to interact with a web service using SOAP requests.

I am new to SOAP, so I was looking for a little guidance.

I downloaded the fmNexus plugin to use for this.

Here is the request I submitted using the FMNexus HTTP POST command

 

"

POST /WebServices/PK_Service/PK_Service.asmx HTTP/1.1

Host: auracloud.net

Content-Type: text/xml; charset=utf-8

Content-Length: length

SOAPAction: "http://tempuri.org/getPK"

 

 

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

<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">

<soap:Body>

<getPK xmlns="http://tempuri.org/">

<upas>" & $pw & "</upas>

<sn>" & $sn & "</sn>

<license>" & $licenseType & "</license>

<apps>

<string>" & $appList & "</string>

</apps>

</getPK>

</soap:Body>

</soap:Envelope>

"

 

I receiv an error message; here is the heart of it:

 

"Server was unable to process request. ---&gt; Data at the root level is invalid. Line 1, position 2."

 

As you can see, I am submitting four variables with this request: $pw, $sn, $licenseType, $appList.

 

Would you have any clues to point in the right direction?

Thanks for any help you can provide.

Outcomes