Hi - the first port of call is to enable the protocol logging 

E.G.  
err=protocolLogging("SoapTest.log","ON",10)

You can then look at the log for errors

Does The https end point you are using allow self certification
authentication?  If not you may need to do a bit more work on certificates.

Restful webservices are nothing magical, it is still just a http(s) endpoint
, the difference is you normally send more info in the path as well as post
data, and you use the http verbs - Seriously I would encourage you to read
up about http so you understand what is going on underneath - it is pretty
simple its only a text conversation over a socket, you can do http
conversations via telnet, or use a tool outside of uv like curl/wget on
linux or wfetch on windows just to see what headers are being passed etc.


Also if you want -I can email you my simple https post sub I use with
endpoints that allow self cert




-----Original Message-----
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Peter Cheney
Sent: 20 February 2013 07:57
To: U2 Users List (u2-users@listserver.u2ug.org)
Subject: [U2] UV: Consuming https service from within UVBasic using SOAP

Hi Everyone,

Think I'm suffering a bit from old dog new trick syndrome...

Been reading up on and playing with the Soap functions in UV basic but can't
seem to get any joy with https url that I've been supplied to use. Was
wondering if anyone might have some advice?

In particular I've been playing with the code examples here:
https://u2devzone.rocketsoftware.com/accelerate/articles/soap-api/soap-api

Also came across this in which I recognised some of the list members:
http://comments.gmane.org/gmane.comp.db.u2.general/67904

Upgrading to UV11.1.9 may well be a better choice with availability of
Dynamic Objects for JSON but we're stuck with 10.3.4 for a good while yet
due to other constraints.

Code:
    Ret = SoapCreateRequest(URL , SoapAction , SoapReq)
     vs
    Ret = SoapCreateSecureRequest(URL , SoapAction , SoapReq , SecHandle)

For the https url I tried using the SoapCreateSecureRequest but when I
compile I get a variable unassigned for the 3rd "SoapReq" parameter. Is our
UV version the issue here?
Another thought I had was that the security_handle variable is somehow
affecting the other variables.

Using the SoapCreateRequest function the program compiles OK with no errors
(the 3rd "SoapReq" parameter is assigned OK however I get an error 2 -
network subsystem failure for the https url. If I point at the http url then
I at least get a 404 not found. I can also telnet from the host to both
ports 80 and 443 no worries so comms appear OK.

The project is required to fire off DB events into our new workflow system
hence my focus in this direction. Have also read about just writing a
message to a pipe etc and other intermediate solutions as per the above but
it'd be real nice if I can get this working via soap.

Oh and one other question please. Is it possible to have a UV basic program
communicate with or consume / use a restful http service? I may have my
wires crossed here so please set me straight. I've seen examples of (and we
currently use) a web front end accessing a UV db but not the other way
around.

Many thanks in advance for your time.

Cheers
Peter

 
----------------------------------------------------------------------------
---
Note: 
This email (inc all attachments) is for the use of the intended recipient(s)
only.
Privileged or confidential information may be contained in this
communication. If you have received this email in error, please notify the
sender immediately and then delete all copies of this message from your
computer network. If you are not the intended recipient, you must not keep,
use, disclose, copy or distribute this email without the author's prior
permission. If you are the intended recipient and you do not wish to receive
similar electronic messages from us in future, then please respond to the
sender to this effect. 
We have taken precautions to minimise the risk of transmitting software
viruses, but advise you to carry out your own virus checks on this email and
its attachments. We do not accept liability for any loss or damage caused by
software viruses and do not represent that this transmission is free from
viruses or other defects. 
Firstmac Limited (ABN 59 094 145 963) (AFSL 290600) 
 
----------------------------------------------------------------------------
---
_______________________________________________
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users
-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2012.0.2238 / Virus Database: 2639/5616 - Release Date: 02/19/13

_______________________________________________
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

Reply via email to