[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Difference Between HTTPAPI Versions for Program Creation vs. Program Execution



I'm working with a program that accesses a web service that I've used
for years. I modified this program (originally written in 2008) to do
some new things. The production code was created with HTTPAPI version
1.23. That's the version of HTTPAPI that's on the production system. I
loaded version 1.24 beta on the development system because I was
working with WSDL2RPG. I modified and created the program with version
1.24 beta. Shipped the program to production and I'm getting a bad
request back from the web service provider. The original program (on
production) still works fine. The modified program (on development)
works fine. Same program and same data in both cases.

Question: Do I need to create the program with the same version of
HTTPAPI that is on the system that's running the program?

I guess that makes sense, but I would like some confirmation. I think
I'll create the program on development using version 1.23, ship it to
production, and test it again. I've attached the httpapi debug log and
the send and receive XML from both system. I've sanitized for my
protection. :)

Thanks!

- Michael
Development Sent:

<?xml version="1.0" ?><exacttarget><authorization><username>
abcdefghijklmnopqrADMIN</username><password>password</passwo
rd></authorization><system><system_name>triggeredsend</syste
m_name><action>add</action><TriggeredSend xmlns:xsi='http://
www.w3.org/2001/XMLSchema-instance' xmlns:xsd='http://www.w3
.org/2001/XMLSchema' xmlns='http://exacttarget.com/wsdl/part
nerAPI'><TriggeredSendDefinition><CustomerKey>ABC Triggered 
Send Thank You</CustomerKey></TriggeredSendDefinition><Subsc
ribers><SubscriberKey>XXXXX@xxxxxxxxxx</SubscriberKey><Email
Address>XXXXX@xxxxxxxxxx</EmailAddress><Attributes><Name>Ema
il Address</Name><Value>XXXXX@xxxxxxxxxx</Value></Attributes
><Attributes><Name>Full Name</Name><Value>MICHAEL RYAN</Valu
e></Attributes><Attributes><Name>First Name</Name><Value>MIC
HAEL</Value></Attributes><Attributes><Name>Last Name</Name><
Value>RYAN</Value></Attributes><Attributes><Name>Address</Na
me><Value>6500 14 MILE RD</Value></Attributes><Attributes></
Attributes><Attributes><Name>City</Name><Value>WARREN</Value
></Attributes><Attributes><Name>State</Name><Value>MI</Value
></Attributes><Attributes><Name>Zip Code</Name><Value>48092<
/Value></Attributes><Attributes></Attributes><Attributes></A
ttributes><Attributes></Attributes><Attributes></Attributes>
<Attributes></Attributes><Attributes></Attributes><Attribute
s></Attributes><Attributes><Name>ABC Invoice Number</Name><V
alue>21-971614</Value></Attributes><Attributes><Name>MetroCo
de</Name><Value>505</Value></Attributes><Attributes><Name>La
stStoreManagersName</Name><Value>Some Store Manager</Value><
/Attributes><Attributes><Name>LastStorePurchaseName</Name><V
alue>Warren</Value></Attributes><Attributes><Name>Store Phon
e</Name><Value>(586) 939-2100</Value></Attributes><Attribute
s><Name>Salesperson1</Name><Value>Some Sales Persn</Value></
Attributes><Attributes><Name>Email Source</Name><Value>P</Va
lue></Attributes></Subscribers></TriggeredSend></system></
exacttarget>                                              

Development Received:
<?xml version='1.0'?><exacttarget><system><triggeredse
nd><triggered_send_info>Triggered Send was added successfull
y</triggered_send_info><triggered_send_description>0</trigge
red_send_description></triggeredsend></system></exacttarge
t>                                                        

