Curl and webservice fault.


Sabrina Horst
 
Edited

Hi 

Again issues with the webservice and curl.

We use curl to get information from a webservice into magic9 and also XPA 2.5 , Both have the same issue.

From within magic:
invoke oscmd : 'O:\Magic9\Curl\curl.exe --ssl-reqd --tlsv1.2 -k https://ws1.webservices.nl/rpc/get-simplexml/internationalAddressSearchV2/meilink_BOR_automatisering/b5d1748a741facc505ff51f8f7c0a0cf//ROQ%20US/12668%20HANCOCK%20ROAD///CLERMONT///USA//  --output H:\resultaat_bl.xml'

The result in the xml is :
<?xml version="1.0" encoding="UTF-8"?>
<response>  <fault>
    <faultCode>-32500</faultCode>
    <faultString>internationalpostcode::international_get_by_address::insufficient_parameters : Insufficient parameters.</faultString>
  </fault></response>

But if I enter the same string in the browser:
https://ws1.webservices.nl/rpc/get-simplexml/internationalAddressSearchV2/meilink_BOR_automatisering/b5d1748a741facc505ff51f8f7c0a0cf//ROQ US/12668 HANCOCK ROAD///CLERMONT///USA//
I get 20+ results



It looks like curl is the bottleneck here. 
But why ?

Any ideas ? we do need to use ssl and v1.2

thanks Sabrina



Todd Baremore
 

Sabrina,

The URLs in your example are different.

Curl:           https://ws1.webservices.nl/rpc/get-implexml/internationalAddressSearchV2/meilink_BOR_automatisering/b5d1748a741facc505ff51f8f7c0a0cf//ROQ%20US/12668%20HANCOCK%20ROAD///CLERMONT///USA//
Browser:    https://ws1.webservices.nl/rpc/get-simplexml/internationalAddressSearchV2/meilink_BOR_automatisering/b5d1748a741facc505ff51f8f7c0a0cf//ROQ US/12668 HANCOCK ROAD///CLERMONT///USA//
Todd
On 8/10/2022 3:37 AM, Sabrina Horst wrote:

Hi 

Again issues with the webservice and curl.

We use curl to get information from a webservice into magic9 and also XPA 2.5 , Both have the same issue.

From within magic:
invoke oscmd : 'O:\Magic9\Curl\curl.exe --ssl-reqd --tlsv1.2 -k https://ws1.webservices.nl/rpc/get-implexml/internationalAddressSearchV2/meilink_BOR_automatisering/b5d1748a741facc505ff51f8f7c0a0cf//ROQ%20US/12668%20HANCOCK%20ROAD///CLERMONT///USA//  --output H:\resultaat_bl.xml'

The result in the xml is :
<?xml version="1.0" encoding="UTF-8"?>
<response>  <fault>
    <faultCode>-32500</faultCode>
    <faultString>internationalpostcode::international_get_by_address::insufficient_parameters : Insufficient parameters.</faultString>
  </fault></response>

But if I enter the same string in the browser:
https://ws1.webservices.nl/rpc/get-simplexml/internationalAddressSearchV2/meilink_BOR_automatisering/b5d1748a741facc505ff51f8f7c0a0cf//ROQ US/12668 HANCOCK ROAD///CLERMONT///USA//
I get 20+ results



It looks like curl is the bottleneck here. 
But why ?

Any ideas ? we do need to use ssl and v1.2

thanks Sabrina




Sabrina Horst
 

Sorry typ-error.

They both are get-simplex

Testing with a bat-file from magic seems to work with exactly the same execute in it as with the invoke com.
Weird.