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

%scan() fails working in http_long_ParseUrl()



Hi Scott,

Maybe you can jump in and help me with the following error message that I
received from a WSDL2RPG user:

 Message ID . . . . . . :   RNX0100       Severity . . . . . . . :   50
 Message type . . . . . :   Escape

Date sent  . . . . . . :   10/03/11      Time sent  . . . . . . :   12:51:12

 Message . . . . :   Length or start position is out of range for the
                     string operation.
 Cause . . . . . :   One of the following has occurred in RPG procedure
   HTTP_LONG_ in program LIBHTTP/HTTPAPIR4:
   - A numeric length or start position is less than 1 or too large for the
     string operation.

   - The search-argument parameter of the %SCAN built-in function has zero

     length or is longer than the source-string parameter.

   - The maximum-length parameter of the %STR built-in function is not a
     value between 1 and the maximum size of a character field.

The original URL of the web service is:

 http://bmicqa.aplicor.net/crm5_0/crm/services/bmicintegrationservice.asmx

When the service is called it is changed by a redirection to:

 https://bmicqa.aplicor.net/crm5_0/crm/services/bmicintegrationservice.asmx

Unfortunately I cannot call the web service from our System i because we do
not have configured SSL.

Regards,

Thomas.

HTTPAPI Ver 1.24beta11 released 2010-09-09
OS/400 Ver V6R1M0

New iconv() objects set, PostRem=1208. 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: BROTHERHOODMUTUAL.COM
DNS server found: 10.0.0.15
DNS server found: 10.0.0.8
http_persist_post(): entered
http_long_ParseURL(): entered
do_oper(POST): entered
POST /CRM5_0/CRM/Services/BMICIntegrationService.asmx HTTP/1.1
Host: bmicqa.aplicor.net
User-Agent: http-api/1.24
Content-Length: 609
Content-Type: text/xml
SOAPAction: http://www.aplicor.com/ExecuteOperation


sendraw(): entered
<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; xmlns:tns="http://www.aplicor.com/";><soapenv:Header><tns:AuthCredentials><tns:UserId>**********</tns:UserId><tns:Password>**********</tns:Password></tns:AuthCredentials></soapenv:Header><soapenv:Body><tns:ExecuteOperation><tns:data>&lt;operation&gt;&lt;Account Name=&quot;Freedom Fellowship&quot; Type=&quot;Customer- PTM&quot; Agency=&quot;Adamson Agency Inc 3342&quot; DataLoadCode=&quot;BMI_L11002187&quot;</tns:data></tns:ExecuteOperation></soapenv:Body></soapenv:Envelope>
recvresp(): entered
HTTP/1.1 302 Moved Temporarily
Location: https://bmicqa.aplicor.net/CRM5_0/CRM/Services/BMICIntegrationService.asmx
Connection: close
Cache-Control: no-cache
Pragma: no-cache


SetError() #13: HTTP/1.1 302 Moved Temporarily
recvresp(): end with 302
recvdoc parms: identity 0
header_load_cookies() entered
recvdoc(): entered
SetError() #0:
SetError() #13: HTTP/1.1 302 Moved Temporarily
http_close(): entered
HTTPAPI Ver 1.24beta11 released 2010-09-09
OS/400 Ver V6R1M0

