WSE, Datasets, help needed asap!

Ok here is my problem,

I've been working with the WSE Quickstart examples, I was able to write my own code to do what I need.. however I need a dataset to be returned..

I've tried a couple methods here and can't figure it out, can someone help me with whats wrong?

1. Obtained dataset from SQL server, converted dataset into xml, returned the class object which contained a 'xmlstring' and 'checksum'. This resulted in a 'Server unavailable'

2. Return the dataset directly instead of a class object. This resulted in a 'Server Unavailable'

3. I've tried the following "fix" to get a dataset, still no luck.

Please help me..

<SoapMethod("http://localhost/pftalk/ProviderRequest")> _

PublicFunction GetProviders(ByVal requestAs ProviderRequest)As DataSet

Dim resultEnvelopeAs SoapEnvelope

Dim dsAs DataSet

'ds = MyBase.SendRequestResponse("GetProviders", request).GetBodyObject(GetType(DataSet), SoapServiceAttribute.TargetNamespace)

'Return ds

resultEnvelope =MyBase.SendRequestResponse("GetProviders", request)

ds = XmlSerializerCache.GetXmlSerializer(GetType(DataSet), "http://localhost/pftalk").Deserialize(New StringReader(resultEnvelope.Body.InnerXml))

ds = resultEnvelope.GetBodyObject(GetType(DataSet))


return ds

EndFunction
Scott Taylor

[2409 byte] By [ScottTaylor] at [2007-12-16]
# 1
A new day, anyone have any suggestions?
ScottTaylor at 2007-9-8 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 2

Hi Scott,

I don't think the error you're seeing is because of a problem getting the dataset. Where does the error occur (in the code calling the method or in the method itself)? Can you get a soap method that just returns a simple string to work?

Craig Vick

VB .NET Dev Team

CraigVick at 2007-9-8 > top of Msdn Tech,Visual Basic,Visual Basic General...