FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Web Service PocketSoap Sample Working !!!
Posts: 182
Joined: Tue Oct 18, 2005 10:01 AM
Web Service PocketSoap Sample Working !!!
Posted: Mon Oct 05, 2009 06:11 PM

Hi friends,

Now that Microsoft abandoned MSSOAP, the best is use PocketSoap instead, this is a working sample (tested on Harbour only)

---cut---
local oEnvelope := Win_OleCreateObject( "PocketSOAP.Envelope.2" )
local oHttp := Win_OleCreateObject( "PocketSOAP.HTTPTransport.2" )

oEnvelope:EncodingStyle = ""
oEnvelope:SetMethod( "InvertStringCase", "http://www.dataaccess.com/webservicesserver/" )
oEnvelope:Parameters:Create( "sAString", "THIS IS LOWER - this is upper" )

oHttp:Send( "http://www.dataaccess.com/webservicesserver/textcasing.wso?WSDL", oEnvelope:Serialize() )

oEnvelope:Parse( oHttp )

MsgInfo( oEnvelope:Parameters:Item( 0 ):Value )
---cut---

get pocket soap from: http://www.pocketsoap.com/

Regards,

Toninho.

PS: Thanks Luiz Culick for indicate pocketsoap and for teach me.

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Web Service PocketSoap Sample Working !!!
Posted: Tue Oct 06, 2009 07:46 PM

Toninho,

Thanks! :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 4
Joined: Tue Sep 21, 2010 04:49 PM
Re: Web Service PocketSoap Sample Working !!!
Posted: Mon Sep 27, 2010 06:26 PM

Toninho,

Obrigado pela ótima alternativa !
Funcionou perfeitamente.

O detalhe é que sempre temos que instalar o pacote PocketSopa para que as DLL fiquem registradas correto ?
Você conhece alguma forma de utilizar apenas portando as DLL no diretório da aplicação ?

Obrigado

Posts: 14
Joined: Tue Sep 10, 2013 08:08 PM
Re: Web Service PocketSoap Sample Working !!!
Posted: Tue Jun 09, 2015 08:43 PM

Hi,
I have set up pocketSOAP on windows 8.1 but it gives

xLINK: error: Unresolved external symbol '_HB_FUN_WIN_OLECREATEOBJECT referenced from

at compile.

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Web Service PocketSoap Sample Working !!!
Posted: Wed Jun 10, 2015 07:28 AM

Jorjio,

What xharbour version is it ? It seems as an old one.

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion