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

First web service using WSDL2RPG



   I've run into a brick wall trying to get this web service working and
   I'm about out of ideas. I've verified that the XML is valid and I've
   been able to connect and get a good response from the server using
   desktop tools. I at first thought that the issue was with the vendor,
   but now I'm not so sure. I'm trying to determine if the "Requested URL
   was rejected" message was generated locally or by the remote server. If
   anyone could look at this debug log and give me some thoughts I'd
   appreciate it. Please note that we currently have other web services
   working correctly with HTTPAPI, but not using WSDL2RPG. Thanks.


   HTTPAPI Ver 1.24 released 2012-01-23

   OS/400 Ver V7R1M0



   WSDL2RPG Ver 1.16.3 released 2015-04-19 (V7R1M0)


   ** 2015-06-05-09.19.13.043000: Entering
   CalculateTax70_calculateTax70(), compiled for V7R1M0

   New iconv() objects set, PostRem=1208. PostLoc=0. ProtRem=819.
   ProtLoc=0

   ** 2015-06-05-09.19.13.366000: Sending request to server

   http_persist_open(): entered

   http_long_ParseURL(): entered

   DNS resolver retrans: 2

   DNS resolver retry  : 2

   DNS resolver options: x'00000136'

   DNS default domain: ANDRX.COM

   DNS server found: 10.14.122.104

   DNS server found: 10.14.122.112

   -----------------------------------------------------------------------
   --------------

   Dump of server-side certificate information:

   -----------------------------------------------------------------------
   --------------

   Cert Validation Code = 0

   -----BEGIN CERTIFICATE-----

   MIIFETCCA/mgAwIBAgIDAiTPMA0GCSqGSIb3DQEBBQUAMEAxCzAJBgNVBAYTAlVT

   MRcwFQYDVQQKEw5HZW9UcnVzdCwgSW5jLjEYMBYGA1UEAxMPR2VvVHJ1c3QgU1NM

   IENBMB4XDTEzMDQwMzE2NDIwMFoXDTE3MDYwMzIzNTIxNVowga0xKTAnBgNVBAUT

   IHlzREtiSzMyQkRqZE5keTc3UnBmOEtqWHhZU24vVWdnMQswCQYDVQQGEwJVUzEV

   MBMGA1UECBMMUGVubnN5bHZhbmlhMQ8wDQYDVQQHEwZCZXJ3eW4xFDASBgNVBAoT

   C1ZlcnRleCBJbmMuMRIwEAYDVQQLEwlWZX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IhvcNAQEFBQADggEBAEeY/f8xdBU30qKj

   fG1d8i0oThVWrKsISD5eVrmwzxryo6FRHJzQ0lDkRDpElchWm6hj4HniydorAmcd

   C4V5S6oyWlifgUpH9eaSY5cQdI90cZmcqoq6yoq4X6qRWsot22ouZUrI8d+hR+PT

   emKtPeYv57L5MglOemmS0Q8i8c+jJkJGTVmaook5KbclGOZGBS02lPrffvpfgu+B

   SNVHwSUhoZ1ZU2FmnPzgaQlxW1RXYgHjrXATUjQtDu77xD1VfA2DmagzPruDLP8Z

   ADudsPjXaYameXVdGO3YqorXzSNUAkXmg+4Ekm1CBHVYe3GuuUTkGGaypnioZXKm

   J7QEH8I=

   -----END CERTIFICATE-----

   Serial Number: 02:24:CF

   Common Name: *.ondemand.vertexinc.com

   Country: US

   State/Province: Pennsylvania

   Locality: Berwyn

   Org Unit: Vertex Inc.

   Org: Vertex IT

   Issuer CN: GeoTrust SSL CA

   Issuer Country: US

   Issuer Org: GeoTrust, Inc.

   Version: 3

   not before: 20130403124200

   Unknown Field: 12:42:00 03-04-2013

   not after: 20170603195215

   Unknown Field: 19:52:15 03-06-2017

   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 /vertex-ws/services/CalculateTax70 HTTP/1.1

   Host: anda.ondemand.vertexinc.com:443

   User-Agent: http-api/1.21

   Content-Length: 1787

   Content-Type: text/xml

   SOAPAction:



   sendraw(): entered

   <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope
   xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
   xmlns:tns1="http://www.vertexinc.com/oseries/services/CalculateTax70";
   xmlns:vev="urn:vertexinc:o-series:tps:7:0"><soapenv:Body><vev:VertexEnv
   elope><vev:Login><vev:UserName>********</vev:UserName><vev:Password>***
   ***</vev:Password></vev:Login><vev:QuotationRequest
   documentDate="2015-06-05"
   transactionType="SALE"><vev:Customer><vev:CustomerCode>107196</vev:Cust
   omerCode><vev:Destination><vev:StreetAddress1>2961 WEST 12TH
   AVENUE
   </vev:StreetAddress1><vev:StreetAddress2></vev:StreetAddress2><vev:City
   >HIALEAH
   </vev:City><vev:MainDivision>FL</vev:MainDivision><vev:SubDivision></ve
   v:SubDivision><vev:PostalCode>33012
   </vev:PostalCode><vev:Country>USA</vev:Country><vev:CurrencyConversion>
   0</vev:CurrencyConversion></vev:Destination><vev:ExemptionCertificate><
   /vev:ExemptionCertificate></vev:Customer><vev:LineItem><vev:Product>317
   870</vev:Product><vev:Quantity>3</vev:Quantity><vev:UnitPrice>2.66</vev
   :UnitPrice></vev:LineItem><vev:LineItem><vev:Product>320568</vev:Produc
   t><vev:Quantity>1</vev:Quantity><vev:UnitPrice>100.8</vev:UnitPrice></v
   ev:LineItem><vev:LineItem><vev:Product>390874</vev:Product><vev:Quantit
   y>1</vev:Quantity><vev:UnitPrice>37.95</vev:UnitPrice></vev:LineItem><v
   ev:LineItem><vev:Product>312503</vev:Product><vev:Quantity>1</vev:Quant
   ity><vev:UnitPrice>86.98</vev:UnitPrice></vev:LineItem><vev:LineItem><v
   ev:Product>311253</vev:Product><vev:Quantity>1</vev:Quantity><vev:UnitP
   rice>11.69</vev:UnitPrice></vev:LineItem><vev:LineItem><vev:Product>803
   643</vev:Product><vev:Quantity>2</vev:Quantity><vev:UnitPrice>70.68</ve
   v:UnitPrice></vev:LineItem></vev:QuotationRequest></vev:VertexEnvelope>
   </soapenv:Body></soapenv:Envelope>

   recvresp(): entered

   HTTP/1.1 200 OK

   Connection: close

   Cache-Control: no-cache

   Content-Type: text/html; charset=utf-8

   Pragma: no-cache

   Content-Length: 188



   SetError() #13: HTTP/1.1 200 OK

   recvresp(): end with 200

   recvdoc parms: identity 188

   header_load_cookies() entered

   recvdoc(): entered

   SetError() #0:

   <html><head><title>Request Rejected</title></head><body>The requested
   URL was rejected. Please consult with your administrator.<br><br>Your
   support ID is: 7109750400737997612</body></html>

   ** 2015-06-05-09.19.16.065000: Preparing to parse received message

   WSDL2RPG: USR0030: Unexpected HTML data received from web service.

                      Recovery  . . . :   Call
   CalculateTax70_setHttpDebug(*ON) to enable the HTTP API debug log and
   call the web service again. Then inspect the debug log do get further
   information about what the web service returns to you. The default log
   f

   ile name is '/tmp/httpapi_debug.txt'.

             received from procedure: BASICS1R1_f_sndPgmMsg

                       and statement: 54400

   ** 2015-06-05-09.19.16.240000: Leaving CalculateTax70_calculateTax70()
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------