473,387 Members | 1,590 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Deserialization of Soap XML to Method arguments for custom IhttpHanlder?

Sky
Hello:

I've been looking around for a way to create an IHttpHandler for
webmethods...something that doesn't need a physical *.asmx page to be
installed.

So far I've found no quick and dirty way other than starting again with
IHttpHandler, getting the incoming stream converted to and XmlDocument, and
parsing the xml nodes for the various indicators of what method to call
(SoapAction, etc.).

This seems just about within my reach...except for the part on how to
deserialize the XML to arguments of the right type for an invokation.

For example, if an incoming arg is:
<PointA>
<x>100</x>
<y>100</y>
</PointA>
how do I get it to be converted to a Point object for the call:
bool MyFunction(Point qA){...}

Is it that I am thinking about it backwards? Should I instead:

Start out from the SoapAction to get MethodInfo for the function I am going
to invoke,
get its Arguments[] somehow,
loop through these,
instantiate a tmp for each one based on the values given? This looks trivial
for simple types -- not so trivial for complex types (Some complex types
might have constructors that accept no args, other type contructors that do,
but have no set -- just get properties, etc...)

Anyway -- any feedback to all this spagetti is greatly appreciated --
especially a message saying "Sky, you ninny -- you don't have to reinvent
the wheel! The way to invoke WebMethods without a physical page is:....."
=:-)

Thanks very much in advance,
Sky
Nov 16 '05 #1
0 997

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Snowman | last post by:
Suppose I have a RootObject which holds a collection of other objects. The other objects have a property (Parent) which refers back to the "parent" collection (b.t.w. my collection is based on...
3
by: parrot toes | last post by:
Summary: I have been trying to make requests of a web service provided by Axis using a dotnet client with code generated by wsdl.exe and have been getting exceptions when trying to process the...
1
by: parrot toes | last post by:
I tried to post this question before, but there was an error when posting. I case it did get posted and in order to avoid duplication, I'll just repost a summary. I have written a dotnet client...
8
by: ashoksrini | last post by:
Hi All, I have the below requirement and would like to get some feeback from the group on the best way to implement: 1. I have WSDL defined exposing few web services. 2. We dont have a...
5
by: frustratedWithDotNet | last post by:
Why does .NET not issue messages or throw exceptions if it doesn't like something in the response from a web service?? I am getting a response object, but an array of custom objects within the...
5
by: A.M-SG | last post by:
Hi, I am developing a SOAP extender and I need to store some session information at BeforeSerialize ProcessMessage event, so at the AfterDeserialize ProcessMessage event I know which call I...
0
by: Jigar.Patel | last post by:
I have simple remoting server exposing following simple method. When I try to add webreference to this server in another project, it gives me following error: Custom tool error: Unable to import...
0
by: Nol | last post by:
Hi all, My webservice throws an exception, which is translated into a soap Fault in the soap message body. See below for the actual message format as it is send by the server. On the (dotNet)...
4
by: Nol de Wit | last post by:
(this is a re-post of a message I've posted last friday, but now from my MSDN subscription account, hoping MSDN support will pick this up...) Hi all, My webservice throws an exception, which...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.