Technology Question List

  1. How do I send XML to Synnex?
  2. How do I send XML to Synnex using HTTP GET method?
  3. How do I send XML to Synnex using HTTP POST method?
  4. How do I send request XML more than 2000 chars?
  5. Why I got 'Please provide 'xmldata' parameter when POST/GET.' error message?
  6. Why I got 'XML format error or missing mandatory tag' error message?
  7. Why I got 'Service Disabled' message?
  8. Why I can not use '&' and '>' in XML?
  9. Did Synnex provided Web Services(SOAP) for Synnex B2B business?
  10. How many program language code example provided for Synnex B2B xml transaction?
  11. Other question...

How do I send XML to Synnex?

Synnex XML using HTTP protocol for recieving and sending XML data, therefore client code must support HTTP protocal, that's a natural capability for Java and C# or VB.NET program language,for VB/ASP user, you need download MSXML4 COM object, this COM object include some component to support XML and HTTP session. Synnex have some code examples about how to send request XML using those program language, all examples can be found at this web site.


How do I send XML to Synnex using HTTP GET method?

Customers can using HTTP GET method send request XML to Synnex, This is a simple way to send data. For example: copy the following string to your IE address field:

http://testec.synnex.com/SynnexXML/PriceAvailability?xmldata= <?xml version="1.0" encoding="UTF-8"?> <priceRequest><customerNo>110486</customerNo><userName>110486</userName><password>4synnex</password> <skuList><synnexSKU>101718</synnexSKU><lineNumber>1</lineNumber></skuList></priceRequest>

the request XML should be sent as a part of URL.

We do not recommend using GET method to connect to Synnex PO service, because GET method only support less than 2000 characters, the character count of PO request XML oftentimes will exceed this limit.


How do I send XML to Synnex using HTTP POST method?

Perhaps you have already used Synnex XML test site, that's a web submitter using HTML form to post data to server.

Synnex have some code examples about using POST method, please refer to Code Examples section.


How do I send request XML more than 2000 chars?

It need change HTTP method to POST, that allow send data more than 2000 characters, for detail, please see How do I send XML to Synnex using HTTP POST method?


Why I got 'Please provide 'xmldata' parameter when POST/GET.' error message?

It's necessary to provide request XML using parameter name: 'xmldata' or '$xmldata', that because HTTP protocal supports send diversified values every session, for differentiate the values we should name the parameter. Synnex designate the parameter name is 'xmldata' or '$xmldata'

For example, the correct request XML like below:

http://testec.synnex.com/SynnexXML/PriceAvailability?xmldata= <?xml version="1.0" encoding="UTF-8"?> <priceRequest><customerNo>110486</customerNo><userName>110486</userName><password>4synnex</password> <skuList><synnexSKU>101718</synnexSKU><lineNumber>1</lineNumber></skuList></priceRequest>


Why I got 'XML format error or missing mandatory tag' error message?

That means the request XML miss out some required tag/value, you can get the detail information of request XML defintion using DTD/Schemas(available on http://testec.synnex.com/SynnexXML), or use XML validation function to check your request data, this tool wlll show you which tag/value must be provided.


Why I got 'Service Disabled' message?

That means the server during maintance, please try again later.


Why I can not use '&' and '>' in XML?

This can be useful in cases in which:

  • Characters cannot be entered directly into a document because they would be interpreted as markup.
  • Characters cannot be entered directly into a document because of input device limitations.
  • Characters cannot be transported reliably through a processor limited to one-byte characters.
  • A character string or document fragment appears repeatedly and can be abbreviated.

For content representation, XML provides a number of syntactical constructs that start with an ampersand (&) and end with a semi-colon (;).

Character references provide a way to insert Unicode characters that are identified by a number pointing to a Unicode code point. Code points can be identified using either decimal or hexadecimal notation.

For example, to insert the Euro symbol, a character still missing from many keyboards, you can insert &#x20AC; or &#8364; into a document.

The following table lists the five built-in entities for the characters used for XML markup.

Entity Entity Reference Meaning
lt &lt; < (less than)
gt &gt; > (greater than)
amp &amp; & (ampersand)
apos &apos; ' (apostrophe or single quote)
quot &quot; " (double quote)

In cases where the character might cause the XML parser to misinterpret the document structure, use the entity instead of typing the character. The &apos; and &quot; entity references are most commonly used in attribute values.

To write Me&You, for example, use Me&amp;You. For a<b, use a&lt;b. For b>c, use b&gt;c.

You can also define your own entities, much like HTML defines a set of entities for use in HTML. &apos is not recognized as an HTML file; $#.... must be used when transforming to HTML.


Did Synnex provided Web Services(SOAP) for Synnex B2B business?

Yes, now we support P&A, POStatus query and FreightQuote query services via Web Services(SOAP)


How many program language code example provided for Synnex B2B xml transaction?

Currently, we provided VB6, Delphi7,Java and .NET code example(you can find the sample code list from 'Program Reference' menu). For .NET framework, we only provided C# code example, but this code can be used.in VB.net, ASP.net and other .NET framework program, for detail info, please visit Microsoft(R) MSDN: http://msdn.microsoft.com/netframework/.


Other question...

If you still have some technical questions, please send mail to Synnex B2B XML Team or Synnex B2B Team

.

.