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

EBCDIC - AXCII translation issues



   I am trying to debug a failed attempt to contact a web service (log
   attached).



   One of the things I have noticed with a quick look over the log is
   what appears to be an EBCDIC/ASCII translation issue.



   My RPG program is writing



   <consignments soapenc:arrayType="ns2:Consignment[1]"



   but in the log I found



   <consignments soapenc:arrayType="ns2:Consignment£1]"



   the open square bracket has been translated as £ (Sterling currency
   symbol).



   Our iSeries system value are



   QCCSID  = 65535

   QCNTRYID = GB

   QCURSYM = £



   Other translation functions (FTP, iSeries access data transfer etc)
   are not giving us problems.



   Any suggestions ?

   Clive Johnson
   RPG Developer

   KURT GEIGER LIMITED
   75 Bermondsey Street, London, SE1 3XF
   t: +44 (0)207 546 1888 dl: +44 0207 546 1892
   f: +44 (0)207 546 1880 m: +44
   [1]WWW.KURTGEIGER.COM



   **********************************************************************
   *
   This message has been sent via the Internet. Internet communications
   are not secure against interception or modification. Kurt Geiger
   Limited therefore cannot guarantee that this message has not been
   modified in transit.
   This message and any files transmitted with it are confidential and
   intended solely for the use of the addressee. If you have received
   this
   message in error please notify the sender and destroy your copies of
   the message and any attached files.
   Kurt Geiger Limited
   Registered in England and Wales
   Company Number 968046
   Registered Office:
   75 Bermondsey Street
   Borough
   London
   SE1 3XF
   **********************************************************************
   *

References

   1. http://www.kurtgeiger.com/
HTTPAPI Ver 1.24beta11 released 2010-09-09
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'00000136'
DNS default domain: KURTGEIGER.COM
DNS server found: 10.40.1.31
DNS server found: 10.40.1.30
http_persist_post(): entered
http_long_ParseURL(): entered
do_oper(POST): entered
POST /dm/services/AllocationService HTTP/1.1
Host: test1.metapack.com
User-Agent: http-api/1.24
Content-Type: text/xml
SOAPAction: http://test1.metapack.com/createAndAllocateConsignments
Content-Length: 6159
Authorization: Basic dTAwMTQyOnNob2VsYWNl


