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

ShippingAddress via WebService API
 
ahachmann
Jr. Member
 
Total Posts:  1
Joined:  2011-07-11
 

Hello,

I am currently building an application that reads all pending orders and lists the adresses in order to be able to print those to labels.

I created a WebService Client in Java and read all pending orders, which works pretty fine via:

SalesOrderListResponseParam result port.salesOrderList(parameters);

Now I read the

entity.getShippingAddressId()
from the order and want to read the address like this:

customerRequest.setSessionId(sessionId);
customerRequest.setAddressId(Integer.valueOf(id));

CustomerAddressInfoResponseParam adress port.customerAddressInfo(customerRequest);

But here I face the problem, that the ID I get from the Order is not directly the very id I need to read the Customer\\\’s adress.
Ok, there seems to be a relation table in between, and I can see it clearly in the database and that the ID matches. But the method I call does not query that table so that the IDs do not match.

I was not able to find out a way via service calls to get to the right data from table salfes_flat_order_address.

Has anybody a Tip how I can get the data from db via service calls?

thanks,
Alex

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