Solved

Magneto API- I need help with adding tracking number using " sales_order_shipment.addTrack "

Posted on 2013-06-14
2
668 Views
Last Modified: 2013-10-31
I'm seeking help updating Magneto using Vbscript /XML and their API.  I'm able to successfully query and import order address information.  However,  I receive an error on export when I attempt to update the tracking number using the api call sales_order_shipment.addTrack -  I receive error 100 "Requested shipment not exists."  

I am able to created a new sales order with the api prior to the tracking call.
SalesOrderShipmentAddTrackReques.xml
0
Comment
Question by:col1dxw
  • 2
2 Comments
 
LVL 16

Expert Comment

by:theo kouwenhoven
ID: 39250107
Hi cl1dwx,

in your example, you write:
"This XML file does not appear to have any style information associated with it. The document tree is shown below."

That is becuse it's not realy a "normal"xml file, it's probably part of the wsdl.
If you import the wsdl, you get 2 objects, one with the data objects and one with the "actions"
So to do your "sales_order_shipment.addTrack" you probably need two other objects:

They are named something like:
sales_order_shipment_addTrack_object
sales_order_shipment_addTrack_responseobject

I will check later-on and let you know
0
 
LVL 16

Accepted Solution

by:
theo kouwenhoven earned 500 total points
ID: 39250372
Hi again,

I checked, and the answer is that you first need the wsdl.
after that you can create the right objects, I don't know how todo in vb, but my language it is :


Var=Action dataType=MagentoOperations()
Var=MagentoParm  dataType=salesOrderShipmentAddTrackRequestParam
Var=Response dataType=salesOrderShipmentAddTrackResponseParam

Set MagentoParm.sessionID=mySession
Set MagentoParm.carrier=myCarrier
Set MagentoParm.shipmentIncrementId=Id+1
Set MagentoParm.title=myTitle
Set MagentoParm.trackNumber=myTrackSeq

Set Response=Action.salesOrderShipmentAddTrack(MagentoParm)
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Register AutoHotkey 12 72
What is assert.deepEqual? 4 46
XSL FO - text wrapping and empty spaces 1 32
Xsl-fo show PDF when no results are returned 2 18
Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
I made this because I wanted to get e-mail with a attached csv file so I'd would be able to import user input into a MS Excel template, but I also wanted to register/save all inputs from each day in a file on the server. 1st - It creates a temp C…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question