[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Avalara GetHistory soap call
Hi,
I am trying to execute a soap call to avalara to retrieve the
gethistory information. We have other calls to Avalara working, but
they are in REST and not SOAP.
Below I have included the xml, the error that was returned and the log
from the iSeries from when the webservice is executed.
Please let me know if I need to include any other information.
The xml follows. If I post this in SOAP UI it is executed correctly
and the summary information is returned.
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ser="http://avatax.avalara.com/services">
<soapenv:Header>
<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>
<ser:Security
xmlns:ser="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-secu
rity-secext-1.0.xsd">
<ser:UsernameToken wsu:Id="UsernameToken-7"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-secu
rity-utility-1.0.xsd">
<ser:Username>110008529</ser:Username>
<ser:Password
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-
token-profile-1.0#PasswordText">9A460B80D5ADDC3</ser:Password>
</ser:UsernameToken>
</ser:Security>
</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>
The error received is:
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<s:Fault>
<faultcode
xmlns:a="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecu
rity-secext-1.0.xsd">a:InvalidSecurity</faultcode>
<faultstring xml:lang="en-US">An error occurred when verifying security
for the message.</faultstring>
</s:Fault>
</s:Body>
</s:Envelope>
HTTPAPI Ver 1.24 released 2012-01-23
OS/400 Ver V5R4M0
New iconv() objects set, PostRem=819. PostLoc=0. ProtRem=819. ProtLoc=0
http_setauth(): entered
http_persist_open(): entered
http_long_ParseURL(): entered
DNS resolver retrans: 2
DNS resolver retry : 2
DNS resolver options: x'000001B6'
DNS default domain: intranet.bba
DNS server found: 10.202.210.29
DNS server found: 10.210.210.29
https_init(): entered
-----------------------------------------------------------------------
--------------
Dump of local-side certificate information:
-----------------------------------------------------------------------
--------------
-----------------------------------------------------------------------
--------------
Dump of server-side certificate information:
-----------------------------------------------------------------------
--------------
Cert Validation Code = 0
-----BEGIN CERTIFICATE-----
MIIFdzCCBF+gAwIBAgIQMV7PNH+Hg+Nu/c24S6/sizANBgkqhkiG9w0BAQUFADCB
tTELMAkGA1UEBhMCVVMxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMR8wHQYDVQQL
ExZWZXJpU2lnbiBUcnVzdCBOZXR3b3JrMTswOQYDVQQLEzJUZXJtcyBvZiB1c2Ug
YXQgaHR0cHM6Ly93d3cudmVyaXNpZ24uY29tL3JwYSAoYykxMDEvMC0GA1UEAxMm
VmVyaVNpZ24gQ2xhc3MgMyBTZWN1cmUgU2VydmVyIENBIC0gRzMwHhcNMTMwMzI5
MDAwMDAwWhcNMTYwMzI4MjM1OTU5WjCBrTELMAkGA1UEBhMCVVMxEzARBgNVBAgT
Cldhc2hpbmd0b24xGjAYBgNVBAcUEUJhaW5icmlkZ2UgSXNsYW5kMRYwFAYDVQQK
FA1BdmFsYXJhLCBJbmMuMTMwMQYDVQQLFCpUZXJtcyBvZiB1c2UgYXQgd3d3LnZl
cmlzaWduLmNvbS9ycGEgKGMpMDUxIDAeBgNVBAMUF2RldmVsb3BtZW50LmF2YWxh
cmEubmV0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAl7xjtzsC6oFO
xl44Lm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gCDg1on+kS7xlUorA1ChBSr99DdGQ3
/GtgSX3PMNfXZG/T+582BNe94tKwY/TW67XrI7jBQfc3vRayDkvFEPCLjgT2pziB
N12hl/wdCEY1zliFjbj7yjoVbLlGSNrtQH4HSIP1WPQwoNY5i7SxFLYeGRjdax+F
0R2nRgcJiDeZmSI=
-----END CERTIFICATE-----
Serial Number: 31:5E:CF:34:7F:87:83:E3:6E:FD:CD:B8:4B:AF:EC:8B
Common Name: development.avalara.net
Country: US
State/Province: Washington
Locality: Bainbridge Island
Org Unit: Avalara, Inc.
Org: Terms of use at www.verisign.com/rpa (c)05
Issuer CN: VeriSign Class 3 Secure Server CA - G3
Issuer Country: US
Issuer Org: VeriSign, Inc.
Issuer Org Unit: Terms of use at https://www.verisign.com/rpa (c)10,
OU=VeriSign Trust Network
Version: 03
not before: 20130328200000
not after: 20160328195959
pub key alg: 1.2.840.113549.1.1.5
Protocol Used: TLS Version 1
http_persist_post(): entered
http_persist_req(POST) entered.
http_long_ParseURL(): entered
do_oper(POST): entered
There are 0 cookies in the cache
POST /Tax/TaxSvc.asmx HTTP/1.1
Host: development.avalara.net
User-Agent: http-api/1.24
Content-Type: text/xml
SOAPAction: https://development.avalara.net/Tax/TaxSvc.asmx
Content-Length: 1105
Authorization: Basic MTEwMDA4NTI5NDo5QTQ2MEI4MEQ1QUREQzNB
senddoc(): entered
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ser="http://avatax.avalara.com/services"><soapenv:Header><ser:Pro
file><ser:Name>Fiberweb</ser:Name><ser:Client>FiberwebSOAPHarness,1.1.0
.0</ser:Client><ser:Adapter>FiberwebSOAPAdapter</ser:Adapter><ser:Machi
ne>CORP</ser:Machine></ser:Profile><ser:Security
xmlns:ser="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-secu
rity-secext-1.0.xsd"><ser:UsernameToken wsu:Id="UsernameToken-7"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-secu
rity-utility-1.0.xsd"><ser:Username>1100085294</ser:Username><ser:Passw
ord
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-
token-profile-1.0#PasswordText">9A460B80D5ADDC3A</ser:Password></ser:Us
ernameToken></ser:Security></soapenv:Header><soapenv:Body><ser:GetTaxHi
story><ser:GetTaxHistoryRequest><ser:CompanyCode>Fiberweb</ser:CompanyC
ode><ser:DocType>SalesInvoice</ser:DocType><ser:DocCode>10003146</ser:D
ocCode><ser:DetailLevel>Summary</ser:DetailLevel></ser:GetTaxHistoryReq
uest></ser:GetTaxHistory></soapenv:Body></soapenv:Envelope>
recvresp(): entered
HTTP/1.1 500 Internal Server Error
Content-Length: 347
Content-Type: text/xml; charset=utf-8
X-Powered-By: ASP.NET
Date: Sun, 02 Jun 2013 22:44:16 GMT
Set-Cookie:
TS6198e2=56dd2f8e6d21b3ff03af3e735e15ae0e15177ab9d59411ff51abcac0;
Path=/
Set-Cookie:
TS6198e2_28=88ed841b8b03c5d22179b5854764541b15177ab9d59411ff00000000000
000000051abcac0172d88fd3f7a7df8; Path=/
SetError() #13: HTTP/1.1 500 Internal Server Error
recvresp(): end with 500
recvdoc parms: identity 347
header_load_cookies() entered
cookie_parse() entered
cookie =
TS6198e2=56dd2f8e6d21b3ff03af3e735e15ae0e15177ab9d59411ff51abcac0;
Path=/
cookie attr
TS6198e2=56dd2f8e6d21b3ff03af3e735e15ae0e15177ab9d59411ff51abcac0
cookie attr Path=/
cookie_parse() entered
cookie =
TS6198e2_28=88ed841b8b03c5d22179b5854764541b15177ab9d59411ff00000000000
000000051abcac0172d88fd3f7a7df8; Path=/
cookie attr
TS6198e2_28=88ed841b8b03c5d22179b5854764541b15177ab9d59411ff00000000000
000000051abcac0172d88fd3f7a7df8
cookie attr Path=/
recvdoc(): entered
SetError() #0:
<s:Envelope
xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><s:Fault><f
aultcode
xmlns:a="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecu
rity-secext-1.0.xsd">a:InvalidSecurity</faultcode><faultstring
xml:lang="en-US">An error occurred when verifying security for the
message.</faultstring></s:Fault></s:Body></s:Envelope>
SetError() #13: HTTP/1.1 500 Internal Server Error
http_close(): entered
Thanks,
Laura Hamway
757-754-1334
www.phoenixbcinc.com
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------