Click here to Skip to main content
12,943,742 members (63,569 online)
Rate this:
Please Sign up or sign in to vote.
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 'As String
        Private m_password ' As Integer
        Private m_IsBeta 'As boolean

        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="

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.
<Status>Usuario Invalido</Status>

Thanks people.
Posted 23-Jan-13 11:23am
Updated 23-Jan-13 11:33am
BC @ CV2.6K
BC @ CV 23-Jan-13 17:41pm
Perhaps the service is expecting an XML serialized object. What if instead of sending the class you sent its XML representation. Such as:
Rene Bustos 24-Jan-13 10:16am
that sound good.. let me try that and i'll post the results. thanks
BC @ CV 24-Jan-13 13:47pm
Is your XML formated properly?
Rene Bustos 24-Jan-13 13:56pm
i think yes.. i check the Specifications of SOAP and it appear is all fine.
but still throwme the error.
BC @ CV 24-Jan-13 14:48pm
Well, I can only guess from your error message, "...Interfaz no compatible...", that your XML (serialized object) doesn't match the interface of the object that's expected by the WS.
Rene Bustos 24-Jan-13 14:53pm
could be.
Thanks so much for the Help
i keep trying to find the answer
Regards from Mexico.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Doesn't work :S.
i have try this ways..
1.- Seding all the request XML:

<soap:envelope xmlns:xsi="" xmlns:xsd="" xmlns:soap="">
    <wsauto xmlns="">

i store all the XML structure in a variable an i Put in the Ws Method like this.
IdCard, Poliza and Hash
But the WS Method needs tree arguments,, so i split in tree variables and i passed to the Ws Method Like this

But Still throw an error.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

    Print Answers RSS
Top Experts
Last 24hrsThis month
OriginalGriff 4,643
CHill60 2,970
Maciej Los 2,348
Jochen Arndt 1,900
ppolymorphe 1,765

Advertise | Privacy | Mobile
Web02 | 2.8.170518.1 | Last Updated 24 Jan 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100