Hi Everybody.

We are trying to consome the wsping from https://nfsehomol.garibaldi.rs.gov.b.../Servicos?wsdl.

Code:
Object oButton1 is a Button
    Set Location to 15 21
    Set Label to 'oButton1'

    // fires when the button is clicked
    Procedure OnClick
        String sRetorno 
        Handle hoWSGaribaldi
        
        Get Create (RefClass(cWSGaribaldiRSNFSeService)) to hoWSGaribaldi
        
        Get wsping of hoWSGaribaldi "db" to sRetorno
        
        Send Info_Box sRetorno
    End_Procedure

End_Object
We got the error "4422 - Soap/Http Transfer error". Detail: The content type received is invalid (text/plain;charset=ISO-8859-1).

We tried to create a cXmlHttpTransfer to debug:

Code:
Object oHTTPalt is a cXmlHttpTransfer
    Set pbClearHeaders to False
    Set piBufferSize to 16000
    
    Procedure OnDataReceived String sContentType String sData
        Forward Send OnDataReceived sContentType sData
    End_Procedure
End_Object

Class cWSGaribaldiRSNFSeService is a cClientWebService

    Procedure Construct_object
        Forward send Construct_object
        Set psServiceLocation     to 'http://nfsehomol.garibaldi.rs.gov.br/portal/Servicos'
        Set psWSDLLocation        to 'https://nfsehomol.garibaldi.rs.gov.br/portal/Servicos?wsdl'
        
        
        Set phoHttp to (oHTTPalt)        
    End_Procedure
The sData parameter is "HTTP GET not supported".

The Web Service provider says that it works with other languages.

Any idea?

Regards,

Ivan Kaupa