etrias / rase-connector
Package generated from http://webservice.ra-group.be:4751/salesorderservice.svc?wsdl using wsdltophp/packagegenerator
Installs: 2 191
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: ^7.4
- ext-curl: *
- ext-soap: *
- phpro/soap-client: ^1.7
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.4
- guzzlehttp/guzzle: ~6.3
- http-interop/http-factory: ~0.2
- http-interop/http-factory-guzzle: ~0.1
- php-http/client-common: ^2.0
- php-http/discovery: ^1.6
- php-http/guzzle6-adapter: ^2.0
- php-http/message: ^1.8
- phpunit/phpunit: ^6.2
- symfony/event-dispatcher: ^4.4
- zendframework/zend-code: ^3.1
This package is auto-updated.
Last update: 2023-06-27 05:06:42 UTC
README
No replacement suggested.
RASE order connector
You can use this package to easily make a soap connection to RASE order service in PHP.
Ex.
$salesTable = new \rase\StructType\AxdEntity_SalesTable(); $salesTable->setSalesPoolId('WEBORD') ->setCustAccount('account') ->setDeliveryCity('city') ->setDeliveryCountryRegionId('NL') ->setDeliveryName('delivery_name') ->setDeliveryStreet('street') ->setDeliveryZipCode('zip_code') ->setDlvMode('DHL_B2B') ->setEmail('reply@company.com')) ->setPurchOrderFormNum('rase' . date('YmdHis')) ->setCustomerRef('rase' . date('YmdHis')) ->setReceiptDateRequested(new DateTime('today')) ->setDeliveryDate(new DateTime('tomorrow')) ->setSalesOriginId('sales_origin_id') ->setSalesTaker('ADM') ->setSalesType(AxdEnum_SalesType::VALUE_SALES) ->setIgnoreMarkup('No') ->setInclTax('No') ->setClass('entity'); $salesLine = (new AxdEntity_SalesLine($skuNumber, (int)$quantity, 'PAIR'))->setClass('entity'); $inventDim = (new AxdEntity_InventDim())->setInventColorId($item_color)->setInventSizeId($item_size)->setClass('entity'); $salesLine->setInventDim([$inventDim]); $salesTable->addToSalesLine($salesLine); $salesOrder = new AxdSalesOrder(); $salesOrder->addToSalesTable($salesTable); $createRequest = new SalesOrderServiceCreateRequest($salesOrder); $soapOptions = [ AbstractSoapClientBase::WSDL_URL => https://endpoint.com, AbstractSoapClientBase::WSDL_CLASSMAP => RaseConnector\ClassMap::get(), AbstractSoapClientBase::DEFAULT_SOAP_CLIENT_CLASS => jamesiarmes\PhpNtlm\SoapClient::class, 'wsdl_user' => 'username', 'wsdl_password' => 'password' ]; $soapClient = new RaseConnector\ServiceType\Create($options, true); $soapClient->create($createRequest);
Regenerate package
wget https://phar.wsdltophp.com/wsdltophp.phar php wsdltophp.phar generate:package \ --urlorpath="http://webservice.ra-group.be:4751/salesorderservice.svc?wsdl" \ --soapclient="\RaseConnector\SoapClient" \ --destination ./ \ --composer-name="etrias/rase-connector" \ --namespace RaseConnector \ --force