M
Mike Lopez
Hello.
I'm missing something, I just know it.
I'm writing a web service and I'm new at this.
Scenario:
I got a Request and a Response XSD from a business partner. I used XSD.exe
to generate the C# classes.
I created a C# ASP Web Application. I added the generated classes to the
project. I then created a WebMethod whose return type is the generated
class that corresponds to the Response root element. I created variables for
each generated class, initialized each instance, and tried to to return the
"root" class instance (just to see if the XML generated corresponds to the
Response schema), but get an error. I posted the error in a previous
posting. Basically it looks like the runtime is compiling something, giving
it a random name, and then cannot find it.
So, at this point I don't know how to structure my project, I don't know
what the generated classes are good for (I thought I did) because based on
the error I'm misusing them, and I don't know how to return my user defined
class so that it corresponds to the schema.
Now, I've been all over MSDN, Googled, MSN Searched (Google is still better
at this point), went to Border's Books and read through everything they
have, and all I can find about WebServices are simple examples that return
"string, int, double". Really, nothing more than "Hello World" examples.
If "http://tempuri.org" is satisfactory for someone then it's no wonder
everyone says they're so simple to create. But that's not reality.
Where are the sample projects that show the structure of a solution that
does what I need to do? I know I'm not alone in the universe!
What am I missing? Do I need to use SOAP in some way?
Someone please point me in the right direction.
Thanks in advance,
Mike
I'm missing something, I just know it.
I'm writing a web service and I'm new at this.
Scenario:
I got a Request and a Response XSD from a business partner. I used XSD.exe
to generate the C# classes.
I created a C# ASP Web Application. I added the generated classes to the
project. I then created a WebMethod whose return type is the generated
class that corresponds to the Response root element. I created variables for
each generated class, initialized each instance, and tried to to return the
"root" class instance (just to see if the XML generated corresponds to the
Response schema), but get an error. I posted the error in a previous
posting. Basically it looks like the runtime is compiling something, giving
it a random name, and then cannot find it.
So, at this point I don't know how to structure my project, I don't know
what the generated classes are good for (I thought I did) because based on
the error I'm misusing them, and I don't know how to return my user defined
class so that it corresponds to the schema.
Now, I've been all over MSDN, Googled, MSN Searched (Google is still better
at this point), went to Border's Books and read through everything they
have, and all I can find about WebServices are simple examples that return
"string, int, double". Really, nothing more than "Hello World" examples.
If "http://tempuri.org" is satisfactory for someone then it's no wonder
everyone says they're so simple to create. But that's not reality.
Where are the sample projects that show the structure of a solution that
does what I need to do? I know I'm not alone in the universe!
What am I missing? Do I need to use SOAP in some way?
Someone please point me in the right direction.
Thanks in advance,
Mike