Quantcast
Channel: Appcelerator Developer Center Q&A Tag Feed (suds)
Viewing all articles
Browse latest Browse all 20

SOAP + suds.js problem

$
0
0

I have two web services to access, the first that have simple parameters suds works perfectly, the second requiring parameters does not work as below:

<city>
         <name> string </ name>
         <state> string </ state>
       </ city>
       <resultRange>
         <pageIndex> int </ pageIndex>
         <recordsPerPage> int </ recordsPerPage>
       </ resultRange>
my code for sending the parameters are as follows:
var callParams = { 
         city: {
        name: config.city,
        state: config.uf
     },
     resultRange: {
        pageIndex: 0,
        recordsPerPage: 0
     },
     token: token
}
The data are correct, I tried to send the XML directly as follows:
<city><name>CITY</name><state>STATE</state></city><resultRange><pageIndex>0</pageIndex><recordsPerPage>10</recordsPerPage></resultRange><token>TOKEN</token>
and still does not work. Through PHP, Java, it works.

I received this error:

<?xml version="1.0" encoding="utf-8"?><detail />
Can anyone help me please?

Viewing all articles
Browse latest Browse all 20

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>