Production Sent:
<?xml version="1.0" ?><exacttarget><authorization><username>
abcdefghijklmnopqrADMIN</username><password>password</passwo
rd></authorization><system><system_name>triggeredsend</syste
m_name><action>add</action><TriggeredSend xmlns:xsi='http://
www.w3.org/2001/XMLSchema-instance' xmlns:xsd='http://www.w3
.org/2001/XMLSchema' xmlns='http://exacttarget.com/wsdl/part
nerAPI'><TriggeredSendDefinition><CustomerKey>ABC Triggered 
Send Thank You</CustomerKey></TriggeredSendDefinition><Subsc
ribers><SubscriberKey>XXXXX@xxxxxxxxxx</SubscriberKey><Email
Address>XXXXX@xxxxxxxxxx</EmailAddress><Attributes><Name>Ema
il Address</Name><Value>XXXXX@xxxxxxxxxx</Value></Attributes
><Attributes><Name>Full Name</Name><Value>MICHAEL RYAN</Valu
e></Attributes><Attributes><Name>First Name</Name><Value>MIC
HAEL</Value></Attributes><Attributes><Name>Last Name</Name><
Value>RYAN</Value></Attributes><Attributes><Name>Address</Na
me><Value>6500 14 MILE RD</Value></Attributes><Attributes></
Attributes><Attributes><Name>City</Name><Value>WARREN</Value
></Attributes><Attributes><Name>State</Name><Value>MI</Value
></Attributes><Attributes><Name>Zip Code</Name><Value>48092<
/Value></Attributes><Attributes></Attributes><Attributes></A
ttributes><Attributes></Attributes><Attributes></Attributes>
<Attributes></Attributes><Attributes></Attributes><Attribute
s></Attributes><Attributes><Name>ABC Invoice Number</Name><V
alue>21-971614</Value></Attributes><Attributes><Name>MetroCo
de</Name><Value>505</Value></Attributes><Attributes><Name>La
stStoreManagersName</Name><Value>Some Store Manager</Value><
/Attributes><Attributes><Name>LastStorePurchaseName</Name><V
alue>Warren</Value></Attributes><Attributes><Name>Store Phon
e</Name><Value>(586) 939-2100</Value></Attributes><Attribute
s><Name>Salesperson1</Name><Value>Some Sales Persn</Value></
Attributes><Attributes><Name>Email Source</Name><Value>P</Va
lue></Attributes></Subscribers></TriggeredSend></system></
exacttarget>                                              

Production Received:
<h1>Bad Request</h1>
HTTPAPI Ver 1.24beta11 released 2010-09-09
OS/400 Ver V5R4M0

New iconv() objects set, PostRem=819. PostLoc=0. ProtRem=819. ProtLoc=0
https_init(): entered
-------------------------------------------------------------------------------------
Dump of local-side certificate information:
-------------------------------------------------------------------------------------
New iconv() objects set, PostRem=819. PostLoc=0. ProtRem=819. ProtLoc=0
http_persist_open(): entered
http_long_ParseURL(): entered
DNS resolver retrans: 2
DNS resolver retry  : 2
DNS resolver options: x'00000136'
DNS default domain: ARTVAN.COM
DNS server found: 192.168.1.2
-------------------------------------------------------------------------------------
Dump of server-side certificate information:
-------------------------------------------------------------------------------------
Cert Validation Code = 0
-----BEGIN CERTIFICATE-----
MIIDbzCCAtigAwIBAgIQN0xdurJKipYomcw+yaBlBDANBgkqhkiG9w0BAQUFADCB
zjELMAkGA1UEBhMCWkExFTATBgNVBAgTDFdlc3Rlcm4gQ2FwZTESMBAGA1UEBxMJ
Q2FwZSBUb3duMR0wGwYDVQQKExRUaGF3dGUgQ29uc3VsdGluZyBjYzEoMCYGA1UE
CxMfQ2VydGlmaWNhdGlvbiBTZXJ2aWNlcyBEaXZpc2lvbjEh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Locality: Indianapolis
Org Unit: ExactTarget, Inc.
Issuer CN: Thawte Premium Server CA
Issuer Country: ZA
Issuer State/Province: Western Cape
Issuer Locality: Cape Town
Issuer Org: Thawte Consulting cc
Issuer Org Unit: Certification Services Division
Version: 03
not before: 20090408190000
not after: 20140708185959
pub key alg: 1.2.840.113549.1.1.5

Protocol Used: TLS Version 1
http_persist_post(): entered
http_long_ParseURL(): entered
do_oper(POST): entered
POST /integrate.aspx HTTP/1.1
Host: api.dc1.exacttarget.com
User-Agent: http-api/1.24
Content-Type: application/x-www-form-urlencoded
Content-Length: 2689
Connection: close


