Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #10200 > unrolled thread
| Started by | BenWoestenburg@ziggo.nl |
|---|---|
| First post | 2017-02-23 04:33 -0800 |
| Last post | 2017-02-25 01:51 -0800 |
| Articles | 7 — 4 participants |
Back to article view | Back to comp.lang.clipper.visual-objects
Soap problem BenWoestenburg@ziggo.nl - 2017-02-23 04:33 -0800
Re: Soap problem Franz Rachbauer <office@rachbauer.org> - 2017-02-23 13:39 +0100
Re: Soap problem BenWoestenburg@ziggo.nl - 2017-02-23 05:01 -0800
Re: Soap problem Sherlock <sherlock@sherlock.com.au> - 2017-02-23 06:14 -0800
Re: Soap problem Sherlock <sherlock@sherlock.com.au> - 2017-02-23 06:17 -0800
Re: Soap problem "Jamal" <noooospam@example.com> - 2017-02-23 16:02 -0500
Re: Soap problem BenWoestenburg@ziggo.nl - 2017-02-25 01:51 -0800
| From | BenWoestenburg@ziggo.nl |
|---|---|
| Date | 2017-02-23 04:33 -0800 |
| Subject | Soap problem |
| Message-ID | <8521a270-7489-4e22-b9bf-6ab36a8cf390@googlegroups.com> |
Hello VO-ers,
I wrote the following code to recieve data from a website:
LOCAL oSoapClient AS iSoapClient
LOCAL cUrl AS STRING
LOCAL cXml AS STRING
LOCAL cTxt AS STRING
LOCAL uResult AS USUAL
oSoapClient:= ISoapClient{ "MSSOAP.SoapClient30"}
IF oSoapClient:fInit
//wsdl server
oSoapClient:[ ClientProperty, "ServerHTTPRequest"]:=TRUE
//does not work
cUrl:="https://81532.afasonlineconnector.nl/profitservices/appconnectorget.asmx?wsdl"
//works
// cUrl:="http://e-bility.e-web.com.au/CatalystWebService/CatalystEcommerceWebservice.asmx?WSDL"
oSoapClient:mssoapinit( cUrl, NIL, NIL, NIL)
//xml incl http header
cXml:="c:\Maatwerk\Soap\ProfitJaar.xml"
cTxt:=MemoRead( cXml)
//opvragen
uResult:=oSoapClient:GetData( cTxt)
ELSE
FoutBoks( SELF, "Soap", "Geen Soap")
ENDIF
RETURN NIL
The "mssoapinit" does not work. It seems the site can not be found. I have tried the site in chrome and it exists and can be opened.
I have also tried other sites (see //works) and then the code works fine.
The only difference I see is that the url has a prefix https instead of http. Does that need another approach?
Any help would be appreciated.
Ben Woestenburg
[toc] | [next] | [standalone]
| From | Franz Rachbauer <office@rachbauer.org> |
|---|---|
| Date | 2017-02-23 13:39 +0100 |
| Message-ID | <o8ml5p$1f15$1@gioia.aioe.org> |
| In reply to | #10200 |
Do you use XP to connect to this https site? XP can't connect to https
because of its IE.
Regards, Franz
Am 23.02.2017 um 13:33 schrieb BenWoestenburg@ziggo.nl:
> Hello VO-ers,
>
> I wrote the following code to recieve data from a website:
>
> LOCAL oSoapClient AS iSoapClient
> LOCAL cUrl AS STRING
> LOCAL cXml AS STRING
> LOCAL cTxt AS STRING
> LOCAL uResult AS USUAL
>
> oSoapClient:= ISoapClient{ "MSSOAP.SoapClient30"}
> IF oSoapClient:fInit
> //wsdl server
> oSoapClient:[ ClientProperty, "ServerHTTPRequest"]:=TRUE
>
> //does not work
> cUrl:="https://81532.afasonlineconnector.nl/profitservices/appconnectorget.asmx?wsdl"
> //works
> // cUrl:="http://e-bility.e-web.com.au/CatalystWebService/CatalystEcommerceWebservice.asmx?WSDL"
>
> oSoapClient:mssoapinit( cUrl, NIL, NIL, NIL)
>
> //xml incl http header
> cXml:="c:\Maatwerk\Soap\ProfitJaar.xml"
> cTxt:=MemoRead( cXml)
>
> //opvragen
> uResult:=oSoapClient:GetData( cTxt)
> ELSE
> FoutBoks( SELF, "Soap", "Geen Soap")
> ENDIF
>
> RETURN NIL
>
> The "mssoapinit" does not work. It seems the site can not be found. I have tried the site in chrome and it exists and can be opened.
>
> I have also tried other sites (see //works) and then the code works fine.
>
> The only difference I see is that the url has a prefix https instead of http. Does that need another approach?
>
> Any help would be appreciated.
>
> Ben Woestenburg
>
[toc] | [prev] | [next] | [standalone]
| From | BenWoestenburg@ziggo.nl |
|---|---|
| Date | 2017-02-23 05:01 -0800 |
| Message-ID | <563f736a-e6d9-4c7c-8368-5e4cba058a51@googlegroups.com> |
| In reply to | #10200 |
It is XP. I will trie it on another PC. Thanks Franz.
[toc] | [prev] | [next] | [standalone]
| From | Sherlock <sherlock@sherlock.com.au> |
|---|---|
| Date | 2017-02-23 06:14 -0800 |
| Message-ID | <4f9edc7d-3479-4d51-acb5-6df97c865597@googlegroups.com> |
| In reply to | #10202 |
On Friday, February 24, 2017 at 12:01:29 AM UTC+11, BenWoes...@ziggo.nl wrote:
> It is XP. I will trie it on another PC. Thanks Franz.
Remember on XP soapclient was native on later removed and version you instal needs the 30 as you have
oSoapClient:= ISoapClient{ "MSSOAP.SoapClient30"}
but XP
oSoapClient:= ISoapClient{ "MSSOAP.SoapClient"}
[toc] | [prev] | [next] | [standalone]
| From | Sherlock <sherlock@sherlock.com.au> |
|---|---|
| Date | 2017-02-23 06:17 -0800 |
| Message-ID | <d82fbf40-34b5-48bb-8c29-b79f6201ce72@googlegroups.com> |
| In reply to | #10200 |
Some code I posted 100 years ago with the technique to work out original say XP and later depreciated version.
I do not have MS soap code anymore.. wrote our own.
Phil
---
IF SELF:oSoapClient = NULL_OBJECT
cClient := "MSSOAP.SoapClient"
SELF:oSoapClient := OLEAutoObject{ cClient }
// Dont .. does not work 30" "MSSOAP.SoapClient"
IF ! SELF:oSoapClient:fInit
cClient += "30"
SELF:oSoapClient := OLEAutoObject{ cClient }
// if SOAP TOOLKIT installed "MSSOAP.SoapClient30"
ENDIF
SELF:cUrl := "https://live.xxx.com/PaymentExchange.asmx?wsdl"
//
IF SELF:oSoapClient:fInit
SELF:oSoapClient:mssoapinit( SELF:cUrl, "", "", "" )
ELSE
SELF:lSoapError := TRUE
ErrorBox{, "The required " + cClient + " was not initialised.. aborting." + CRLF + CRLF + "You can install the SOAP toolkit from the Sherlock website" + CRLF + CRLF + "www.sherlockxxx.com.au/sherlock32/soapsdk.exe" + CRLF + CRLF + ;
"You must Reboot your machine after installation for it to work." }:Show()
BREAK
ENDIF
ENDIF
[toc] | [prev] | [next] | [standalone]
| From | "Jamal" <noooospam@example.com> |
|---|---|
| Date | 2017-02-23 16:02 -0500 |
| Message-ID | <o8nil7$ki8$1@news.albasani.net> |
| In reply to | #10200 |
You can avoid Soap and use the following:
Local XMLReq as object
XMLReq := OLEAutoObject{"MSXML2.ServerXMLHTTP"}
IF XMLReq:fInit
XMLReq:open("POST",
"https://81532.afasonlineconnector.nl/profitservices/appconnectorget.asmx",
FALSE)
XMLReq:setRequestHeader("Content-Type", "text/xml; charset=utf-8" )
XMLReq:setRequestHeader("SOAPAction",
"urn:Afas.Profit.Services/GetData")
XMLReq:Send(xmlbody) // pass any data as xml string
? XMLReq:responseText
else
? "Errror"
endif
Jamal
wrote in message
news:8521a270-7489-4e22-b9bf-6ab36a8cf390@googlegroups.com...
Hello VO-ers,
I wrote the following code to recieve data from a website:
LOCAL oSoapClient AS iSoapClient
LOCAL cUrl AS STRING
LOCAL cXml AS STRING
LOCAL cTxt AS STRING
LOCAL uResult AS USUAL
oSoapClient:= ISoapClient{ "MSSOAP.SoapClient30"}
IF oSoapClient:fInit
//wsdl server
oSoapClient:[ ClientProperty, "ServerHTTPRequest"]:=TRUE
//does not work
cUrl:="https://81532.afasonlineconnector.nl/profitservices/appconnectorget.asmx?wsdl"
//works
//
cUrl:="http://e-bility.e-web.com.au/CatalystWebService/CatalystEcommerceWebservice.asmx?WSDL"
oSoapClient:mssoapinit( cUrl, NIL, NIL, NIL)
//xml incl http header
cXml:="c:\Maatwerk\Soap\ProfitJaar.xml"
cTxt:=MemoRead( cXml)
//opvragen
uResult:=oSoapClient:GetData( cTxt)
ELSE
FoutBoks( SELF, "Soap", "Geen Soap")
ENDIF
RETURN NIL
The "mssoapinit" does not work. It seems the site can not be found. I have
tried the site in chrome and it exists and can be opened.
I have also tried other sites (see //works) and then the code works fine.
The only difference I see is that the url has a prefix https instead of
http. Does that need another approach?
Any help would be appreciated.
Ben Woestenburg
[toc] | [prev] | [next] | [standalone]
| From | BenWoestenburg@ziggo.nl |
|---|---|
| Date | 2017-02-25 01:51 -0800 |
| Message-ID | <b3e60687-1edc-4cbd-aa2c-660560cb6149@googlegroups.com> |
| In reply to | #10209 |
Works like a charm, thanks guys.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.clipper.visual-objects
csiph-web