all groups > dotnet web services > april 2006 >
You're in the

dotnet web services

group:

Need to be able to post without soap headers to a web service


Need to be able to post without soap headers to a web service Heena Patel
4/7/2006 10:29:05 AM
dotnet web services:
Hi,

I have a implemented a web service interface that has a webmethod accepting
xml, but I need to also have post option available to my webservice. I
understand if a client Posts a SOAP reqyest, it will work with my webservice.
The problem is my client cannot send soap method, they will be sending normal
httpstream to me. I want the Web service to redirect all the non-soap
messages to my aspx page that handles normal posts. Can anyone please help me
how can I accomplish that?? or is it even possible. I initially thought may
be I can have an aspx page that redirects the SOAP requests to web service
and handles the other posts normally, but then I want my clients to see the
WSDL on the same root, but I don't know how can I make that possible?? Any
help is appreciated greatly.
Re: Need to be able to post without soap headers to a web service Robert May
4/10/2006 11:46:29 AM
Short of writing your own web service application, this is probably not
possible.

Here's a suggestion: expose a well documented web service method and name
it something like "DataPostUrl" and have it return a string which is the url
of where they should POST data. You could even then use a GUID to ensure
that they call the web service method first and then call the post method
second. This would let you know in advance that data was coming.

The process flow would look something like this:

client calls DataPostUrl
DataPostUrl returns http://www.myurl.com/posturl.aspx?guid=abc-123-15ma
client calls url given and posts data.

Just a thought.

Robert May
[quoted text, click to view]

AddThis Social Bookmark Button