[Mono-devel-list] Exception when acessing PHP web service

Jörg Rosenkranz joergr at voelcker.com
Wed Oct 22 13:00:55 EDT 2003


Hello Lluis,

When I run the web service test I have sent a few days ago
against the web service at 
http://www.seifersdorfer.de/webservicetest/testservice.php
I get following exception:

Unhandled Exception: System.InvalidOperationException: Fault is inaccessible due to its protection level. Only public types can be processed
in <0x001a7> System.Xml.Serialization.ReflectionHelper:CheckSerializableType (System.Type)
in <0x000c2> System.Xml.Serialization.SoapReflectionImporter:ImportClassMapping (System.Type,string)
in <0x00103> System.Xml.Serialization.SoapReflectionImporter:ImportTypeMapping (System.Type,string)
in <0x00019> System.Xml.Serialization.SoapReflectionImporter:ImportTypeMapping (System.Type)
in <0x0015e> System.Web.Services.Protocols.SoapTypeStubInfo:CreateMethodStubInfo (System.Web.Services.Protocols.TypeStubInfo,System.Web.Services.Protocols.LogicalMethodInfo,bool)
in <0x0013e> System.Web.Services.Protocols.TypeStubInfo:BuildTypeMethods ()
in <0x00015> System.Web.Services.Protocols.TypeStubInfo:Initialize ()
in <0x00081> System.Web.Services.Protocols.LogicalTypeInfo:CreateTypeStubInfo (System.Type)
in <0x0007c> System.Web.Services.Protocols.LogicalTypeInfo:GetTypeStub (string)
in <0x0002c> System.Web.Services.Protocols.TypeStubManager:GetTypeStub (System.Type,string)
in <0x00038> System.Web.Services.Protocols.SoapHttpClientProtocol:.ctor ()
in <0x0000a> WebServiceTest.TestServiceWrapper.TestService:.ctor ()
in <0x0004f> (wrapper remoting-invoke-with-check) WebServiceTest.TestServiceWrapper.TestService:.ctor ()
in <0x00027> WebServiceTest.WebServiceTest:Main (string[])

When I change the class Fault in System.Web.Services.Protocols/Methods.cs 
from internal to public, it works. 

Is this a bug?

Jörg.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: WebServiceTest.tgz
Type: application/x-compressed
Size: 1215 bytes
Desc: WebServiceTest.tgz
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20031022/8ac4c444/attachment.bin 


More information about the Mono-devel-list mailing list