Hi Guys
I need to send a class through a WS .net from Vbscript
I mean: I need to consume a webService that is develop in .Net 2010 with ASP classic.
But this WebService, needs to back a Class with UserName and password
I made the class in VBScript in dreamweaver:
<%
Class IdCard
Private m_usuario
Private m_password
Private m_IsBeta
Public Property Get Usuario()
Usuario = m_Usuario
End Property
Public Property Let Usuario(p_Data)
m_Usuario = p_Data
End Property
Public Property Get Password()
Password = m_Password
End Property
Public Property Let Password(p_Data)
m_Password = p_Data
End Property
Public Property Get IsBeta()
IsBeta = m_IsBeta
End Property
Public Property Let IsBeta(p_Data)
m_IsBeta = p_Data
End Property
End Class
%>
And this is how I instantiate the Class page.asp:
SET Seguridad = new idCard
Seguridad.usuario = "CgUlDSJZvIc="
Seguridad.password = "/px5j+mfNBc="
SendClassToAnotherPage(Seguridad)
Then I send this class in the web method page2.asp:
function SendClassToAnotherPage(Seguridad)
Set Result = oSoapClient.WsAuto(seguridad)
but.. after execute the line shown above...this throws an Error:
"ERROR5 \SoapMapper\SoapMapper:Saving SoapMapper idUser failed HRESULT=0x80004002: Interfaz no compatible - Client:Unspecified client error. HRESULT=0x80004002: Interfaz no compatible "
but if I change the data:
Set Result = oSoapClient.WsAuto("some string data and not a class")
The response is fine. I mean ...with my own customize errors.
<wsAutoResult>
<Folio>0</Folio>
<Status>Usuario Invalido</Status>
<hasErrors>true</hasErrors>
</wsAutoResult>
</wsAutoResponse>
Thanks people.