Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

API version 2 error need help
 
noob27
Jr. Member
 
Total Posts:  1
Joined:  2012-02-03
 

Hi,

I’m really new to this and I’m trying to use the soap api version 2 and I’m not sure what’s going on.  I’m using the order list and when the result of the query is less than to the xml response is ok. But when I the result is more than 2 this is what happens:
response:

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:Magento">
<SOAP-ENV:Body>
<ns1:salesOrderListResponseParam>
<result>
<increment_id>100000006</increment_id>
<store_id>1</store_id>
<created_at>2012-02-04 23:37:11</created_at>
<updated_at>2012-02-04 23:55:10</updated_at>
<customer_id>2</customer_id>
<tax_amount>0.0000</tax_amount>
<shipping_amount>5.0000</shipping_amount>
<discount_amount>0.0000</discount_amount>
<subtotal>89.9900</subtotal>
<grand_total>94.9900</grand_total>
<total_qty_ordered>1.0000</total_qty_ordered>
<base_tax_amount>0.0000</base_tax_amount>
<base_shipping_amount>5.0000</base_shipping_amount>
<base_discount_amount>0.0000</base_discount_amount>
<base_subtotal>89.9900</base_subtotal>
<base_grand_total>94.9900</base_grand_total>
<billing_address_id>11</billing_address_id>
<billing_firstname>Jane</billing_firstname>
<billing_lastname>Doe</billing_lastname>
<shipping_address_id>12</shipping_address_id>
<shipping_firstname>Jane</shipping_firstname>
<shipping_lastname>Doe</shipping_lastname>
<billing_name>Jane Doe</billing_name>
<shipping_name>Jane Doe</shipping_name>
<store_to_base_rate>1.0000</store_to_base_rate>
<store_to_order_rate>1.0000</store_to_order_rate>
<base_to_global_rate>1.0000</base_to_global_rate>
<base_to_order_rate>1.0000</base_to_order_rate>
<weight>2.0000</weight>
<store_name>Main Website
Main Store
English</store_name>
<status>pending</status>
<state>new</state>
<global_currency_code>USD</global_currency_code>
<base_currency_code>USD</base_currency_code>
<store_currency_code>USD</store_currency_code>
<order_currency_code>USD</order_currency_code>
<shipping_method>flatrate_flatrate</shipping_method>
<shipping_description>Flat Rate - Fixed</shipping_description>
<customer_email>jane.doe@example.com</customer_email>
<customer_firstname>Jane</customer_firstname>
<customer_lastname>Doe</customer_lastname>
<quote_id>6</quote_id>
<is_virtual>0</is_virtual>
<customer_group_id>1</customer_group_id>
<customer_note_notify>0</customer_note_notify>
<customer_is_guest>0</customer_is_guest>
<email_sent>1</email_sent>
<order_id>6</order_id>
<protect_code>571d34</protect_code>
<base_shipping_tax_amount>0.0000</base_shipping_tax_amount>
<shipping_tax_amount>0.0000</shipping_tax_amount>
<base_shipping_discount_amount>0.0000</base_shipping_discount_amount>
<base_subtotal_incl_tax>89.9900</base_subtotal_incl_tax>
<base_total_due>94.9900</base_total_due>
<shipping_discount_amount>0.0000</shipping_discount_amount>
<subtotal_incl_tax>89.9900</subtotal_incl_tax>
<total_due>94.9900</total_due>
<total_item_count>1</total_item_count>
<hidden_tax_amount>0.0000</hidden_tax_amount>
<base_hidden_tax_amount>0.0000</base_hidden_tax_amount>
<shipping_hidden_tax_amount>0.0000</shipping_hidden_tax_amount>
<base_shipping_hidden_tax_amount>0.0000</base_shipping_hidden_tax_amount>
<shipping_incl_tax>5.0000</shipping_incl_tax>
<base_shipping_incl_tax>5.0000</base_shipping_incl_tax>
<

As you can see it just stops there and I don’t know what’s causing it. However, if the result is less that 2 it works without any problem and gives back a complete xml doc.

Please help and thanks in advance.

 
Magento Community Magento Community
Magento Community
Magento Community
 
repeaterstore
Member
 
Total Posts:  35
Joined:  2007-11-16
 

I’m also new to the magento API and am having my own troubles smile
I found the following on Stack Exchange the other day:
http://stackoverflow.com/questions/8620511/magento-soap-api-response-incomplete-when-using-a-mamp-stack-under-lion
Also incomplete XML responses with API v2. Maybe it helps!

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top