I am trying to integrate Kashflow into our Ruby on Rails app and have immediately begun to have problems. I am using soap4r and have generated the driver, etc using wsdl2ruby.
The first thing I wanted to do was create a customer.
The stream dump says I am sending this:
I get back:Code:<?xml version="1.0" encoding="utf-8" ?> <env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <env:Body> <n1:InsertCustomer xmlns:n1="KashFlow"> <n1:UserName>xxxx</n1:UserName> <n1:Password>xxxx</n1:Password> <n1:custr> <n1:CustomerID>1</n1:CustomerID> <n1:Name>Phil Xxx</n1:Name> <n1:Email>phil@xxx.com</n1:Email> <n1:EC xsi:nil="true"></n1:EC> <n1:Source xsi:nil="true"></n1:Source> <n1:Discount xsi:nil="true"></n1:Discount> <n1:ShowDiscount xsi:nil="true"></n1:ShowDiscount> <n1:PaymentTerms xsi:nil="true"></n1:PaymentTerms> <n1:CheckBox1 xsi:nil="true"></n1:CheckBox1> <n1:CheckBox2 xsi:nil="true"></n1:CheckBox2> <n1:Created xsi:nil="true"></n1:Created> <n1:Updated xsi:nil="true"></n1:Updated> </n1:custr> </n1:InsertCustomer> </env:Body> </env:Envelope>
I do not thinnk that this is related to the PHP multidimensional array thread, as there are no anytype elements in this.Code:<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><soap:Fault><faultcode>soap:Client</faultcode><faultstring>Server was unable to read request. ---> There is an error in XML document (13, 39). ---> Input string was not in a correct format.</faultstring><detail /></soap:Fault></soap:Body></soap:Envelope>
Has anyone integrated with Ruby and if so, do you have any tips for me?


LinkBack URL
About LinkBacks
Reply With Quote