[Mono-dev] Problem with asmx file

Johann BLAIS jblais at perinfo.biz
Fri Oct 7 07:51:29 EDT 2005


Sorry I didn't read all your post.

So I compiled the stub into a dll, created my asmx.
When i try to access the General.asmx, i get an error :

*Description: *Error processing request.

*Error Message: *HTTP 500.

*Stack Trace: *
||

System.NullReferenceException: Object reference not set to an instance of an object
in <0x000e4> System.Web.UI.WebControls.Repeater:GetData ()
in <0x0000a> System.Web.UI.WebControls.Repeater:GetResolvedDataSource ()
in <0x00079> System.Web.UI.WebControls.Repeater:CreateControlHierarchy (Boolean useDataSource)
in <0x00039> System.Web.UI.WebControls.Repeater:OnDataBinding (System.EventArgs e)
in <0x00023> System.Web.UI.WebControls.Repeater:DataBind ()
in <0x0006a> System.Web.UI.Control:DataBindChildren ()
in <0x00095> System.Web.UI.Control:DataBind (Boolean raiseOnDataBinding)
in <0x00010> System.Web.UI.Control:DataBind ()
in <0x0058b> ASP.DefaultWsdlHelpGenerator_aspx:Page_Load (System.Object sender, System.EventArgs e)
in (wrapper delegate-invoke) System.MulticastDelegate:invoke_void_object_EventArgs (object,System.EventArgs)
in <0x0005c> System.Web.UI.Control:OnLoad (System.EventArgs e)
in <0x00026> System.Web.UI.Control:LoadRecursive ()
in <0x001fc> System.Web.UI.Page:InternalProcessRequest ()
in <0x000a5> System.Web.UI.Page:ProcessRequest (System.Web.HttpContext context)
in <0x00096> System.Web.Services.Protocols.SoapDocumentationHandler:ProcessRequest (System.Web.HttpContext context)
in <0x0001a> System.Web.Services.Protocols.SessionWrapperHandler:ProcessRequest (System.Web.HttpContext context)
in <0x00233> System.Web.HttpApplication+ExecuteHandlerState:Execute ()
in <0x0007a> System.Web.HttpApplication+StateMachine:ExecuteState (IStateHandler state, System.Boolean readysync)

Any idea ?
I don't compile from svn, i'm using 1.1.8.20050824. My admin would 
complain if i svn the mcs tree.
I can't use the latest release because the datagrid buttoncolumn is broken.

Thanks,
Johann

Johann BLAIS a écrit :

> Ok so i take my favorite wsdl describing my service web named General.
> I generate the stub using wsdl -server general.wsdl.
> The generated stub define a class like this :
> public abstract class General : System.Web.Services.WebService
> So in my General.asmx, i should have :
> <%@ WebService Class="General" %>
> But now how do i use the stub ?
> Has it to be compiled somewhere or be referenced as a codebehind ?
>
> Anyway, thanks for your time.
>
> Johann
>
> Atsushi Eno a écrit :
>
>> I couldn't read whether your problem went away or not from your
>> reply... anyways the required steps to do what you want are:
>>
>>     - To view that "test pages" which we think something we can
>>       browse when we hit e.g. http://localhost:8080/my.asmx,
>>       you well have to create service implementation class
>>       at your server side.
>>     - It is possible to create a "stub" class for those services
>>       that are described as WSDLs; run "wsdl -service my.wsdl"
>>     - Your .asmx file should specify exactly that class name
>>       generated by wsdl(.exe) and compiled into a dll, rather
>>       than just "General".
>>
>> Atsushi Eno
>>
>> Johann BLAIS wrote:
>>
>>> Thanks for your reply.
>>>
>>> I'm using mono-1.1.8.20050824 which seems to be the last version 
>>> that compile and don't break my web app.
>>> Actually, i'm looking for a way to generate test pages for my web 
>>> services (like the one available when writing a asmx file).
>>> I need a tool that read a WSDL and generate those or that page.
>>>
>>> Anyone knows about such a tool ?
>>>
>>> Johann
>>>
>>> Atsushi Eno a écrit :
>>>
>>>> Hi,
>>>>
>>>> There was a bug that blocked WSDL processing, which I fixed yesterday.
>>>> So if you were trying mono/mcs from svn, please try the latest svn.
>>>>
>>>> Atsushi Eno
>>>>
>>>> Johann BLAIS wrote:
>>>>
>>>>> Hello,
>>>>>
>>>>> I've created a webservice named General and generated the wsdl 
>>>>> file using gSoap. I generated the proxy with the wsdl tool.
>>>>> I want to test it using DefaultWsdlHelpGenerator.aspx. So i wrote 
>>>>> a simple index.asmx containing <%@ WebService Class="General" %>
>>>>> I put the compiled DLL into the bin directory, and then try to 
>>>>> access the page http://myserver/index.asmx
>>>>> I end up with this :
>>>>>
>>>>> *Description: *Error processing request.
>>>>>
>>>>> *Error Message: *HTTP 500.
>>>>>
>>>>> *Stack Trace: *
>>>>> ||
>>>>>
>>>>> System.NullReferenceException: Object reference not set to an 
>>>>> instance of an object
>>>>> in <0x00375> 
>>>>> System.Web.Services.Description.ProtocolReflector:ImportBindingContent 
>>>>> (System.Web.Services.Description.ServiceDescription desc, 
>>>>> System.Web.Services.Protocols.TypeStubInfo typeInfo, System.String 
>>>>> url, System.Web.Services.Protocols.BindingInfo binfo)
>>>>> in <0x0010e> 
>>>>> System.Web.Services.Description.ProtocolReflector:ImportBinding 
>>>>> (System.Web.Services.Description.ServiceDescription desc, 
>>>>> System.Web.Services.Description.Service service, 
>>>>> System.Web.Services.Protocols.TypeStubInfo typeInfo, System.String 
>>>>> url, System.Web.Services.Protocols.BindingInfo binfo)
>>>>> in <0x0014d> 
>>>>> System.Web.Services.Description.ProtocolReflector:ImportService 
>>>>> (System.Web.Services.Description.ServiceDescription desc, 
>>>>> System.Web.Services.Protocols.TypeStubInfo typeInfo, System.String 
>>>>> url)
>>>>> in <0x00135> 
>>>>> System.Web.Services.Description.ProtocolReflector:Reflect 
>>>>> (System.Web.Services.Description.ServiceDescriptionReflector 
>>>>> serviceReflector, System.Type type, System.String url, 
>>>>> System.Xml.Serialization.XmlSchemaExporter xxporter, 
>>>>> System.Xml.Serialization.SoapSchemaExporter sxporter)
>>>>> in <0x000b8> 
>>>>> System.Web.Services.Description.ServiceDescriptionReflector:Reflect 
>>>>> (System.Type type, System.String url)
>>>>> in <0x0004b> 
>>>>> System.Web.Services.Protocols.SoapDocumentationHandler:GetDescriptions 
>>>>> ()
>>>>> in <0x00031> 
>>>>> System.Web.Services.Protocols.SoapDocumentationHandler:ProcessRequest 
>>>>> (System.Web.HttpContext context)
>>>>> in <0x0001a> 
>>>>> System.Web.Services.Protocols.SessionWrapperHandler:ProcessRequest 
>>>>> (System.Web.HttpContext context)
>>>>> in <0x00233> 
>>>>> System.Web.HttpApplication+ExecuteHandlerState:Execute ()
>>>>> in <0x0007a> System.Web.HttpApplication+StateMachine:ExecuteState 
>>>>> (IStateHandler state, System.Boolean readysync)
>>>>>
>>>>> Anyone knows if i am doing something wrong or if it is a bug ?
>>>>>
>>>>> Many thanks.
>>>>> _______________________________________________
>>>>> Mono-devel-list mailing list
>>>>> Mono-devel-list at lists.ximian.com
>>>>> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>>>>>
>>>>
>>>>
>>>
>>> _______________________________________________
>>> Mono-devel-list mailing list
>>> Mono-devel-list at lists.ximian.com
>>> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>>>
>>
>>
>
> _______________________________________________
> 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