senddoc(): entered
<?xml version="1.0" encoding="iso-8859-1" standalone="no"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><soapenv:Body><ns1:createAndAllocateConsignments soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; xmlns:ns1="urn:DeliveryManager/services"><consignments soapenc:arrayType="ns2:Consignment£1]" xsi:type="soapenc:Array" xmlns:ns2="urn:DeliveryManager/types" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";><item xsi:type="ns2:Consignment"><alreadyPalletisedGoodsFlag xsi:type="xsd:boolean">false</alreadyPalletisedGoodsFlag><cardNumber xsi:type="soapenc:string" xsi:nil="true"/><carrierCode xsi:type="soapenc:string" xsi:nil="true"/><carrierConsignmentCode xsi:type="soapenc:string" xsi:nil="true"/><carrierName xsi:type="soapenc:string" xsi:nil="true"/><carrierServiceCode xsi:type="soapenc:string" xsi:nil="true"/><carrierServiceName xsi:type="soapenc:string" xsi:nil="true"/><cartonNumber xsi:type="soapenc:string" xsi:nil="true"/><consignmentCode xsi:type="soapenc:string" xsi:nil="true"/><consignmentLevelDetailsFlag xsi:type="xsd:boolean">true</consignmentLevelDetailsFlag><consignmentValue xsi:type="xsd:double">0.0</consignmentValue><consignmentWeight xsi:type="xsd:double">0.1</consignmentWeight><custom1 xsi:type="soapenc:string" xsi:nil="true"/><custom2 xsi:type="soapenc:string" xsi:nil="true"/><custom3 xsi:type="soapenc:string" xsi:nil="true"/><custom4 xsi:type="soapenc:string" xsi:nil="true"/><custom5 xsi:type="soapenc:string" xsi:nil="true"/><custom6 xsi:type="soapenc:string" xsi:nil="true"/><custom7 xsi:type="soapenc:string" xsi:nil="true"/><custom8 xsi:type="soapenc:string" xsi:nil="true"/><custom9 xsi:type="soapenc:string" xsi:nil="true"/><custom10 xsi:type="soapenc:string" xsi:nil="true"/><cutOffDate xsi:type="xsd:dateTime" xsi:nil="true"/><deliveryPrice xsi:type="xsd:double">0.0</deliveryPrice><despatchDate xsi:type="xsd:dateTime" xsi:nil="true"/><earliestDeliveryDate xsi:type="xsd:dateTime" xsi:nil="true"/><fragileGoodsFlag xsi:type="xsd:boolean">false</fragileGoodsFlag><guaranteedDeliveryDate xsi:type="xsd:dateTime" xsi:nil="true"/><hazardousGoodsFlag xsi:type="xsd:boolean">false</hazardousGoodsFlag><insuranceValue xsi:type="xsd:double">0.0</insuranceValue><liquidGoodsFlag xsi:type="xsd:boolean">false</liquidGoodsFlag><maxDimension xsi:type="xsd:double">0.0</maxDimension><moreThanOneMetreGoodsFlag xsi:type="xsd:boolean">false</moreThanOneMetreGoodsFlag><moreThanTwentyFiveKgGoodsFlag xsi:type="xsd:boolean">false</moreThanTwentyFiveKgGoodsFlag><orderNumber xsi:type="soapenc:string">110509001</orderNumber><parcelCount xsi:type="xsd:int">1</parcelCount><parcels soapenc:arrayType="ns2:Parcel£1]" xsi:type="soapenc:Array"><item xsi:type="ns2:Parcel"><code xsi:type="soapenc:string" xsi:nil="true"/><dutyPaid xsi:type="xsd:double">0.0</dutyPaid><number xsi:type="xsd:int">0</number><parcelDepth xsi:type="xsd:double">0.0</parcelDepth><parcelHeight xsi:type="xsd:double">0.0</parcelHeight><parcelValue xsi:type="xsd:double">0.0</parcelValue><parcelWeight xsi:type="xsd:double">0.0</parcelWeight><parcelWidth xsi:type="xsd:double">0.0</parcelWidth><products xsi:type="ns2:Product" xsi:nil="true"/></item></parcels><pickTicketNumber xsi:type="soapenc:string" xsi:nil="true"/><pickupPoint xsi:type="soapenc:string" xsi:nil="true"/><podRequired xsi:type="soapenc:string" xsi:nil="true"/><properties xsi:type="ns2:Property" xsi:nil="true"/><recipientAddress xsi:type="ns2:Address"><countryCode xsi:type="soapenc:string">UK</countryCode><line1 xsi:type="soapenc:string">1 ROCKY ROAD</line1><line2 xsi:type="soapenc:string">BEDROCK</line2><line3 xsi:type="soapenc:string"></line3><line4 xsi:type="soapenc:string"></line4><postCode xsi:type="soapenc:string">W11 1AA</postCode><type xsi:type="soapenc:string" xsi:nil="true"/></recipientAddress><recipientCode xsi:type="soapenc:string" xsi:nil="true"/><recipientContactPhone xsi:type="soapenc:string">02075461892</recipientContactPhone><recipientEmail xsi:type="soapenc:string">clive.johnson@xxxxxxxxxxxxxx</recipientEmail><recipientMobilePhone xsi:type="soapenc:string">07890123456</recipientMobilePhone><recipientName xsi:type="soapenc:string">FRED FLINTSTONE</recipientName><recipientNotificationType xsi:type="soapenc:string" xsi:nil="true"/><recipientPhone xsi:type="soapenc:string" xsi:nil="true"/><recipientVatNumber xsi:type="soapenc:string" xsi:nil="true"/><senderAddress xsi:type="ns2:Address"><countryCode xsi:type="soapenc:string">UK</countryCode><line1 xsi:type="soapenc:string">75 BERMONDSEY STREET</line1><line2 xsi:type="soapenc:string">LONDON</line2><line3 xsi:type="soapenc:string"></line3><line4 xsi:type="soapenc:string"></line4><postCode xsi:type="soapenc:string">SE1 3XF</postCode><type xsi:type="soapenc:string" xsi:nil="true"/></senderAddress><senderCode xsi:type="soapenc:string">CHA</senderCode><senderContactPhone xsi:type="soapenc:string">01234567890</senderContactPhone><senderEmail xsi:type="soapenc:string">clivejohnson@xxxxxxxxx</senderEmail><senderMobilePhone xsi:type="soapenc:string">07070707070</senderMobilePhone><senderName xsi:type="soapenc:string">KURT GEIGER LTD</senderName><senderNotificationType xsi:type="soapenc:string" xsi:nil="true"/><senderPhone xsi:type="soapenc:string" xsi:nil="true"/><senderVatNumber xsi:type="soapenc:string" xsi:nil="true"/><shipmentTypeCode xsi:type="soapenc:string" xsi:nil="true"/><shippingAccount xsi:type="soapenc:string" xsi:nil="true"/><signatoryOnCustoms xsi:type="soapenc:string" xsi:nil="true"/><specialInstructions1 xsi:type="soapenc:string" xsi:nil="true"/><specialInstructions2 xsi:type="soapenc:string" xsi:nil="true"/><status xsi:type="soapenc:string" xsi:nil="true"/><termsOfTradeCode xsi:type="soapenc:string" xsi:nil="true"/><transactionType xsi:type="soapenc:string" xsi:nil="true"/><twoManLiftFlag xsi:type="xsd:boolean">false</twoManLiftFlag></item></consignments><filter xsi:type="ns3:AllocationFilter" xsi:nil="true" xmlns:ns3="urn:DeliveryManager/types"/></ns1:createAndAllocateConsignments></soapenv:Body></soapenv:Envelope>
recvresp(): entered
HTTP/1.1 500 Internal Server Error
Server: Apache-Coyote/1.1
Content-Type: text/xml;charset=utf-8
Transfer-Encoding: chunked
Date: Mon, 09 May 2011 14:46:13 GMT
Connection: close


SetError() #13: HTTP/1.1 500 Internal Server Error
recvresp(): end with 500
recvdoc parms: chunked 0
header_load_cookies() entered
recvchunk(): entered
get_chunk_size(): entered
23d

chunk size = 573
get_chunk_size returned 573
calling comm_blockread
<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><soapenv:Body><soapenv:Fault><faultcode>soapenv:Server.userException</faultcode><faultstring>java.lang.IllegalArgumentException: Malformed arrayTypeValue '{urn:DeliveryManager/types}Consignment&#xA3;1]'</faultstring><detail><ns1:hostname xmlns:ns1="http://xml.apache.org/axis/";>MP5APP10</ns1:hostname></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>
comm_blockread returned 573


get_chunk_size(): entered
0

chunk size = 0
get_chunk_size returned 0
SetError() #13: HTTP/1.1 500 Internal Server Error
http_close(): entered
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------