Calling a method of webservice consumer

Hi all,

i’ve a webservice consumer, in which is defined

Class FaultSOAPException_n2 As WS_FAULT

Public SOAPException As XSD_ANYTYPE



Sub NEW

End Sub

End Class

webservice expose a method like this:

Function getUO(uo As XSD_STRING, Fault1 As FaultSOAPException_n2) As Uo_n1

	Set getUo = Service.Invoke("getUo", uo, Fault1)

End Function

How can i pass the second parameter (Fault1) from a lotusscript agent that has to call the webservice? i try something like this:

’ instance of the ws class

Dim UoSIL As New UoSilWSPortType_n2

’ instanceof del fault class

Set f1 = New FaultSOAPException_n2

Set u = UoSIL.getUo(tmpValue, f1)

but i’ve the following error

“Type mismatch on: f1”

Note that first parameter “tmpValue” is correctly passed.

Anybody can help me please?

thx in advance

Andrea

Subject: SOLVED

put

Dim f1 As New FaultSOAPException_n2

instead of

Set f1 = New FaultSOAPException_n2