<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">&lt;?php
/**
 * This file aims to show you how to use this generated package.
 * In addition, the goal is to show which methods are available and the first needed parameter(s)
 * You have to use an associative array such as:
 * - the key must be a constant beginning with WSDL_ from AbstractSoapClientBase class (each generated ServiceType class extends this class)
 * - the value must be the corresponding key value (each option matches a {@link http://www.php.net/manual/en/soapclient.soapclient.php} option)
 * $options = array(
 * \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_URL =&gt; 'https://api.n11.com/ws/ProductService.wsdl?wsdl',
 * \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_TRACE =&gt; true,
 * \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_LOGIN =&gt; 'you_secret_login',
 * \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_PASSWORD =&gt; 'you_secret_password',
 * );
 * etc...
 */
require_once __DIR__ . '/vendor/autoload.php';
/**
 * Minimal options
 */
$options = array(
    \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_URL =&gt; 'https://api.n11.com/ws/ProductService.wsdl?wsdl',
    \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_CLASSMAP =&gt; ClassMap::get(),
);
/**
 * Samples for Get ServiceType
 */
$get = new \ServiceType\Get($options);
/**
 * Sample call for GetProductList operation/method
 */
if ($get-&gt;GetProductList(new \StructType\GetProductListRequest()) !== false) {
    print_r($get-&gt;getResult());
} else {
    print_r($get-&gt;getLastError());
}
/**
 * Sample call for GetProductBySellerCode operation/method
 */
if ($get-&gt;GetProductBySellerCode(new \StructType\GetProductBySellerCodeRequest()) !== false) {
    print_r($get-&gt;getResult());
} else {
    print_r($get-&gt;getLastError());
}
/**
 * Sample call for GetProductQuestionList operation/method
 */
if ($get-&gt;GetProductQuestionList(new \StructType\GetProductQuestionListRequest()) !== false) {
    print_r($get-&gt;getResult());
} else {
    print_r($get-&gt;getLastError());
}
/**
 * Sample call for GetProductQuestionDetail operation/method
 */
if ($get-&gt;GetProductQuestionDetail(new \StructType\GetProductQuestionDetailRequest()) !== false) {
    print_r($get-&gt;getResult());
} else {
    print_r($get-&gt;getLastError());
}
/**
 * Sample call for GetProductByProductId operation/method
 */
if ($get-&gt;GetProductByProductId(new \StructType\GetProductByProductIdRequest()) !== false) {
    print_r($get-&gt;getResult());
} else {
    print_r($get-&gt;getLastError());
}
/**
 * Samples for Update ServiceType
 */
$update = new \ServiceType\Update($options);
/**
 * Sample call for UpdateProductPriceBySellerCode operation/method
 */
if ($update-&gt;UpdateProductPriceBySellerCode(new \StructType\UpdateProductPriceBySellerCodeRequest()) !== false) {
    print_r($update-&gt;getResult());
} else {
    print_r($update-&gt;getLastError());
}
/**
 * Sample call for UpdateDiscountValueBySellerCode operation/method
 */
if ($update-&gt;UpdateDiscountValueBySellerCode(new \StructType\UpdateDiscountValueBySellerCodeRequest()) !== false) {
    print_r($update-&gt;getResult());
} else {
    print_r($update-&gt;getLastError());
}
/**
 * Sample call for UpdateProductBasic operation/method
 */
if ($update-&gt;UpdateProductBasic(new \StructType\UpdateProductBasicRequest()) !== false) {
    print_r($update-&gt;getResult());
} else {
    print_r($update-&gt;getLastError());
}
/**
 * Sample call for UpdateDiscountValueByProductId operation/method
 */
if ($update-&gt;UpdateDiscountValueByProductId(new \StructType\UpdateDiscountValueByProductIdRequest()) !== false) {
    print_r($update-&gt;getResult());
} else {
    print_r($update-&gt;getLastError());
}
/**
 * Sample call for UpdateProductPriceById operation/method
 */
if ($update-&gt;UpdateProductPriceById(new \StructType\UpdateProductPriceByIdRequest()) !== false) {
    print_r($update-&gt;getResult());
} else {
    print_r($update-&gt;getLastError());
}
/**
 * Samples for Delete ServiceType
 */
$delete = new \ServiceType\Delete($options);
/**
 * Sample call for DeleteProductById operation/method
 */
if ($delete-&gt;DeleteProductById(new \StructType\DeleteProductByIdRequest()) !== false) {
    print_r($delete-&gt;getResult());
} else {
    print_r($delete-&gt;getLastError());
}
/**
 * Sample call for DeleteProductBySellerCode operation/method
 */
if ($delete-&gt;DeleteProductBySellerCode(new \StructType\DeleteProductBySellerCodeRequest()) !== false) {
    print_r($delete-&gt;getResult());
} else {
    print_r($delete-&gt;getLastError());
}
/**
 * Samples for Save ServiceType
 */
$save = new \ServiceType\Save($options);
/**
 * Sample call for SaveProductAnswer operation/method
 */
if ($save-&gt;SaveProductAnswer(new \StructType\SaveProductAnswerRequest()) !== false) {
    print_r($save-&gt;getResult());
} else {
    print_r($save-&gt;getLastError());
}
/**
 * Sample call for SaveProduct operation/method
 */
if ($save-&gt;SaveProduct(new \StructType\SaveProductRequest()) !== false) {
    print_r($save-&gt;getResult());
} else {
    print_r($save-&gt;getLastError());
}
/**
 * Samples for Search ServiceType
 */
$search = new \ServiceType\Search($options);
/**
 * Sample call for SearchProducts operation/method
 */
if ($search-&gt;SearchProducts(new \StructType\SearchProductsRequest()) !== false) {
    print_r($search-&gt;getResult());
} else {
    print_r($search-&gt;getLastError());
}
/**
 * Samples for Adapt ServiceType
 */
$adapt = new \ServiceType\Adapt($options);
/**
 * Sample call for AdaptUnificationProducts operation/method
 */
if ($adapt-&gt;AdaptUnificationProducts(new \StructType\AdaptUnificationProductsRequest()) !== false) {
    print_r($adapt-&gt;getResult());
} else {
    print_r($adapt-&gt;getLastError());
}
/**
 * Samples for Product ServiceType
 */
$product = new \ServiceType\Product($options);
/**
 * Sample call for ProductApprovalStatus operation/method
 */
if ($product-&gt;ProductApprovalStatus(new \StructType\ProductApprovalStatusRequest()) !== false) {
    print_r($product-&gt;getResult());
} else {
    print_r($product-&gt;getLastError());
}
</pre></body></html>