[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Avalara GetHistory soap call
Thank you for keeping us informed.
Thomas.
Am 12.06.2013 18:43, schrieb Laura Hamway (PHOENIX):
Hi,
I finally have this working and wanted to post the correct version in
case anyone else is working with Avalara.
The correct xml is:
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ser="http://avatax.avalara.com/services">
<soapenv:Header>
<wsse:Security soapenv:mustUnderstand="1"
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wss
ecurity-secext-1.0.xsd">
<wsse:UsernameToken wsu:Id="UsernameToken-1"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wsse
curity-utility-1.0.xsd">
<wsse:Username>xxxxxxx</wsse:Username>
<wsse:Password
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-
token-profile-1.0#PasswordText">xxxxxx</wsse:Password>
<wsse:Nonce
EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-s
oap-message-security-1.0#Base64Binary">ssBwakdnxoKicd/VW/dxCQ==</wsse:N
once>
<wsu:Created>2013-06-07T18:21:02.700z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
<ser:Profile>
<ser:Name>Fiberweb</ser:Name>
<ser:Client>FiberwebSOAPHarness,1.1.0.0</ser:Client>
<ser:Adapter>FiberwebSOAPAdapter</ser:Adapter>
<ser:Machine>CORP</ser:Machine>
</ser:Profile>
</soapenv:Header>
<soapenv:Body>
<ser:GetTaxHistory>
<ser:GetTaxHistoryRequest>
<ser:CompanyCode>Fiberweb</ser:CompanyCode>
<ser:DocType>SalesInvoice</ser:DocType>
<ser:DocCode>10003146</ser:DocCode>
<ser:DetailLevel>Summary</ser:DetailLevel>
</ser:GetTaxHistoryRequest>
</ser:GetTaxHistory>
</soapenv:Body>
</soapenv:Envelope>
Then the correct SOAPAction and end point on the Post in the RPG are:
rc = http_url_post_xml(
'https://development.avalara.net/Tax/TaxSvc.asmx'
: %addr(SOAP) + 2
: %len(SOAP)
: *NULL
: %paddr(Incoming)
: %addr(atin)
: HTTP_TIMEOUT
: HTTP_USERAGENT
: 'text/xml'
: 'http://avatax.avalara.com/services/GetTaxHistory');
The correct response is received and is easily parsed to get the
information needed.
Thanks
Laura
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------