[Mono-dev] Fwd: webservice under mono/xsp

Chakotey STME chakoteystme at gmail.com
Tue Sep 21 05:36:49 EDT 2010


Thanks for your answer, but that doesn't really help me.
I have have the same syntax but I get the error.

I have a workaround:

I put a dll-File in my bin-directory. In this dll-file is a class (Testklasse).
Then I put this source into my asmx-file:

<%@ WebService Language="VB" Class="Test" %>

Imports System.Web
Imports System.Web.Services
Imports System.Web.Services.Protocols
Imports Testklasse

<WebService(Namespace:="http://tempuri.de/")> _
<WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Public Class Test
    Inherits System.Web.Services.WebService

    <WebMethod()> _
    Public Function GetAllHosts() As String()
	Dim t as new Testklasse()
	Dim s1 as String
	s1=t.DoThomething()

	Dim myString(2) As String
	myString(1)=s1
	return myString
    End Function

End Class


But I don't know why this works and the other way not.

Does anybody know the reason?

thanks

2010/9/20 Kris Ray <kray at landmarkdigital.com>:
>
> I have a little different scenario, but My webservice is setup like this:
>
> <%@ WebService Language="C#" Class="Company.WebServices.Stuff.StuffService" %>
>
> My bin folder contains the dlls for the "StuffService" and other associated libraries.
>
> Hopefully this helps...
>
> thanks,
> Kris
>
>
> ________________________________________
> From: mono-devel-list-bounces at lists.ximian.com [mono-devel-list-bounces at lists.ximian.com] On Behalf Of Chakotey STME [chakoteystme at gmail.com]
> Sent: Monday, September 20, 2010 3:10 AM
> To: mono-devel-list at lists.ximian.com
> Subject: [Mono-dev] Fwd: webservice under mono/xsp
>
> Hello Community,
>
> I have still the same problem.
> I can't use a dll-file under xsp.
> I checked my source for case-sensitive and all words are correct.
> I copied the dll-library into a bin-directory but without an effect.
>
> my xsp-version: 2.4.3.0
> my mono-version: Mono JIT compiler version 2.4.4
> mono-vbnc-version: Visual Basic.Net Compiler version 0.0.0.5914
>
> I really have to solve this problem.
>
> If there is no solution for my problem I can't use mono for my webservice.
>
> Does anybody have an idea?
>
> thanks
>
> ---------- Forwarded message ----------
> From: Chakotey STME <chakoteystme at gmail.com>
> Date: 2010/9/13
> Subject: webservice under mono/xsp
> To: mono-devel-list at lists.ximian.com
>
>
> Hello Community,
>
> I have a webservice-project with nearly no functions and I want to
> publish it in my local network.
>
> Under Windows with IIS I have no problem to publish my webservice.
> I have a precompiled library (my VB-Code) and a asmx-file.
>
> Here is the content of my asmx-file:
>
> <%@ WebService Language="VB" CodeBehind="~/App_Code/MYVBCLASS.vb"
> Class="PROJECTNAME.CLASSNAME" %>
>
>
>
> It works good under the IIS.
>
> If I try it under mono and XSP I get this error:
> Error 500 - Typ PROJECTNAME.CLASSNAME not found
> I put the library of my code into a bin-directory or in the same
> directory the asmx-file exists. It doesn't work.
>
>
> It works under XSP if I take my Code directly into my asmx-file like this:
>
> <%@ WebService Language="VB" Class="MyClass" %>
>
> Imports ...
>
> <WebService(Namespace:="http://tempuri.org/")> _
> <WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _
> <Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
> Public Class MyClass
>    Inherits System.Web.Services.WebService
>
>    <WebMethod()> _
>    Public Function MyFunction() As Blabla()
>
>    End Function
>
> End Class
>
> -----------------------
>
> So, is there a way to use a library in the asmx-file under mono and
> xsp? What have I to do for it?
>
> thanks,
>
> chakoteystme
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>


More information about the Mono-devel-list mailing list