http_persist_open(): entered
http_long_ParseURL(): entered
DNS resolver retrans: 2
DNS resolver retry  : 2
DNS resolver options: x'00000136'
DNS default domain: BROTHERHOODMUTUAL.COM
DNS server found: 10.0.0.15
DNS server found: 10.0.0.8
-------------------------------------------------------------------------------------
Dump of server-side certificate information:
-------------------------------------------------------------------------------------
Cert Validation Code = 6000
-----BEGIN CERTIFICATE-----
MIIFGDCCBACgAwIBAgIRAN9Ia8g2f5zMh7zSEy9g60QwDQYJKoZIhvcNAQEFBQAw
YjELMAkGA1UEBhMCVVMxITAfBgNVBAoTGE5ldHdvcmsgU29sdXRpb25zIEwuTC5D
LjEwMC4GA1UEAxMnTmV0d29yayBTb2x1dGlvbnMgQ2VydGlmaWNhdGUgQXV0aG9y
aXR5MB4XDTA4MDExNjAwMDAwMFoXDTEyMDMwOTIzNTk1OVowgeExCzAJBgNVBAYT
AlVTMQ4wDAYDVQQREwUzMzQzMjELMAkGA1UECBMCRkwxEzARBgNVBAcTCkJvY2Eg
UmF0b24xEjAQBgNVBAkTCVN1aXRlIDIwMDEjMCEGA1UECRMaMTYxNSBTb3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LO6z+fsUmeSOMNydPkxq017M1AzZJWZXBb6PpyPL/kDp1KrAnhleBBd
HwgRoqeU0Idql1a1CMmqxBwRWPCso6EqBH/i1vjYHLRR0MGpd3fZsL0e+GruKbs5
kUUTWCzdSQy14bn6S3O+My6FU+dIu4tMrQfD6mHbcBg7jnSrZiT2ML+J6II9CMpI
fsFpDSpD7Shf3rqLUJwCWKVrcOcc93qmyTRSYfBMIstJdXAonD/swKPruc32bVx0
9WFNmd4DbzJKAkls98ayKUnubn/K1yjEImYKwqN5CRujmF6gpR60G+2LVhegS5rl
UzX0Gz/zw/4yH2+N
-----END CERTIFICATE-----
Serial Number: 00:DF:48:6B:C8:36:7F:9C:CC:87:BC:D2:13:2F:60:EB:44
Common Name: *.aplicor.net
Country: US
State/Province: FL
Locality: Boca Raton
Org Unit: Aplicor Inc.
Org: Secure Link SSL Wildcard, OU=Aplicor Inc.
PostalCode: 33432
Issuer CN: Network Solutions Certificate Authority
Issuer Country: US
Issuer Org: Network Solutions L.L.C.
Version: 03
not before: 20080115190000
not after: 20120309185959
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 /CRM5_0/CRM/Services/BMICIntegrationService.asmx HTTP/1.1
Host: bmicqa.aplicor.net
User-Agent: http-api/1.24
Content-Length: 609
Content-Type: text/xml
SOAPAction: http://www.aplicor.com/ExecuteOperation


sendraw(): entered
<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; xmlns:tns="http://www.aplicor.com/";><soapenv:Header><tns:AuthCredentials><tns:UserId>**********</tns:UserId><tns:Password>**********</tns:Password></tns:AuthCredentials></soapenv:Header><soapenv:Body><tns:ExecuteOperation><tns:data>&lt;operation&gt;&lt;Account Name=&quot;Freedom Fellowship&quot; Type=&quot;Customer- PTM&quot; Agency=&quot;Adamson Agency Inc 3342&quot; DataLoadCode=&quot;BMI_L11002187&quot;</tns:data></tns:ExecuteOperation></soapenv:Body></soapenv:Envelope>
recvresp(): entered
HTTP/1.1 200 OK
Cache-Control: private, max-age=0
Content-Length: 494
Content-Type: text/xml; charset=utf-8
Server: Microsoft-IIS/7.5
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Mon, 03 Oct 2011 16:58:43 GMT


SetError() #13: HTTP/1.1 200 OK
recvresp(): end with 200
recvdoc parms: identity 494
header_load_cookies() entered
recvdoc(): entered
SetError() #0:
<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:xsd="http://www.w3.org/2001/XMLSchema";><soap:Body><ExecuteOperationResponse xmlns="http://www.aplicor.com/";><ExecuteOperationResult>&lt;Error Code="4016" Details="BMICIntegrationService, invalid User/Password, access to the service denied." /&gt;</ExecuteOperationResult></ExecuteOperationResponse></soap:Body></soap:Envelope>
http_close(): entered
HTTPAPI Ver 1.24beta11 released 2010-09-09
OS/400 Ver V6R1M0

http_persist_open(): entered
http_long_ParseURL(): entered
Converting relative URL.

WSDL2RPG Ver 1.13.2 released 2011-07-15

WSDL2RPG: RNX0100: Length or start position is out of range for the string operation.
          received from procedure: SignalException
                    and statement: 20
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------