Hi @all,
this is not my first webservice and everytime it worked that way, by now i
got following exception when trying to call http://<url>?wsdl in my
browser:
System.NullReferenceException: Object reference not set to an instance of an
object.
at
System.Runtime.Remoting.MetadataServices.WsdlGener ator.RealSchemaType.PrintMessageWsdl(TextWriter
textWriter, StringBuilder sb, String indent, ArrayList refNames)
at
System.Runtime.Remoting.MetadataServices.WsdlGener ator.XMLNamespace.PrintMessageWsdl(TextWriter
textWriter, StringBuilder sb, String indent, ArrayList refNames)
at System.Runtime.Remoting.MetadataServices.WsdlGener ator.PrintWsdl()
at System.Runtime.Remoting.MetadataServices.WsdlGener ator.Generate()
at
System.Runtime.Remoting.MetadataServices.MetaData. ConvertTypesToSchemaToStream(ServiceType[]
serviceTypes, SdlType sdlType, Stream outputStream)
at
System.Runtime.Remoting.MetadataServices.SdlChanne lSink.GenerateSdl(SdlType
sdlType, IServerResponseChannelSinkStack sinkStack, ITransportHeaders
requestHeaders, ITransportHeaders responseHeaders, Stream& outputStream)
at
System.Runtime.Remoting.MetadataServices.SdlChanne lSink.ProcessMessage(IServerChannelSinkStack
sinkStack, IMessage requestMsg, ITransportHeaders requestHeaders, Stream
requestStream, IMessage& responseMsg, ITransportHeaders& responseHeaders,
Stream& responseStream)
at
System.Runtime.Remoting.Channels.Http.HttpServerTr ansportSink.ServiceRequest(Object
state)
at System.Runtime.Remoting.Channels.SocketHandler.Pro cessRequestNow()
The class is more than simple:
class UserProvider : MarshalByRefObject {
public UserProvider() {
}
public User[] search(User user, int offset, int limit) {
User[] users = user.Search(offset, limit);
return users;
}
}
W/o the method it works (but also w/o any function ;-).
This class gets registered as WellKnownService in an HttpChannel to provide
the webservice functionality. It is the second Service registered there,
but as the only one it doesn't work either.
Any hint?
Thanks Thorsten 2 1766
Thorsten Viel wrote:
it seems that my Object User is the problem. But I work sometimes with own
classes. And normally they got defined as complex types in wsdl.
Hi @all,
this is not my first webservice and everytime it worked that way, by now i
got following exception when trying to call http://<url>?wsdl in my
browser:
System.NullReferenceException: Object reference not set to an instance of
an object.
at
System.Runtime.Remoting.MetadataServices.WsdlGener ator.RealSchemaType.PrintMessageWsdl(TextWriter
textWriter, StringBuilder sb, String indent, ArrayList refNames)
at
System.Runtime.Remoting.MetadataServices.WsdlGener ator.XMLNamespace.PrintMessageWsdl(TextWriter
textWriter, StringBuilder sb, String indent, ArrayList refNames)
at System.Runtime.Remoting.MetadataServices.WsdlGener ator.PrintWsdl()
at System.Runtime.Remoting.MetadataServices.WsdlGener ator.Generate()
at
System.Runtime.Remoting.MetadataServices.MetaData. ConvertTypesToSchemaToStream(ServiceType[]
serviceTypes, SdlType sdlType, Stream outputStream)
at
System.Runtime.Remoting.MetadataServices.SdlChanne lSink.GenerateSdl(SdlType
sdlType, IServerResponseChannelSinkStack sinkStack, ITransportHeaders
requestHeaders, ITransportHeaders responseHeaders, Stream& outputStream)
at
System.Runtime.Remoting.MetadataServices.SdlChanne lSink.ProcessMessage(IServerChannelSinkStack
sinkStack, IMessage requestMsg, ITransportHeaders requestHeaders, Stream
requestStream, IMessage& responseMsg, ITransportHeaders& responseHeaders,
Stream& responseStream)
at
System.Runtime.Remoting.Channels.Http.HttpServerTr ansportSink.ServiceRequest(Object
state)
at System.Runtime.Remoting.Channels.SocketHandler.Pro cessRequestNow()
The class is more than simple:
class UserProvider : MarshalByRefObject {
public UserProvider() {
}
public User[] search(User user, int offset, int limit) {
User[] users = user.Search(offset, limit);
return users;
}
}
W/o the method it works (but also w/o any function ;-).
This class gets registered as WellKnownService in an HttpChannel to
provide the webservice functionality. It is the second Service registered
there, but as the only one it doesn't work either.
Any hint?
Thanks Thorsten
Huh, this is really weird!
It is because, the base class of User implements a simple interface with two
methods. Shouldn't be the problem, or?
Thorsten
Thorsten Viel wrote:
Thorsten Viel wrote:
it seems that my Object User is the problem. But I work sometimes with own
classes. And normally they got defined as complex types in wsdl.
>Hi @all,
this is not my first webservice and everytime it worked that way, by now i got following exception when trying to call http://<url>?wsdl in my browser:
System.NullReferenceException: Object reference not set to an instance of an object. at
System.Runtime.Remoting.MetadataServices.WsdlGener ator.RealSchemaType.PrintMessageWsdl(TextWriter
>textWriter, StringBuilder sb, String indent, ArrayList refNames) at
System.Runtime.Remoting.MetadataServices.WsdlGener ator.XMLNamespace.PrintMessageWsdl(TextWriter
>textWriter, StringBuilder sb, String indent, ArrayList refNames) at System.Runtime.Remoting.MetadataServices.WsdlGener ator.PrintWsdl() at System.Runtime.Remoting.MetadataServices.WsdlGener ator.Generate() at
System.Runtime.Remoting.MetadataServices.MetaData. ConvertTypesToSchemaToStream(ServiceType[]
>serviceTypes, SdlType sdlType, Stream outputStream) at
System.Runtime.Remoting.MetadataServices.SdlChanne lSink.GenerateSdl(SdlType
>sdlType, IServerResponseChannelSinkStack sinkStack, ITransportHeaders requestHeaders, ITransportHeaders responseHeaders, Stream& outputStream) at
System.Runtime.Remoting.MetadataServices.SdlChanne lSink.ProcessMessage(IServerChannelSinkStack
>sinkStack, IMessage requestMsg, ITransportHeaders requestHeaders, Stream requestStream, IMessage& responseMsg, ITransportHeaders& responseHeaders, Stream& responseStream) at
System.Runtime.Remoting.Channels.Http.HttpServerTr ansportSink.ServiceRequest(Object
>state) at System.Runtime.Remoting.Channels.SocketHandler.Pro cessRequestNow() The class is more than simple:
class UserProvider : MarshalByRefObject {
public UserProvider() { }
public User[] search(User user, int offset, int limit) {
User[] users = user.Search(offset, limit); return users; } }
W/o the method it works (but also w/o any function ;-).
This class gets registered as WellKnownService in an HttpChannel to provide the webservice functionality. It is the second Service registered there, but as the only one it doesn't work either.
Any hint?
Thanks Thorsten
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Chris Dunaway |
last post by:
I just installed VS.Net 2003 Ent. Arch. on a machine with Windows XP Pro.
The installation went without any errors.
When I attempt to create a new project (either VB or C#), a messagebox pops
up...
|
by: CroDude |
last post by:
Heya all!
I have a weird problem when creating a texture brush in a Paint event.
When program gets to the line where I'm creating a new TextureBrush object,
it crashes with OutOfMemory...
|
by: Ryan Liu |
last post by:
Hi there,
I got a NullReferenceException when delete last row in a datagrid.
I had hard time to solve since it does not occur in my own code.
I put a datagrid in my inherited user control,...
|
by: Patrick Spence |
last post by:
(sorry 'bout the multipost)
VS.NET 2003 v 7.1.3088
..NET Framework v1.1.4322
XP Pro
IIS 5.0
When I try to create a ASP.NET application, I get the following error...
The Web server...
|
by: Don |
last post by:
When creating a new region for a control via a GraphicsPath object, it
appears the entire rightmost column of pixels and bottom most row of pixels
are not included in the region.
I will try to...
|
by: Joe Penora |
last post by:
Hi All,
How to add the HTML script when creating new ASPX page. After it is done I
may need to add some Meta tags etc... but the html script is not there.
Is there an option in the ASP.NET...
|
by: JonnyBlaze |
last post by:
Hi Guys -
This is my first C# app, but I have some knowledge of a bunch of languages like VB6 and PHP, so I'm picking it up rather quickly. I've been pulling my hair out on this one for about 4...
|
by: Jerry Spence1 |
last post by:
Can anyone point me in the right direction on how to set a license key when
creating a licensed control dynamically?
I have a licensed ActiveX component. Works fine when I put an instance on
the...
|
by: xuki |
last post by:
Hi every one!
I need your help to solve this problems.
I'm trying to creat a wsdl file to a webservice but i'm getting an erros.
"Error creating WSDL document:Error creating WSDL: no class...
|
by: DJRhino |
last post by:
Was curious if anyone else was having this same issue or not....
I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
|
by: Aliciasmith |
last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
|
by: giovanniandrean |
last post by:
The energy model is structured as follows and uses excel sheets to give input data:
1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
|
by: NeoPa |
last post by:
Hello everyone.
I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report).
I know it can be done by selecting :...
|
by: NeoPa |
last post by:
Introduction
For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
|
by: Teri B |
last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course.
0ne-to-many. One course many roles.
Then I created a report based on the Course form and...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM)
Please note that the UK and Europe revert to winter time on...
|
by: NeoPa |
last post by:
Introduction
For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
|
by: GKJR |
last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...
| |