Custom Function

Oct 7, 2009 at 3:48 PM

Hi,

I have now got the stage where I want to be able to add my own functions to the webservice.

I have used the LINQ system to add dbml file to the app directory. I have added a database table and created a function to insert data into the table.#

I am then calling that function from my mobile app but its timing out when calling the function.

What I have noticed is in the reference to 

http://webservices.DotNetNuke.com/TaxiRoute_Update_Taxi_Location

Is this correct? - it doesnt seem right to me?

'''<remarks/>
        <System.Web.Services.Protocols.SoapHeaderAttribute("IWebAuthendicationHeaderValue"),  _
         System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://webservices.DotNetNuke.com/TaxiRoute_Update_Taxi_Location", RequestNamespace:="http://webservices.DotNetNuke.com/", ResponseNamespace:="http://webservices.DotNetNuke.com/", Use:=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle:=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)>  _
        Public Function TaxiRoute_Update_Taxi_Location(ByVal UserID As Integer, ByVal Latitude As Long, ByVal Longitude As Long) As String
            Dim results() As Object = Me.Invoke("TaxiRoute_Update_Taxi_Location", New Object() {UserID, Latitude, Longitude})
            Return CType(results(0),String)
        End Function

Coordinator
Oct 7, 2009 at 4:35 PM

Where were you instructed to do that?

Oct 7, 2009 at 6:39 PM

Hi,

I was following this tutorial....

http://adefwebserver.com/DotNetNukeHELP/LinqTutorial/LinqTutorial3.htm

Trev

Coordinator
Oct 7, 2009 at 8:04 PM

I don't understand. That tutorial does not cover web services.