senddoc(): entered
qf=xml&xml=%3C%3Fxml+version%3D%221.0%22+%3F%3E%3Cexacttarget%3E%3Cauthorization%3E%3Cusername%3EabcdefghijklmnopqrADMIN%3C%2Fusername%3E%3Cpassword%3E%40pass%40rd%3C%2Fpassword%3E%3C%2Fauthorization%3E%3Csystem%3E%3Csystem_name%3Etriggeredsend%3C%2Fsystem_name%3E%3Caction%3Eadd%3C%2Faction%3E%3CTriggeredSend+xmlns%3Axsi%3D%27http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema-instance%27+xmlns%3Axsd%3D%27http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%27+xmlns%3D%27http%3A%2F%2Fexacttarget.com%2Fwsdl%2FpartnerAPI%27%3E%3CTriggeredSendDefinition%3E%3CCustomerKey%3EPOS+Triggered+Send+Thank+You%3C%2FCustomerKey%3E%3C%2FTriggeredSendDefinition%3E%3CSubscribers%3E%3CSubscriberKey%3EXXXXX%40YYYYYY.COM%3C%2FSubscriberKey%3E%3CEmailAddress%3EXXXXX%40YYYYYY.COM%3C%2FEmailAddress%3E%3CAttributes%3E%3CName%3EEmail+Address%3C%2FName%3E%3CValue%3EXXXXX%40YYYYYY.COM%3C%2FValue%3E%3C%2FAttributes%3E%3CAttributes%3E%3CName%3EFull+Name%3C%2FName%3E%3CValue%3EMICHAEL+RYAN%3C%2FValue%3E%3C%2FAttributes%3E%3CAttributes%3E%3CName%3EFirst+Name%3C%2FName%3E%3CValue%3EMICHAEL%3C%2FValue%3E%3C%2FAttributes%3E%3CAttributes%3E%3CName%3ELast+Name%3C%2FName%3E%3CValue%3ERYAN%3C%2FValue%3E%3C%2FAttributes%3E%3CAttributes%3E%3CName%3EAddress%3C%2FName%3E%3CValue%3E6500+14+MILE+RD%3C%2FValue%3E%3C%2FAttributes%3E%3CAttributes%3E%3C%2FAttributes%3E%3CAttributes%3E%3CName%3ECity%3C%2FName%3E%3CValue%3EWARREN%3C%2FValue%3E%3C%2FAttributes%3E%3CAttributes%3E%3CName%3EState%3C%2FName%3E%3CValue%3EMI%3C%2FValue%3E%3C%2FAttributes%3E%3CAttributes%3E%3CName%3EZip+Code%3C%2FName%3E%3CValue%3E48092%3C%2FValue%3E%3C%2FAttributes%3E%3CAttributes%3E%3C%2FAttributes%3E%3CAttributes%3E%3C%2FAttributes%3E%3CAttributes%3E%3C%2FAttributes%3E%3CAttributes%3E%3C%2FAttributes%3E%3CAttributes%3E%3C%2FAttributes%3E%3CAttributes%3E%3C%2FAttributes%3E%3CAttributes%3E%3C%2FAttributes%3E%3CAttributes%3E%3CName%3EPOS+Invoice+Number%3C%2FName%3E%3CValue%3E21-971614%3C%2FValue%3E%3C%2FAttributes%3E%3CAttributes%3E%3CName%3EMetroCode%3C%2FName%3E%3CValue%3E505%3C%2FValue%3E%3C%2FAttributes%3E%3CAttributes%3E%3CName%3ELastStoreManagersName%3C%2FName%3E%3CValue%3ESome Store Manager%3C%2FValue%3E%3C%2FAttributes%3E%3CAttributes%3E%3CName%3ELastStorePurchaseName%3C%2FName%3E%3CValue%3EWarren%3C%2FValue%3E%3C%2FAttributes%3E%3CAttributes%3E%3CName%3EStore+Phone%3C%2FName%3E%3CValue%3E(586)+939-2100%3C%2FValue%3E%3C%2FAttributes%3E%3CAttributes%3E%3CName%3ESalesperson1%3C%2FName%3E%3CValue%3ESome Sales+Persn%3C%2FValue%3E%3C%2FAttributes%3E%3CAttributes%3E%3CName%3EEmail+Source%3C%2FName%3E%3CValue%3EP%3C%2FValue%3E%3C%2FAttributes%3E%3C%2FSubscribers%3E%3C%2FTriggeredSend%3E%3C%2Fsystem%3E%0D%0A%3C%2Fexacttarget%3E%0D%0A
recvresp(): entered
HTTP/1.1 200 OK
Connection: close
Date: Wed, 23 Nov 2011 14:12:43 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 4.0.30319
Transfer-Encoding: chunked
Set-Cookie: ASP.NET_SessionId=ujnkmm4tuzgffsvywpqs23wd; path=/; HttpOnly
Cache-Control: private
Content-Type: text/xml; charset=utf-8


