RE: [U2] SOAP over HTTPS

2008-09-19 Thread Larry Hiscock
Thanks :-)

The UD 6.1 docs don't contain any reference to SOAPCreateSecureRequest, but
it does work.

Larry Hiscock
Western Computer Services


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Janet Cedervall
Sent: Tuesday, September 16, 2008 8:08 PM
To: u2-users@listserver.u2ug.org
Subject: RE: [U2] SOAP over HTTPS

Yes, there's a SOAPCreateSecureRequest that works.  Or at least the person
who wrote the code below claims it works.  I can't help you with specifics,
as someone else wrote it. This was written for UniVerse.  (I started on
these SOAP calls for some QualComm webservices last week, and haven't had
much luck with my code yet!)

URL = https://truck-pc.net/WebServices/v1.1.7/DriverTechService.asmx?/WSDL;
SOAPAction = https://truck-pc.net/WebServices/v1.1.7/GetReport;

* CREATE SECURITY CONTEXT
   RCODE = createSecurityContext(ctx, )
   IF RCODE=0 THEN
  CRT 'createSecurityContext OK'
   END ELSE
  STOP 'ERROR - createSecurityContext - ':RCODE
   END
 * Add authentication rule
   RETURN = addAuthenticationRule(ctx, 2, VerificationStrength,
generous)
   RETURN = addAuthenticationRule(ctx, 2, PeerName, truck-pc.net)
 * CREATE SOAP REQUEST HANDLE
   RCODE=SOAPCreateSecureRequest(URL,SOAPAction,SoapReq,ctx)
   IF RCODE=0 THEN
  CRT 'SOAPCreateSecureRequest OK'
   END ELSE
  STOP 'ERROR - SOAPCreateSecureRequest - ':RCODE
   END

- Janet
Mission Petroleum Carriers
 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Larry Hiscock
Sent: Tuesday, September 16, 2008 2:14 PM
To: u2-users@listserver.u2ug.org
Subject: [U2] SOAP over HTTPS

Has anyone implemented the UniData SOAP functions over an HTTPS URL?  The
CALLHTTP stuff, on which the SOAP stuff is built, has an option for creating
a secure request, but the soapcreaterequest function doesn't seem to have
the equivalent.

Is there such a beast, or do I need to revert to the lower level callhttp
protocols?

FWIW, I'm on UniData 6.1, and writing a webservice CONSUMER ...

TIA

Larry Hiscock
Western Computer Services
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


[U2] SOAP over HTTPS

2008-09-16 Thread Larry Hiscock
Has anyone implemented the UniData SOAP functions over an HTTPS URL?  The
CALLHTTP stuff, on which the SOAP stuff is built, has an option for creating
a secure request, but the soapcreaterequest function doesn't seem to have
the equivalent.

Is there such a beast, or do I need to revert to the lower level callhttp
protocols?

FWIW, I'm on UniData 6.1, and writing a webservice CONSUMER ...

TIA

Larry Hiscock
Western Computer Services
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] SOAP over HTTPS

2008-09-16 Thread Janet Cedervall
Yes, there's a SOAPCreateSecureRequest that works.  Or at least the person
who wrote the code below claims it works.  I can't help you with specifics,
as someone else wrote it. This was written for UniVerse.  (I started on
these SOAP calls for some QualComm webservices last week, and haven't had
much luck with my code yet!)

URL = https://truck-pc.net/WebServices/v1.1.7/DriverTechService.asmx?/WSDL;
SOAPAction = https://truck-pc.net/WebServices/v1.1.7/GetReport;

* CREATE SECURITY CONTEXT
   RCODE = createSecurityContext(ctx, )
   IF RCODE=0 THEN
  CRT 'createSecurityContext OK'
   END ELSE
  STOP 'ERROR - createSecurityContext - ':RCODE
   END
 * Add authentication rule
   RETURN = addAuthenticationRule(ctx, 2, VerificationStrength,
generous)
   RETURN = addAuthenticationRule(ctx, 2, PeerName, truck-pc.net)
 * CREATE SOAP REQUEST HANDLE
   RCODE=SOAPCreateSecureRequest(URL,SOAPAction,SoapReq,ctx)
   IF RCODE=0 THEN
  CRT 'SOAPCreateSecureRequest OK'
   END ELSE
  STOP 'ERROR - SOAPCreateSecureRequest - ':RCODE
   END

- Janet
Mission Petroleum Carriers
 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Larry Hiscock
Sent: Tuesday, September 16, 2008 2:14 PM
To: u2-users@listserver.u2ug.org
Subject: [U2] SOAP over HTTPS

Has anyone implemented the UniData SOAP functions over an HTTPS URL?  The
CALLHTTP stuff, on which the SOAP stuff is built, has an option for creating
a secure request, but the soapcreaterequest function doesn't seem to have
the equivalent.

Is there such a beast, or do I need to revert to the lower level callhttp
protocols?

FWIW, I'm on UniData 6.1, and writing a webservice CONSUMER ...

TIA

Larry Hiscock
Western Computer Services
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/