Consuming WebService from vbscript

M

mzam

Hi everyone,

I have a vbscript which is consuming WebMethods from a WebService. Whenever
the WebMethod returns a string or integer then no problem but when
the WebMethod returns a DataSet then the following error appears:

Error:
Attachment:Maximum retry on the connection exceeded. HRESULT=0x80004005:
Unspecified error
- Client:An unanticipated error occurred during the processing of this
request. HRESULT=0x80004005: Unspecified error
- Client:Sending the Soap message failed or no recognizable response was
received HRESULT=0x80004005: Unspecified error
- Client:Unspecified client error. HRESULT=0x80004005: Unspecified error

Here is the code:

Dim SOAPClient
Dim AppName
Dim User
Dim Result

AppName = "HFIF"
User = "DOMAIN\UserId"

Set SOAPClient = CreateObject("MSSOAP.SOAPClient30")

SOAPClient.mssoapinit ("http://localhost/ARMService.asmx?wsdl")

Result = SOAPClient.GetUserRights( AppName,User) 'Here is where the
exception is thrown. The WebMethod returns a DataSet.


Can anyone tell me what the problem could be?

Cheers.
 
M

M. Posseth

well this is simple ,,,,


you can only send complex data types between apps that are aware of these
types as datasets are defined in the framework they can only used by .Net
aware apps

so to send data to non .Net apps you should convert the dataset to a
"simple datatype" like a array of strings and then send it

regards

M. Posseth
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top