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

Re: REST WS Problem



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                             '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*
'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*
'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+HiLoEq..
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 <chris@xxxxxxxxxxx> wrote:
>    Here's a working example of a USPS address validation, hope it helps.
>    Â
>
>      url = '[1]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]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]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]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]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]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]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]ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
>      >>>>Â  Â  Â  Â  >
>      [mailto:[5][9]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]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]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]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]http://www.scottklement.com/mailman/listinfo/ftpapi
>      >>>>Â  Â  Â  Â  >> >>
>      >>>>
>      >>>>
>      -------------------------------------------------------------------
>      >>>>Â  Â  Â  Â  >> >> ----
>      >>>>Â  Â  Â  Â  >> >>
>      >>>>Â  Â  Â  Â  >> >
>      >>>>Â  Â  Â  Â  >> >
>      >>>>
>      >>>>
>      --------------------------------------------------------------------
>      >>>>        >> > --- This is the FTPAPI mailing list.�  To
>      unsubscribe,
>      >>>> please
>      >>>>Â  Â  Â  Â  go to:
>      >>>>Â  Â  Â  Â  >> >
>      [10][14]http://www.scottklement.com/mailman/listinfo/ftpapi
>      >>>>Â  Â  Â  Â  >> >
>      >>>>
>      >>>>
>      --------------------------------------------------------------------
>      >>>>Â  Â  Â  Â  >> > ---
>      >>>>Â  Â  Â  Â  >> >
>      >>>>Â  Â  Â  Â  >>
>      >>>>
>      >>>>
>      --------------------------------------------------------------------
>      >>>>Â  Â  Â  Â  --
>      >>>>        >> - This is the FTPAPI mailing list.�  To
>      unsubscribe, please go
>      >>>>Â  Â  Â  Â  to:
>      >>>>Â  Â  Â  Â  >>
>      [11][15]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]http://www.scottklement.com/mailman/listinfo/ftpapi
>      >>>>Â  Â  Â  Â  >
>      >>>>
>      >>>>
>      --------------------------------------------------------------------
>      >>>>Â  Â  Â  Â  ---
>      >>>>Â  Â  Â  Â  >
>      >>>>
>      >>>>
>      --------------------------------------------------------------------
>      >>>>Â  Â  Â  Â  ---
>      >>>>        This is the FTPAPI mailing list.�  To
>      unsubscribe, please go to:
>      >>>>Â  Â  Â  Â
>      [13][17]http://www.scottklement.com/mailman/listinfo/ftpapi
>      >>>>
>      >>>>
>      --------------------------------------------------------------------
>      >>>>Â  Â  Â  Â  ---
>      >>>>
>      >>>> References
>      >>>>
>      >>>>Â  Â  Â  1. mailto:[18]donna.g.herald@xxxxxxxxx
>      >>>>Â  Â  Â  2. [19]http://AD.CHURCHMUTUAL.COM/
>      >>>>Â  Â  Â  3. mailto:[20]jmuehe@xxxxxxxxxxxxxxxx
>      >>>>Â  Â  Â  4. mailto:[21]ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
>      >>>>Â  Â  Â  5. mailto:[22]ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
>      >>>>Â  Â  Â  6. mailto:[23]donna.g.herald@xxxxxxxxx
>      >>>>Â  Â  Â  7. mailto:[24]sk@xxxxxxxxxxxxxxxx
>      >>>>Â  Â  Â  8. mailto:[25]donna.g.herald@xxxxxxxxx
>      >>>>Â  Â  Â  9.
>      [26]http://www.scottklement.com/mailman/listinfo/ftpapi
>      >>>>Â  Â  Â 10.
>      [27]http://www.scottklement.com/mailman/listinfo/ftpapi
>      >>>>Â  Â  Â 11.
>      [28]http://www.scottklement.com/mailman/listinfo/ftpapi
>      >>>>Â  Â  Â 12.
>      [29]http://www.scottklement.com/mailman/listinfo/ftpapi
>      >>>>Â  Â  Â 13.
>      [30]http://www.scottklement.com/mailman/listinfo/ftpapi
>      >>>>
>      >>>>
>      >>>>
>      >>>>
>      --------------------------------------------------------------------
>      ---
>      >>>> This is the FTPAPI mailing list.  To unsubscribe, please go
>      to:
>      >>>> [31]http://www.scottklement.com/mailman/listinfo/ftpapi
>      >>>>
>      --------------------------------------------------------------------
>      ---
>      >>>
>      --------------------------------------------------------------------
>      ---
>      >>> This is the FTPAPI mailing list.  To unsubscribe, please go to:
>      >>> [32]http://www.scottklement.com/mailman/listinfo/ftpapi
>      >>>
>      --------------------------------------------------------------------
>      ---
>      >>>
>      >>>
>      >>>
>      >>>
>      --------------------------------------------------------------------
>      ---
>      >>> This is the FTPAPI mailing list.  To unsubscribe, please go to:
>      >>> [33]http://www.scottklement.com/mailman/listinfo/ftpapi
>      >>>
>      --------------------------------------------------------------------
>      ---
>      >>>
>      >>>
>      >>> -----
>      >>> No virus found in this message.
>      >>> Checked by AVG - [34]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]http://www.scottklement.com/mailman/listinfo/ftpapi
>      >
>      --------------------------------------------------------------------
>      ---
>      >
>      --------------------------------------------------------------------
>      ---
>      This is the FTPAPI mailing list.  To unsubscribe, please go to:
>      [36]http://www.scottklement.com/mailman/listinfo/ftpapi
>      --------------------------------------------------------------------
>      ---
>
>    --
>    Chris Edmondson
>    509.670.6817
>
> References
>
>    1. http://production.shippingapis.com/ShippingAPI.dll?
>    2. mailto:donna.g.herald@xxxxxxxxx
>    3. mailto:sk@xxxxxxxxxxxxxxxx
>    4. mailto:sk@xxxxxxxxxxxxxxxx
>    5. mailto:donna.g.herald@xxxxxxxxx
>    6. http://AD.CHURCHMUTUAL.COM/
>    7. mailto:jmuehe@xxxxxxxxxxxxxxxx
>    8. mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
>    9. mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
>   10. mailto:donna.g.herald@xxxxxxxxx
>   11. mailto:sk@xxxxxxxxxxxxxxxx
>   12. mailto:donna.g.herald@xxxxxxxxx
>   13. http://www.scottklement.com/mailman/listinfo/ftpapi
>   14. http://www.scottklement.com/mailman/listinfo/ftpapi
>   15. http://www.scottklement.com/mailman/listinfo/ftpapi
>   16. http://www.scottklement.com/mailman/listinfo/ftpapi
>   17. http://www.scottklement.com/mailman/listinfo/ftpapi
>   18. mailto:donna.g.herald@xxxxxxxxx
>   19. http://AD.CHURCHMUTUAL.COM/
>   20. mailto:jmuehe@xxxxxxxxxxxxxxxx
>   21. mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
>   22. mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
>   23. mailto:donna.g.herald@xxxxxxxxx
>   24. mailto:sk@xxxxxxxxxxxxxxxx
>   25. mailto:donna.g.herald@xxxxxxxxx
>   26. http://www.scottklement.com/mailman/listinfo/ftpapi
>   27. http://www.scottklement.com/mailman/listinfo/ftpapi
>   28. http://www.scottklement.com/mailman/listinfo/ftpapi
>   29. http://www.scottklement.com/mailman/listinfo/ftpapi
>   30. http://www.scottklement.com/mailman/listinfo/ftpapi
>   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.avg.com/
>   35. http://www.scottklement.com/mailman/listinfo/ftpapi
>   36. 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
-----------------------------------------------------------------------