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

Re: REST WS Problem



   I'm not 100% sure but you may need to specify�myPointer = %addr(data)
   + 2, or, when you reference myPointer further down, use myPointer +
   2.�   Otherwise you will include the leading two length bytes in the string.

   On Sun, Oct 4, 2015 at 9:44 AM, Donna Herald
   <[1]donna.g.herald@xxxxxxxxx> wrote:

     I tried to follow your example but my program is still not working.
     My data(xml) is not being encoded or added to the end of my url
     string.
     � *. 1 ...+... 2 ...+... 3 ...+... 4 ...+... 5 ...+... 6 ...+... 7
     ...+... 8 ...+... 9
     �*************** Beginning of data
     ***************************************************
     � **
     � ** The intention of the program is to send an xml which could be
     large
     � ** to the java WS.� Sugestion was to use get instead of a post
     and
     get
     � ** would pass back error or success.
     � **
     �H DFTACTGRP(*NO) ACTGRP(*NEW) BNDDIR('HTTPAPI')
     � *
     � /define WEBFORMS
     �D/copy qrpglesrc,httpapi_h
     �D cmd� � � � � � �pr� � � � � � � � �     extpgm('QCMDEXC')
     �D� command� � � � � � � � � � �200A� �const
     �D� length� � � � � � � � � � � �15P 5 const
     �D CRLF� � � � � � C� � � � � � � � �     �CONST(x'0D25')
     �D rc� � � � � � � s� � � � � � �10I 0
     �D msg� � � � � � �s� � � � � � �52A
     �DName+++++++++++ETDsFrom+++To/L+++IDc.Keywords++++++++++++++++++++
     +++++++++Commen
     �D URL� � � � � � �S� � � � � � 200A
     �D Form� � � � � � s� � � � � � � � �     �like(WEBFORM)
     �D XML� � � � � � �s� � � � � �2000A� �varying
     �D data� � � � � � s� � � � � �2000A� �varying
     �D myPointer� � � �s� � � � � � � �*
     �D dataSize� � � � s� � � � � � �10I 0
     � **
     � ** Build URL (*Note this is not a URL that can be exectuted from
     IE)
     � **
     �c� � � � � � � � � �eval� � � URL = (
     �c� � � � � � � � � � � � � �     �'[2]http://cmdev2:9080/print-eor-service/'
     +
     �C� � � � � � � � � � � � � � �'rest/print/')
     � **
     � ** XML for testing - in real program xml will be a paramater
     � **
     �C� � � � � � � � � �eval� � � data = (
     �C� � � � � � � � � � � � � � �'<?xml version="1.0"
     encoding="UTF-8" '
     �CL0N01Factor1+++++++Opcode&ExtExtended-factor2++++++++++++++++++++
     +++++++++C
     �C� � � � � � � � � � � � � � �+'standalone="yes"?>'
     �C� � � � � � � � � � � � � �     �+'<printEORRequestType>'
     �C� � � � � � � � � � � � � �     �+'<CMUserName>dherald</CMUserName>'
     �C� � � � � � � � � � � � � �     �+'<CMPassword>kentucky</CMPassword>'
     �C� � � � � � � � � � � � � � �+'<EORDocument>'
     �C� � � � � � � � � � � � � �     �+'<ClaimNumber>1234567</ClaimNumber>'
     �C� � � � � � � � � � � � � �     �+'<EORNumber>1234567</EORNumber>'
     �C� � � � � � � � � � � � � � �+'</EORDocument>'
     �C� � � � � � � � � � � � � �     �+'</printEORRequestType>' )
     � **
     � ** Turn on debug to capture errors in WRKLNK/TMP/httpdebug
     � ** Set pointer and datasize for data
     � **
     � /free
     � � � � � � � � � � �callp http_debug(*on) ;
     � � � � � � � � � � �myPointer = %addr(data) ;
     � � � � � � � � � � �datasize� = %len(data) ;
     � /end-free
     � **
     � ** Open WEBFORM and attemp to encode data (my big XML)
     � *. 1 ...+... 2 ...+... 3 ...+... 4 ...+... 5 ...+... 6 ...+... 7
     ...+... 8 ...
     � ** In debug I do not see the data being encoded
     � **
     �C� � � � � � � � � �eval� � � Form = WEBFORM_open
     �c� � � � � � � � � �callp� � �WEBFORM_postData( Form
     : myPointer
     �c� � � � � � � � � � � � � � � � � � � � � �     � � � � : dataSize )
     �c� � � � � � � � � �callp� � �WEBFORM_getData(Form)
     �c� � � � � � � � � �callp� � �WEBFORM_SetVar(Form:
     'XML': data)
     � **
     � ** In debug I URL is as was built above without my xml
     � **
     �c� � � � � � � � � �eval� � � URL = (URL +
     WEBFORM_getData(FORM))
     � **
     � /free
     � �http_debug(*ON);
     � /end-free
     � /free
     � � � � � � � � � � �callp http_debug(*on) ;
     � /end-free
     0080.00
     0081.00 c� � � � � � � � � �eval� � � rc =
     http_url_get('URL'
     0082.00 c� � � � � � � � � � � � � �     �:'/tmp/httptest.html')
     0083.00
     0084.00 c*� � � � � � � � � eval� � � rc = http_url_get(
     0085.00 c*
     '[3]http://cmdev2:9080/print-eor-service/' +
     0086.00 C*� � � � � � � � � � � � � �     'rest/print/xml=+
     0087.00 C*� � � � � � � � � � � � � � <?xml
     version="1.0"
     encoding="UTF-8" '
     0088.00 C*� � � � � � � � � � � � � �     +'standalone="yes"?>'
     0089.00 C*� � � � � � � � � � � � � �     +'<printEORRequestType>'
     0090.00 C*
     +'<CMUserName>dherald</CMUserName>'
     0091.00 C*
     +'<CMPassword>kentucky</CMPassword>'
     0092.00 C*� � � � � � � � � � � � � � +'<EORDocument>'
     0093.00 C*
     +'<ClaimNumber>1234567</ClaimNumber>'
     0094.00 C*
     +'<EORNumber>1234567</EORNumber>'
     0095.00 C*� � � � � � � � � � � � � �     +'</EORDocument>'
     0096.00 C*� � � � � � � � � � � � � �     +'</printEORRequestType>':
     0097.00 c*� � � � � � � � � � � � � � � �     �'/tmp/httptest.html'
     0098.00 c*� � � � � � � � � � � � � � : HTTP_TIMEOUT
     0099.00 c*� � � � � � � � � � � � � � : HTTP_USERAGENT
     � �*. 1 ...+... 2 ...+... 3 ...+... 4 ...+... 5 ...+... 6 ...+...
     7
     ...+... 8 ...+... 9 ...+... 0
     0 c*� � � � � � � � � � � � � � :
     'application/x-www-form-urlencoded'
     )
     0
     0 c*� � � � � � � � � eval� � � rc = http_url_get(
     0 c*
     '[4]http://cmdev2:9080/RESTJerseyExample/'� +
     0 c*� � � � � � � � � � � � � � � �     �'rest/hello/John':
     0 c*� � � � � � � � � � � � � � � �     �'/tmp/httptest.html')
     0
     0 c� � � � � � � � � �if� � � � rc = 302
     0 c� � � � � � � � � �eval� � � rc = http_url_get(
     http_redir_loc
     0 c� � � � � � � � � � � � � � � � � � � � � :
     '/tmp/httptest.html')
     0 c� � � � � � � � � �endif
     0
     0 c� � � � � � � � � �if� � � � rc <> 1
     0 c� � � � � � � � � �eval� � � msg = http_error
     0 c� � � � � � � � � �dsply� � � � � � � � �     �msg
     0 c� � � � � � � � � �else
     0 c� � � � � � � � � �callp� � �cmd('DSPF
     ''/tmp/httptest.html''':
     200)
     0 c� � � � � � � � � �endif
     0
     0� **
     CL0N01Factor1+++++++Opcode&ExtFactor2+++++++Result++++++++Len++D+HiL
     oEq..
     c� � � � � � � � � �endif
     c� � � � � � � � � �if� � � � rc <> 1
     c� � � � � � � � � �eval� � � msg = http_error
     c� � � � � � � � � �dsply� � � � � � � � � �msg
     c� � � � � � � � � �else
     c� � � � � � � � � �callp� � �cmd('DSPF
     ''/tmp/httptest.html''': 200)
     c� � � � � � � � � �endif
     �**
     c� � � � � � � � � �eval� � � *inlr = *on
     On 10/4/15, Chris Edmondson <[5]chris@xxxxxxxxxxx> wrote:
     >� � Here's a working example of a USPS address validation, hope
     it helps.
     >� � �     >
     >� � � url =
     '[1][6]http://production.shippingapis.com/ShippingAPI.dll?';
     >� � � xml = �  �  �  �  �  �  �  �
     '<AddressValidateRequest ' + �  �  �     >� � � �  �  �  ��     >� � � �  �  �  �  �  �  �  �  �  �  �
     'USERID="xxxxxxxxxx">'; �  �  �  �     >� � � �  �  �  �  �     >� � � xml = xml + �  �  �  �  �  '<Address ID=' �  �+
     '"0">'; �  �  �  �     >� � � �  �  �  �     >� � � xml = xml + �  �  �  �  �  '<Address1>' �+
     >� � � %trim(adrs2)+'</Address1>';
     >� � � xml = xml + �  �  �  �  �  '<Address2>' �+
     >� � � %trim(adrs)+'</Address2>';�     >� � � xml = xml + �  �  �  �  �  '<City>' �  �  �+
     %trim(city)+
     >� � � '</City>'; �  �     >� � � xml = xml + �  �  �  �  �  '<State>' �  �  +
     %trim(state)+
     >� � � '</State>'; �     >� � � xml = xml + �  �  �  �  �  '<Zip5>' �+
     %trim(zip)+'</Zip5>'; �  �     >� � � �  �  �     >� � � xml = xml + �  �  �  �  �  '<Zip4' �  + ' />'; �
     �  �  �  �  �  �     >� � � �  �  �  �  ��     >� � � xml = xml + �  �  �  �  �  '</Address>' + ''; �  �
     �  �  �  �  �     >� � � �  �  �  �  ��     >� � � xml = xml + �  �  �  �  �
     '</AddressValidateRequest>' + ''; �  �     >� � � �  �  �     >� � � Form = WEBFORM_open(); �  �  �  �  �  �  �  �  �
     ��     >� � � WEBFORM_setVar(Form : 'API' : 'Verify'); ��     >� � � WEBFORM_setVar(Form : 'XML' : xml); �  �  �  �     >� � � �  �  �  �  �  �  �  �  �  �  �  �  �  �
     �  �  �  �  �  �  �  �     >� � � url = url + WEBFORM_getData(Form); �  �  �  ��     >� � � �  �  �  �  �  �  �  �  �  �  �  �  �  �
     �  �  �  �  �  �  �  �     >� � � WEBFORM_Close(Form); �  �  �  �  �  �  �  �  �
     �  ��     >
     >� � On Sun, Oct 4, 2015 at 7:58 AM, Donna Herald
     >� � <[2][7]donna.g.herald@xxxxxxxxx> wrote:
     >
     >� � � Scott,
     >� � � Once the data is encoded how do you add it to the end of
     the url
     >� � � string?�  Is this added like a paramater?
     >� � � Donna
     >� � � On 10/3/15, Scott Klement <[3][8]sk@xxxxxxxxxxxxxxxx>
     wrote:
     >� � � > Donna,
     >� � � >
     >� � � > When data is provided as part of the URL in a GET
     request, it has
     >� � � to be
     >� � � > encoded.�  Otherwise, you will confuse the HTTP server
     (as you've
     >� � � done
     >� � � > here) into thinking your XML document is part of the
     HTTP
     >� � � protocol.
     >� � � >
     >� � � > Please use the "webform" routines to encode your data
     before
     >� � � adding it
     >� � � > to the URL.
     >� � � >
     >� � � >
     >� � � > On 10/3/2015 12:26 PM, Donna Herald wrote:
     >� � � >> Scott,
     >� � � >>
     >� � � >> The java programmer sugested just doing a 'get' passing
     him the
     >� � � xml
     >� � � >> and he can send me back error or success.�  I am not
     sure this
     >� � � will
     >� � � >> work as I belive there is a size limit of a little over
     2K that
     >� � � can be
     >� � � >> sent with a get.�  He created a get and I am getting
     the attached
     >� � � >> error with the get.�  Currently I just have my xml
     hard coded
     >� � � into the
     >� � � >> get.
     >� � � >>
     >� � � >>
     >� � � >>
     >� � � >> On 10/2/15, Scott Klement <[4][9]sk@xxxxxxxxxxxxxxxx>
     wrote:
     >� � � >>> Yep, I agree....
     >� � � >>>
     >� � � >>> Donna, it's important to understand that the string
     >� � � >>> "java.lang.NullPointerException" is not coming from
     HTTPAPI
     >� � � directly.
     >� � � >>> It is being sent by the web service as a description
     of what's
     >� � � wrong.,
     >� � � >>> and HTTPAPI is simply relaying the message to your
     program.�     >� � � �All it
     >� � � >>> tells me is that the Java program on the web service
     server is
     >� � � >>> crashing...�  �you'll need to ask the Java
     programmer to debug
     >� � � his code
     >� � � >>> and see why that's happening.
     >� � � >>>
     >� � � >>>
     >� � � >>>
     >� � � >>>
     >� � � >>> On 10/2/2015 2:40 PM, Michael Ryan wrote:
     >� � � >>>>�  �  �  Talk to your Java developer and find out
     why you're
     >� � � getting
     >� � � >>>>�  �  �  this:� java.lang.NullPointerException
     >� � � >>>>�  �  �  Something is either expected and not
     provided, or
     >� � � provided and not
     >� � � >>>>�  �  �  expected.
     >� � � >>>>
     >� � � >>>>�  �  �  On Fri, Oct 2, 2015 at 3:30 PM, Donna
     Herald
     >� � � >>>>�  �  �  <[1][5][10]donna.g.herald@xxxxxxxxx>
     wrote:
     >� � � >>>>
     >� � � >>>>�  �  �  �  This is what is in the debug text.
     >� � � >>>>�  �  �  �  HTTPAPI Ver 1.23 released 2008-04-24
     >� � � >>>>�  �  �  �  OS/400 Ver V6R1M0
     >� � � >>>>�  �  �  �  New iconv() objects set, PostRem=819.
     PostLoc=0.
     >� � � ProtRem=819.
     >� � � >>>>�  �  �  �  ProtLoc=0
     >� � � >>>>�  �  �  �  http_url_post(): 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:
     [2][6][11]AD.CHURCHMUTUAL.COM
     >� � � >>>>�  �  �  �  DNS server found: 10.20.4.2
     >� � � >>>>�  �  �  �  DNS server found: 10.20.4.3
     >� � � >>>>�  �  �  �  http_persist_post(): entered
     >� � � >>>>�  �  �  �  http_long_ParseURL(): entered
     >� � � >>>>�  �  �  �  do_post(): entered
     >� � � >>>>�  �  �  �  POST /print-eor-service/rest/print/eor
     HTTP/1.1
     >� � � >>>>�  �  �  �  Host: cmdev2:9080
     >� � � >>>>�  �  �  �  User-Agent: http-api/1.23
     >� � � >>>>�  �  �  �  Content-Type: text/xml; charset=utf-8
     >� � � >>>>�  �  �  �  SOAPAction:
     /print-eor-service/rest/print/eor
     >� � � >>>>�  �  �  �  Expect: 100-continue
     >� � � >>>>�  �  �  �  Content-Length: 254
     >� � � >>>>�  �  �  �  recvresp(): entered
     >� � � >>>>�  �  �  �  HTTP/1.1 100 Continue
     >� � � >>>>�  �  �  �  Content-Length: 0
     >� � � >>>>�  �  �  �  Date: Fri, 02 Oct 2015 19:22:38 GMT
     >� � � >>>>�  �  �  �  SetError() #13: HTTP/1.1 100 Continue
     >� � � >>>>�  �  �  �  senddoc(): entered
     >� � � >>>>�  �  �  �  <?xml version="1.0" encoding="UTF-8"
     >� � � >>>>
     >� � � >>>>
     >� � �     standalone="yes"?><printEORRequestType><CMUserName>dherald</CMUserNa
     >� � � >>>>
     >� � � >>>>
     >� � �     me><CMPassword>kentucky</CMPassword><EORDocument><ClaimNumber>123456
     >� � � >>>>
     >� � � >>>>
     >� � �     7</ClaimNumber><EORNumber>1234567</EORNumber></EORDocument></printEO
     >� � � >>>>�  �  �  �  RRequestType>
     >� � � >>>>�  �  �  �  recvresp(): entered
     >� � � >>>>�  �  �  �  HTTP/1.1 500 Internal Server Error
     >� � � >>>>�  �  �  �  Date: Fri, 02 Oct 2015 19:22:38 GMT
     >� � � >>>>�  �  �  �  X-Powered-By: Servlet/3.0
     >� � � >>>>�  �  �  �  Content-Type: text/html;charset=utf-8
     >� � � >>>>�  �  �  �  $WSEP:
     >� � � >>>>�  �  �  �  Content-Language: en-US
     >� � � >>>>�  �  �  �  Content-Length: 42
     >� � � >>>>�  �  �  �  Connection: Close
     >� � � >>>>�  �  �  �  SetError() #13: HTTP/1.1 500 Internal
     Server Error
     >� � � >>>>�  �  �  �  recvdoc parms: identity 42
     >� � � >>>>�  �  �  �  header_load_cookies() entered
     >� � � >>>>�  �  �  �  recvdoc(): entered
     >� � � >>>>�  �  �  �  SetError() #0:
     >� � � >>>>�  �  �  �  Error 500:
     java.lang.NullPointerException
     >� � � >>>>�  �  �  �  SetError() #13: HTTP/1.1 500 Internal
     Server Error
     >� � � >>>>�  �  �  �  http_close(): entered
     >� � � >>>>�  �  �  �  � ************End of
     Data********************
     >� � � >>>>�  �  �  �  On 10/2/15, Jim Muehe
     >� � � <[3][7][12]jmuehe@xxxxxxxxxxxxxxxx> wrote:
     >� � � >>>>�  �  �  �  > I agree, the default location for
     the log is
     >� � � >>>>�  �  �  �  >��  ��  ��  ��  �
     /tmp/httpapi_debug.txt
     >� � � >>>>�  �  �  �  >
     >� � � >>>>�  �  �  �  > WRKLNK OBJ('/tmp/httpapi_debug.txt')
     >� � � >>>>�  �  �  �  >
     >� � � >>>>�  �  �  �  > Jim Muehe
     >� � � >>>>�  �  �  �  >
     >� � � >>>>�  �  �  �  >
     >� � � >>>>�  �  �  �  >
     >� � � >>>>�  �  �  �  > -----Original Message-----
     >� � � >>>>�  �  �  �  > From:
     [4][8][13]ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
     >� � � >>>>�  �  �  �  >
     >� � � [mailto:[5][9][14]ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx]
     On Behalf Of
     >� � � >>>>�  �  �  �  Charles Wilt
     >� � � >>>>�  �  �  �  > Sent: Friday, October 02, 2015 1:00
     PM
     >� � � >>>>�  �  �  �  > To: HTTPAPI and FTPAPI Projects
     >� � � >>>>�  �  �  �  > Subject: Re: REST WS Problem
     >� � � >>>>�  �  �  �  >
     >� � � >>>>�  �  �  �  > Should be
     >� � � >>>>�  �  �  �  > http_debug(*ON);
     >� � � >>>>�  �  �  �  >
     >� � � >>>>�  �  �  �  > Charles
     >� � � >>>>�  �  �  �  >
     >� � � >>>>�  �  �  �  > On Fri, Oct 2, 2015 at 2:36 PM,
     Donna Herald
     >� � � >>>>�  �  �  �  <[6][10][15]donna.g.herald@xxxxxxxxx>
     >� � � >>>>�  �  �  �  > wrote:
     >� � � >>>>�  �  �  �  >
     >� � � >>>>�  �  �  �  >> Scott,
     >� � � >>>>�  �  �  �  >> I appologize for my issues...if I
     add 'callp
     >� � � >>>> httpapi_debug(*on)'
     >� � � >>>>�  �  �  �  my
     >� � � >>>>�  �  �  �  >> program will not compile.��  I
     get the
     >� � � following error,, the
     >� � � >>>> name
     >� � � >>>>�  �  �  �  or
     >� � � >>>>�  �  �  �  >> indicator is not defined
     (HTTPAPI).��  I have
     >� � � libhttp added to
     >� � � >>>> my
     >� � � >>>>�  �  �  �  >> library list.��  I did find this
     in my link,
     >� � � Error 500:
     >� � � >>>>�  �  �  �  >> java.lang.NullPointerException
     >� � � >>>>�  �  �  �  >>
     >� � � >>>>�  �  �  �  >> The purpose of the project is to
     send data over
     >� � � to the
     >� � � >>>>�  �  �  �  webservice.
     >� � � >>>>�  �  �  �  >> The java programmer created a
     service web service
     >� � � program
     >� � � >>>> which
     >� � � >>>>�  �  �  �  takes
     >� � � >>>>�  �  �  �  >> you to a web page for
     testing.��  I cannot
     >� � � access this as I am
     >� � � >>>> on
     >� � � >>>>�  �  �  �  a
     >� � � >>>>�  �  �  �  >> virtual and do not have access,
     however I have
     >� � � had someone
     >� � � >>>> else
     >� � � >>>>�  �  �  �  paste
     >� � � >>>>�  �  �  �  >> in the xml and it seems to work
     right from there.
     >� � � >>>>�  �  �  �  >>
     >� � � >>>>�  �  �  �  >> From SOAPUI I asked someone to try
     and it will
     >� � � not work from
     >� � � >>>>�  �  �  �  SOAPUI.
     >� � � >>>>�  �  �  �  >> I dont have the authority to try
     from SOAPUI
     >� � � either.
     >� � � >>>>�  �  �  �  >>
     >� � � >>>>�  �  �  �  >> I am not sure if I should even be
     using the
     >� � � http_url_post or
     >� � � >>>> the
     >� � � >>>>�  �  �  �  >> http_url_post_xml.��  The
     service I was given
     >� � � by the java
     >� � � >>>>�  �  �  �  programmer
     >� � � >>>>�  �  �  �  >> says he is expecting one paramether
     but the http
     >� � � commands
     >� � � >>>> expects
     >� � � >>>>�  �  �  �  more
     >� � � >>>>�  �  �  �  >> which I am passing.
     >� � � >>>>�  �  �  �  >>
     >� � � >>>>�  �  �  �  >> I think it must have to do with the
     wrong values
     >� � � in the
     >� � � >>>> paramets
     >� � � >>>>�  �  �  �  I am
     >� � � >>>>�  �  �  �  >> passing.��  Were you able to
     open up my
     >� � � attachments to see my
     >� � � >>>>�  �  �  �  program.
     >� � � >>>>�  �  �  �  >>
     >� � � >>>>�  �  �  �  >> Scott, thanks so much for your
     help.��  I am at
     >� � � a loss of what
     >� � � >>>> to
     >� � � >>>>�  �  �  �  do and
     >� � � >>>>�  �  �  �  >> no one here seems to know either.
     >� � � >>>>�  �  �  �  >>
     >� � � >>>>�  �  �  �  >> Donna
     >� � � >>>>�  �  �  �  >>
     >� � � >>>>�  �  �  �  >>
     >� � � >>>>�  �  �  �  >>
     >� � � >>>>�  �  �  �  >>
     >� � � >>>>�  �  �  �  >> On 10/2/15, Scott Klement
     >� � � <[7][11][16]sk@xxxxxxxxxxxxxxxx> wrote:
     >� � � >>>>�  �  �  �  >> > Hey Donna,
     >� � � >>>>�  �  �  �  >> >
     >� � � >>>>�  �  �  �  >> > When it sends "500" as a
     response, this doesn't
     >� � � tell us
     >� � � >>>>�  �  �  �  anything
     >� � � >>>>�  �  �  �  >> > specific.��  It simply means
     that the web
     >� � � service noticed an
     >� � � >>>>�  �  �  �  error.
     >� � � >>>>�  �  �  �  >> > Nothing more specific than
     that...
     >� � � >>>>�  �  �  �  >> >
     >� � � >>>>�  �  �  �  >> > However, the web service should
     have sent a
     >� � � response
     >� � � >>>> containing
     >� � � >>>>�  �  �  �  more
     >� � � >>>>�  �  �  �  >> > information.��  � This may
     be in the form
     >� � � of an XML or JSON
     >� � � >>>>�  �  �  �  document
     >� � � >>>>�  �  �  �  >> > containing the error message --
     so you might
     >� � � check the
     >� � � >>>> document
     >� � � >>>>�  �  �  �  you
     >� � � >>>>�  �  �  �  >> > received back to see if it has
     the error
     >� � � message in it (in
     >� � � >>>>�  �  �  �  place of
     >� � � >>>>�  �  �  �  >> > the normal WS response.)
     >� � � >>>>�  �  �  �  >> >
     >� � � >>>>�  �  �  �  >> > You can also create an HTTPAPI
     debug/trace file
     >� � � that
     >� � � >>>> contains a
     >� � � >>>>�  �  �  �  lot
     >� � � >>>>�  �  �  �  >> > of technical information about
     what is going on
     >� � � under the
     >� � � >>>>�  �  �  �  covers. To
     >� � � >>>>�  �  �  �  >> > do that, you can add a line of
     code to your
     >� � � program (before
     >� � � >>>>�  �  �  �  calling
     >� � � >>>>�  �  �  �  >> > HTTPAPI
     >� � � >>>>�  �  �  �  >> > routines) like this:
     >� � � >>>>�  �  �  �  >> >
     >� � � >>>>�  �  �  �  >> > callp httpapi_debug(*on)
     >� � � >>>>�  �  �  �  >> >
     >� � � >>>>�  �  �  �  >> > When you run your program again,
     it will
     >� � � produce a file in
     >� � � >>>> the
     >� � � >>>>�  �  �  �  IFS
     >� � � >>>>�  �  �  �  >> > named /tmp/httpapi_debug.txt that
     contains the
     >� � � >>>> aforementioned
     >� � � >>>>�  �  �  �  technical
     >� � � >>>>�  �  �  �  >> > info.
     >� � � >>>>�  �  �  �  >> > Please look that over and see if
     you can figure
     >� � � this out,.�
     >� � � >>>>�  �  �  �  � If not,
     >� � � >>>>�  �  �  �  >> > download the file to your PC,
     obscure any
     >� � � sensitive info
     >� � � >>>>�  �  �  �  (especially
     >� � � >>>>�  �  �  �  >> > any passwords... remove any
     >� � � authorization/authenticate
     >� � � >>>> lines)
     >� � � >>>>�  �  �  �  and
     >� � � >>>>�  �  �  �  >> > attach the file to an e-mail in
     reply to this
     >� � � mailing list.�
     >� � � >>>>�  �  �  �  This
     >� � � >>>>�  �  �  �  >> > will give us information that we
     can use to try
     >� � � to
     >� � � >>>> understand
     >� � � >>>>�  �  �  �  what is
     >� � � >>>>�  �  �  �  >> > going on.
     >� � � >>>>�  �  �  �  >> >
     >� � � >>>>�  �  �  �  >> > Hope that helps
     >� � � >>>>�  �  �  �  >> >
     >� � � >>>>�  �  �  �  >> >
     >� � � >>>>�  �  �  �  >> >
     >� � � >>>>�  �  �  �  >> > On 10/2/2015 9:16 AM, Donna
     Herald wrote:
     >� � � >>>>�  �  �  �  >> >> Please see the prior email
     >� � � >>>>�  �  �  �  >> >>
     >� � � >>>>�  �  �  �  >> >> On 10/2/15, Donna Herald
     >� � � <[8][12][17]donna.g.herald@xxxxxxxxx>
     >� � � >>>> wrote:
     >� � � >>>>�  �  �  �  >> >>> Hello,
     >� � � >>>>�  �  �  �  >> >>>
     >� � � >>>>�  �  �  �  >> >>> I am trying to create a program
     to call a
     >� � � REST WS but I am
     >� � � >>>>�  �  �  �  getting
     >� � � >>>>�  �  �  �  >> >>> an error, �HTTP/1.1 500
     Internal Server
     >� � � Error�.��  I am new
     >� � � >>>> to
     >� � � >>>>�  �  �  �  REST
     >� � � >>>>�  �  �  �  >> >>> WS and API�s.��  I have
     debugged my
     >� � � program several times
     >� � � >>>> but
     >� � � >>>>�  �  �  �  I
     >� � � >>>>�  �  �  �  >> >>> cannot find the problem.��
     I think it must
     >� � � be with the
     >� � � >>>>�  �  �  �  parameters I
     >� � � >>>>�  �  �  �  >> >>> am using for the post but I
     cannot find the
     >� � � problem.��  I
     >� � � >>>> have
     >� � � >>>>�  �  �  �  >> >>> attached my program and would
     appreciate any
     >� � � available
     >� � � >>>>�  �  �  �  assistance.
     >� � � >>>>�  �  �  �  >> >>>
     >� � � >>>>�  �  �  �  >> >>>
     >� � � >>>>�  �  �  �  >> >>> Donna G Herald
     >� � � >>>>�  �  �  �  >> >>>
     >� � � >>>>�  �  �  �  >> >>
     >� � � >>>>
     >� � � >>>>
     >� � �     -------------------------------------------------------------------
     >� � � >>>>�  �  �  �  >> >> ---- This is the FTPAPI mailing
     list.��  To
     >� � � unsubscribe,
     >� � � >>>> please
     >� � � >>>>�  �  �  �  go
     >� � � >>>>�  �  �  �  >> >> to:
     >� � � >>>>�  �  �  �  >> >>
     >� � �     [9][13][18]http://www.scottklement.com/mailman/listinfo/ftpapi
     >� � � >>>>�  �  �  �  >> >>
     >� � � >>>>
     >� � � >>>>
     >� � �     -------------------------------------------------------------------
     >� � � >>>>�  �  �  �  >> >> ----
     >� � � >>>>�  �  �  �  >> >>
     >� � � >>>>�  �  �  �  >> >
     >� � � >>>>�  �  �  �  >> >
     >� � � >>>>
     >� � � >>>>
     >� � �     --------------------------------------------------------------------
     >� � � >>>>�  �  �  �  >> > --- This is the FTPAPI mailing
     list.��  To
     >� � � unsubscribe,
     >� � � >>>> please
     >� � � >>>>�  �  �  �  go to:
     >� � � >>>>�  �  �  �  >> >
     >� � �     [10][14][19]http://www.scottklement.com/mailman/listinfo/ftpapi
     >� � � >>>>�  �  �  �  >> >
     >� � � >>>>
     >� � � >>>>
     >� � �     --------------------------------------------------------------------
     >� � � >>>>�  �  �  �  >> > ---
     >� � � >>>>�  �  �  �  >> >
     >� � � >>>>�  �  �  �  >>
     >� � � >>>>
     >� � � >>>>
     >� � �     --------------------------------------------------------------------
     >� � � >>>>�  �  �  �  --
     >� � � >>>>�  �  �  �  >> - This is the FTPAPI mailing
     list.��  To
     >� � � unsubscribe, please go
     >� � � >>>>�  �  �  �  to:
     >� � � >>>>�  �  �  �  >>
     >� � �     [11][15][20]http://www.scottklement.com/mailman/listinfo/ftpapi
     >� � � >>>>�  �  �  �  >>
     >� � � >>>>
     >� � � >>>>
     >� � �     --------------------------------------------------------------------
     >� � � >>>>�  �  �  �  --
     >� � � >>>>�  �  �  �  >> -
     >� � � >>>>�  �  �  �  >>
     >� � � >>>>�  �  �  �  >
     >� � � >>>>�  �  �  �  > ________________________________
     >� � � >>>>�  �  �  �  > CONFIDENTIALITY NOTICE: This e-mail
     message,
     >� � � including any
     >� � � >>>>�  �  �  �  attachments, is
     >� � � >>>>�  �  �  �  > for the sole use of the intended
     recipient(s) and
     >� � � may contain
     >� � � >>>>�  �  �  �  confidential
     >� � � >>>>�  �  �  �  > and proprietary information. Any
     unauthorized
     >� � � review, use,
     >� � � >>>>�  �  �  �  disclosure or
     >� � � >>>>�  �  �  �  > distribution is prohibited. If you
     are not the
     >� � � intended
     >� � � >>>>�  �  �  �  recipient(s), please
     >� � � >>>>�  �  �  �  > contact the sender by reply e-mail
     and destroy all
     >� � � copies of
     >� � � >>>> the
     >� � � >>>>�  �  �  �  original
     >� � � >>>>�  �  �  �  > message.
     >� � � >>>>�  �  �  �  >
     >� � � >>>>
     >� � � >>>>
     >� � �     --------------------------------------------------------------------
     >� � � >>>>�  �  �  �  ---
     >� � � >>>>�  �  �  �  > This is the FTPAPI mailing
     list.��  To
     >� � � unsubscribe, please go
     >� � � >>>> to:
     >� � � >>>>�  �  �  �  >
     >� � �     [12][16][21]http://www.scottklement.com/mailman/listinfo/ftpapi
     >� � � >>>>�  �  �  �  >
     >� � � >>>>
     >� � � >>>>
     >� � �     --------------------------------------------------------------------
     >� � � >>>>�  �  �  �  ---
     >� � � >>>>�  �  �  �  >
     >� � � >>>>
     >� � � >>>>
     >� � �     --------------------------------------------------------------------
     >� � � >>>>�  �  �  �  ---
     >� � � >>>>�  �  �  �  This is the FTPAPI mailing list.��
     To
     >� � � unsubscribe, please go to:
     >� � � >>>>�  �  �  �     >� � �     [13][17][22]http://www.scottklement.com/mailman/listinfo/ftpapi
     >� � � >>>>
     >� � � >>>>
     >� � �     --------------------------------------------------------------------
     >� � � >>>>�  �  �  �  ---
     >� � � >>>>
     >� � � >>>> References
     >� � � >>>>
     >� � � >>>>�  �  �  1. mailto:[18][23]donna.g.herald@xxxxxxxxx
     >� � � >>>>�  �  �  2. [19][24]http://AD.CHURCHMUTUAL.COM/
     >� � � >>>>�  �  �  3. mailto:[20][25]jmuehe@xxxxxxxxxxxxxxxx
     >� � � >>>>�  �  �  4.
     mailto:[21][26]ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
     >� � � >>>>�  �  �  5.
     mailto:[22][27]ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
     >� � � >>>>�  �  �  6. mailto:[23][28]donna.g.herald@xxxxxxxxx
     >� � � >>>>�  �  �  7. mailto:[24][29]sk@xxxxxxxxxxxxxxxx
     >� � � >>>>�  �  �  8. mailto:[25][30]donna.g.herald@xxxxxxxxx
     >� � � >>>>�  �  �  9.
     >� � �     [26][31]http://www.scottklement.com/mailman/listinfo/ftpapi
     >� � � >>>>�  �  �10.
     >� � �     [27][32]http://www.scottklement.com/mailman/listinfo/ftpapi
     >� � � >>>>�  �  �11.
     >� � �     [28][33]http://www.scottklement.com/mailman/listinfo/ftpapi
     >� � � >>>>�  �  �12.
     >� � �     [29][34]http://www.scottklement.com/mailman/listinfo/ftpapi
     >� � � >>>>�  �  �13.
     >� � �     [30][35]http://www.scottklement.com/mailman/listinfo/ftpapi
     >� � � >>>>
     >� � � >>>>
     >� � � >>>>
     >� � � >>>>
     >� � �     --------------------------------------------------------------------
     >� � � ---
     >� � � >>>> This is the FTPAPI mailing list.�  To unsubscribe,
     please go
     >� � � to:
     >� � � >>>>
     [31][36]http://www.scottklement.com/mailman/listinfo/ftpapi
     >� � � >>>>
     >� � �     --------------------------------------------------------------------
     >� � � ---
     >� � � >>>
     >� � �     --------------------------------------------------------------------
     >� � � ---
     >� � � >>> This is the FTPAPI mailing list.�  To unsubscribe,
     please go to:
     >� � � >>>
     [32][37]http://www.scottklement.com/mailman/listinfo/ftpapi
     >� � � >>>
     >� � �     --------------------------------------------------------------------
     >� � � ---
     >� � � >>>
     >� � � >>>
     >� � � >>>
     >� � � >>>
     >� � �     --------------------------------------------------------------------
     >� � � ---
     >� � � >>> This is the FTPAPI mailing list.�  To unsubscribe,
     please go to:
     >� � � >>>
     [33][38]http://www.scottklement.com/mailman/listinfo/ftpapi
     >� � � >>>
     >� � �     --------------------------------------------------------------------
     >� � � ---
     >� � � >>>
     >� � � >>>
     >� � � >>> -----
     >� � � >>> No virus found in this message.
     >� � � >>> Checked by AVG - [34][39]www.avg.com
     >� � � >>> Version: 2015.0.6140 / Virus Database: 4435/10751 -
     Release
     >� � � Date:
     >� � � >>> 10/03/15
     >� � � >
     >� � � >
     >� � �     --------------------------------------------------------------------
     >� � � ---
     >� � � > This is the FTPAPI mailing list.�  To unsubscribe,
     please go to:
     >� � � >
     [35][40]http://www.scottklement.com/mailman/listinfo/ftpapi
     >� � � >
     >� � �     --------------------------------------------------------------------
     >� � � ---
     >� � � >
     >� � �     --------------------------------------------------------------------
     >� � � ---
     >� � � This is the FTPAPI mailing list.�  To unsubscribe, please
     go to:
     >� � �     [36][41]http://www.scottklement.com/mailman/listinfo/ftpapi
     >� � �     --------------------------------------------------------------------
     >� � � ---
     >
     >� � --
     >� � Chris Edmondson
     >� � [42]509.670.6817
     >
     > References
     >
     >� � 1. [43]http://production.shippingapis.com/ShippingAPI.dll?
     >� � 2. mailto:[44]donna.g.herald@xxxxxxxxx
     >� � 3. mailto:[45]sk@xxxxxxxxxxxxxxxx
     >� � 4. mailto:[46]sk@xxxxxxxxxxxxxxxx
     >� � 5. mailto:[47]donna.g.herald@xxxxxxxxx
     >� � 6. [48]http://AD.CHURCHMUTUAL.COM/
     >� � 7. mailto:[49]jmuehe@xxxxxxxxxxxxxxxx
     >� � 8. mailto:[50]ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
     >� � 9. mailto:[51]ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
     >� �10. mailto:[52]donna.g.herald@xxxxxxxxx
     >� �11. mailto:[53]sk@xxxxxxxxxxxxxxxx
     >� �12. mailto:[54]donna.g.herald@xxxxxxxxx
     >� �13. [55]http://www.scottklement.com/mailman/listinfo/ftpapi
     >� �14. [56]http://www.scottklement.com/mailman/listinfo/ftpapi
     >� �15. [57]http://www.scottklement.com/mailman/listinfo/ftpapi
     >� �16. [58]http://www.scottklement.com/mailman/listinfo/ftpapi
     >� �17. [59]http://www.scottklement.com/mailman/listinfo/ftpapi
     >� �18. mailto:[60]donna.g.herald@xxxxxxxxx
     >� �19. [61]http://AD.CHURCHMUTUAL.COM/
     >� �20. mailto:[62]jmuehe@xxxxxxxxxxxxxxxx
     >� �21. mailto:[63]ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
     >� �22. mailto:[64]ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
     >� �23. mailto:[65]donna.g.herald@xxxxxxxxx
     >� �24. mailto:[66]sk@xxxxxxxxxxxxxxxx
     >� �25. mailto:[67]donna.g.herald@xxxxxxxxx
     >� �26. [68]http://www.scottklement.com/mailman/listinfo/ftpapi
     >� �27. [69]http://www.scottklement.com/mailman/listinfo/ftpapi
     >� �28. [70]http://www.scottklement.com/mailman/listinfo/ftpapi
     >� �29. [71]http://www.scottklement.com/mailman/listinfo/ftpapi
     >� �30. [72]http://www.scottklement.com/mailman/listinfo/ftpapi
     >� �31. [73]http://www.scottklement.com/mailman/listinfo/ftpapi
     >� �32. [74]http://www.scottklement.com/mailman/listinfo/ftpapi
     >� �33. [75]http://www.scottklement.com/mailman/listinfo/ftpapi
     >� �34. [76]http://www.avg.com/
     >� �35. [77]http://www.scottklement.com/mailman/listinfo/ftpapi
     >� �36. [78]http://www.scottklement.com/mailman/listinfo/ftpapi

   >
   -----------------------------------------------------------------------
   This is the FTPAPI mailing list.� To unsubscribe, please go to:
   [79]http://www.scottklement.com/mailman/listinfo/ftpapi
   -----------------------------------------------------------------------

   --
   Chris Edmondson
   509.670.6817

