CreateObject problem

CreateObject problem

Postby richard-service » Sun Aug 12, 2018 2:59 pm

Hi
How to fix this problem?

Error description: Error TOleAuto/65535 : TOLEAUTO:NEW
Args:
[ 1] = C MSSOAP.SoapClient30

Stack Calls
===========
Called from: => THROW( 0 )
Called from: source\rtl\win32ole.prg => TOLEAUTO:NEW( 0 )
Called from: source\rtl\win32ole.prg => CREATEOBJECT( 0 )

Code: Select all  Expand view  RUN

FUNCTION testurl()

LOCAL cJson:='{"sHospID":"1536151042","sHcaID":"D101460924","sPatID":"B120506881","sub":[{"sType":"0","sub":[{"sOrder":"C09DX03"},{"sOrder":"G04CA03"}]}]}'
local cUrl:="ttps://medcloudws.nhi.gov.tw:7008/imie0000/NHIIMI01.asmx"
      oSoapClient:=CreateObject( "MSSOAP.SoapClient30" )
      oSoapclient:MsSoapInit(cUrl)
      oSoapclient:GetMedPrtData(cjson)
RETURN Nil

 
Best Regards,

Richard

Harbour 3.2.0dev (r2402101027) => Borland C++ v7.7 32bit
MySQL v8.0 /ADS v10
Harbour 3.2.0dev (r2011030937) => Borland C++ v7.4 64bit
User avatar
richard-service
 
Posts: 804
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan

Re: CreateObject problem

Postby cnavarro » Sun Aug 12, 2018 4:50 pm

Dear Richard, this url is correct?

local cUrl:="ttps://medcloudws.nhi.gov.tw:7008/imie0000/NHIIMI01.asmx"
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
cnavarro
 
Posts: 6549
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: CreateObject problem

Postby richard-service » Mon Aug 13, 2018 3:04 am

cnavarro wrote:Dear Richard, this url is correct?

local cUrl:="ttps://medcloudws.nhi.gov.tw:7008/imie0000/NHIIMI01.asmx"



Dear Cnavarro,

I fix it and got error message below:


Code: Select all  Expand view  RUN

LOCAL cJson:='{"sHospID":"1536151042","sHcaID":"D101460924","sPatID":"B120506881","sub":[{"sType":"0","sub":[{"sOrder":"C09DX03"},{"sOrder":"G04CA03"}]}]}'
local cUrl:="https://medcloudws.nhi.gov.tw:7008/imie0000/NHIIMI01.asmx"
      oSoapClient:=CreateObject( "MSSOAP.SoapClient30" )
      oSoapclient:MsSoapInit(cUrl)
      oSoapclient:GetMedPrtData(cjson)
RETURN Nil
 
Best Regards,

Richard

Harbour 3.2.0dev (r2402101027) => Borland C++ v7.7 32bit
MySQL v8.0 /ADS v10
Harbour 3.2.0dev (r2011030937) => Borland C++ v7.4 64bit
User avatar
richard-service
 
Posts: 804
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan

Re: CreateObject problem

Postby karinha » Mon Aug 13, 2018 3:34 pm

João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7846
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: CreateObject problem

Postby richard-service » Wed Aug 15, 2018 3:16 am

Hi
Today, I use Harbour to compile it and got error message below:

    Compiler version: Harbour 3.2.0dev (r1801051438)
    FiveWin version: FWH 18.05
    C compiler version: Borland/Embarcadero C++ 7.0 (32-bit)
    Windows version: 6.1, Build 7601 Service Pack 1

    Error occurred at: 08/15/18, 11:10:31
    Error description: (DOS Error -2147352567) WINOLE/1007 WSDLReader:XML Parser failed at linenumber 61, lineposition 19, reason is: The name in the end tag of the element must match the element type in the start tag.
    HRESULT=0x1: 功能錯誤。
    - WSDLReader:Loading of the WSDL file failed HRESULT=0x80070057: 參數錯誤。
    - Client:One of the parameters supplied is invalid. HRESULT=0x80070057: 參數錯誤。
    (0x80020009): WSDLReader
    Args:
    [ 1] = C https://medcloudws.nhi.gov.tw:7008/imie ... IMI01.asmx

    Stack Calls
    ===========
    Called from: => TOLEAUTO:MSSOAPINIT( 0 )
    Called from: TEST1.prg => MAIN( 5 )

Any good solution for welcome.
Best Regards,

Richard

Harbour 3.2.0dev (r2402101027) => Borland C++ v7.7 32bit
MySQL v8.0 /ADS v10
Harbour 3.2.0dev (r2011030937) => Borland C++ v7.4 64bit
User avatar
richard-service
 
Posts: 804
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 39 guests