SetError() #13: HTTP/1.1 200 OK
recvresp(): end with 200
recvdoc parms: chunked 0
header_load_cookies() entered
cookie_parse() entered
cookie =  ASP.NET_SessionId=ujnkmm4tuzgffsvywpqs23wd; path=/; HttpOnly
cookie attr ASP.NET_SessionId=ujnkmm4tuzgffsvywpqs23wd
cookie attr path=/
cookie attr HttpOnly=
recvchunk(): entered
get_chunk_size(): entered
f4

chunk size = 244
get_chunk_size returned 244
calling comm_blockread
<?xml version='1.0'?>
<exacttarget>
<system>
<triggeredsend><triggered_send_info>Triggered Send was added successfully</triggered_send_info><triggered_send_description>0</triggered_send_description></triggeredsend></system>
</exacttarget>

comm_blockread returned 244


get_chunk_size(): entered
0

chunk size = 0
get_chunk_size returned 0
http_close(): entered
HTTPAPI Ver 1.23 released 2008-04-24
OS/400 Ver V5R4M0

New iconv() objects set, PostRem=819. PostLoc=0. ProtRem=819. ProtLoc=0
https_init(): entered
-------------------------------------------------------------------------------------
Dump of local-side certificate information:
-------------------------------------------------------------------------------------
New iconv() objects set, PostRem=819. PostLoc=0. ProtRem=819. ProtLoc=0
http_persist_open(): entered
http_long_ParseURL(): entered
DNS resolver retrans: 2
DNS resolver retry  : 2
DNS resolver options: x'00000136'
DNS default domain: ARTVAN.COM
DNS server found: 192.168.1.2
-------------------------------------------------------------------------------------
Dump of server-side certificate information:
-------------------------------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AOBgQBv3eJNbiqK8X+CE6Pq
lyXD8rXG1/62aReorkrc0Z5eWBNS7+Epjs/f746mTaq+VaU8nIy5E19M5ZWmVrj+
+L3ukgT+5QQftuIOaj/n8dqVsdJ8nqiIJolFI1/XNrUKPM1RkHHgJ4UQSx0eHo70
ggUyTTv/nQxeU6aR/Pi/DicG8A==
-----END CERTIFICATE-----
Serial Number: 37:4C:5D:BA:B2:4A:8A:96:28:99:CC:3E:C9:A0:65:04
Common Name: api.dc1.exacttarget.com
Country: US
State/Province: Indiana
Locality: Indianapolis
Org Unit: ExactTarget, Inc.
Issuer CN: Thawte Premium Server CA
Issuer Country: ZA
Issuer State/Province: Western Cape
Issuer Locality: Cape Town
Issuer Org: Thawte Consulting cc
Issuer Org Unit: Certification Services Division
Version: 03
not before: 20090408190000
not after: 20140708185959
pub key alg: 1.2.840.113549.1.1.5

Protocol Used: TLS Version 1
http_persist_post(): entered
http_long_ParseURL(): entered
do_post(): entered
POST /integrate.aspx HTTP/1.1
Host: api.dc1.exacttarget.com
User-Agent: 
http-api/1.24
Content-Type: ?application/x-www-form-urlencoded
Expect: 100-continue
Content-Length: 2689
Connection: close


recvresp(): entered
HTTP/1.1 400 Bad Request
Content-Type: text/html
Date: Wed, 23 Nov 2011 14:22:26 GMT
Connection: close
Content-Length: 20


SetError() #13: HTTP/1.1 400 Bad Request
recvdoc parms: identity 20
header_load_cookies() entered
recvdoc(): entered
SetError() #0:
<h1>Bad Request</h1>
SetError() #13: HTTP/1.1 400 Bad Request
http_close(): entered
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------