References

   1. mailto:donna.g.herald@xxxxxxxxx
   2. http://cmdev2:9080/print-eor-service/
   3. http://cmdev2:9080/print-eor-service/
   4. http://cmdev2:9080/RESTJerseyExample/
   5. mailto:chris@xxxxxxxxxxx
   6. http://production.shippingapis.com/ShippingAPI.dll?
   7. mailto:donna.g.herald@xxxxxxxxx
   8. mailto:sk@xxxxxxxxxxxxxxxx
   9. mailto:sk@xxxxxxxxxxxxxxxx
  10. mailto:donna.g.herald@xxxxxxxxx
  11. http://AD.CHURCHMUTUAL.COM/
  12. mailto:jmuehe@xxxxxxxxxxxxxxxx
  13. mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
  14. mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
  15. mailto:donna.g.herald@xxxxxxxxx
  16. mailto:sk@xxxxxxxxxxxxxxxx
  17. mailto:donna.g.herald@xxxxxxxxx
  18. http://www.scottklement.com/mailman/listinfo/ftpapi
  19. http://www.scottklement.com/mailman/listinfo/ftpapi
  20. http://www.scottklement.com/mailman/listinfo/ftpapi
  21. http://www.scottklement.com/mailman/listinfo/ftpapi
  22. http://www.scottklement.com/mailman/listinfo/ftpapi
  23. mailto:donna.g.herald@xxxxxxxxx
  24. http://AD.CHURCHMUTUAL.COM/
  25. mailto:jmuehe@xxxxxxxxxxxxxxxx
  26. mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
  27. mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
  28. mailto:donna.g.herald@xxxxxxxxx
  29. mailto:sk@xxxxxxxxxxxxxxxx
  30. mailto:donna.g.herald@xxxxxxxxx
  31. http://www.scottklement.com/mailman/listinfo/ftpapi
  32. http://www.scottklement.com/mailman/listinfo/ftpapi
  33. http://www.scottklement.com/mailman/listinfo/ftpapi
  34. http://www.scottklement.com/mailman/listinfo/ftpapi
  35. http://www.scottklement.com/mailman/listinfo/ftpapi
  36. http://www.scottklement.com/mailman/listinfo/ftpapi
  37. http://www.scottklement.com/mailman/listinfo/ftpapi
  38. http://www.scottklement.com/mailman/listinfo/ftpapi
  39. http://www.avg.com/
  40. http://www.scottklement.com/mailman/listinfo/ftpapi
  41. http://www.scottklement.com/mailman/listinfo/ftpapi
  42. tel:509.670.6817
  43. http://production.shippingapis.com/ShippingAPI.dll
  44. mailto:donna.g.herald@xxxxxxxxx
  45. mailto:sk@xxxxxxxxxxxxxxxx
  46. mailto:sk@xxxxxxxxxxxxxxxx
  47. mailto:donna.g.herald@xxxxxxxxx
  48. http://AD.CHURCHMUTUAL.COM/
  49. mailto:jmuehe@xxxxxxxxxxxxxxxx
  50. mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
  51. mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
  52. mailto:donna.g.herald@xxxxxxxxx
  53. mailto:sk@xxxxxxxxxxxxxxxx
  54. mailto:donna.g.herald@xxxxxxxxx
  55. http://www.scottklement.com/mailman/listinfo/ftpapi
  56. http://www.scottklement.com/mailman/listinfo/ftpapi
  57. http://www.scottklement.com/mailman/listinfo/ftpapi
  58. http://www.scottklement.com/mailman/listinfo/ftpapi
  59. http://www.scottklement.com/mailman/listinfo/ftpapi
  60. mailto:donna.g.herald@xxxxxxxxx
  61. http://AD.CHURCHMUTUAL.COM/
  62. mailto:jmuehe@xxxxxxxxxxxxxxxx
  63. mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
  64. mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
  65. mailto:donna.g.herald@xxxxxxxxx
  66. mailto:sk@xxxxxxxxxxxxxxxx
  67. mailto:donna.g.herald@xxxxxxxxx
  68. http://www.scottklement.com/mailman/listinfo/ftpapi
  69. http://www.scottklement.com/mailman/listinfo/ftpapi
  70. http://www.scottklement.com/mailman/listinfo/ftpapi
  71. http://www.scottklement.com/mailman/listinfo/ftpapi
  72. http://www.scottklement.com/mailman/listinfo/ftpapi
  73. http://www.scottklement.com/mailman/listinfo/ftpapi
  74. http://www.scottklement.com/mailman/listinfo/ftpapi
  75. http://www.scottklement.com/mailman/listinfo/ftpapi
  76. http://www.avg.com/
  77. http://www.scottklement.com/mailman/listinfo/ftpapi
  78. http://www.scottklement.com/mailman/listinfo/ftpapi
  79. http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------