Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / February 2008

Tip: Looking for answers? Try searching our database.

Alter SOAP Return Types

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Brian Lampe - 05 Feb 2008 18:43 GMT
I've done some searching, and I can't seem to find a documented
approach.

We have a mainframe that is able to do RPC via SOAP.  Our client
is .Net.  When the server returns row data, it can only (apparently)
produce arrays of a type (I'm guessing it's a struct on their end).
What we want to do is convert the arrays to DataSets so they are more
consumable in our application.  We also want to be able to send
DataSets for multiple row updates, etc.  I've tried to get the
mainframe guys to alter the outgoing schema to say
msdata:IsDataSet="true", but it doesn't look like they have that
control on their end.

Our app creates dynamic proxy code compiled into cached assemblies at
run time, so I don't have a lot of control over the proxy code except
that I could (if I have to) alter the code that produces the proxy
code.  I'm looking for a better solution.

The one thing I've seen that seems like it might be able to do what I
want is a custom SOAP extension.  I'm not sure how I get to the WSDL
with that for the proxy code generation though.

Has anyone tried this or something else to solve the same problem?

TIA

Brian
John Saunders [MVP] - 06 Feb 2008 00:20 GMT
John Saunders | MVP - Windows Server System - Connected System Developer

> I've done some searching, and I can't seem to find a documented
> approach.
[quoted text clipped - 19 lines]
>
> Has anyone tried this or something else to solve the same problem?

Brian, why not simplify things? When you receive the array from the
mainframe, fill a DataSet with it. When you want to send a DataSet, convert
it into the correct kind of array.
Signature

--------------------------------------------------------------------------------
John Saunders | MVP - Windows Server System - Connected System Developer

Brian Lampe - 06 Feb 2008 00:48 GMT
On Feb 5, 4:20 pm, "John Saunders [MVP]" <john.saunders at
trizetto.com> wrote:
> John Saunders | MVP - Windows Server System - Connected System Developer
>
[quoted text clipped - 30 lines]
>
> - Show quoted text -

Oh sure take the easy way out.  :)

We actually just discussed that.  The problem is we have this layer
that calls the webservices, and it would have to do that conversion
(IMO it doesn't, but that's the lead's desire) via reflection or
whatever, and that could get messy.

So, what I've managed to do today is create a SoapExtension that
intercepts the SOAP message mid-stream and tweaks the xml inside to
produce a DataSet.  I'll have to adjust our dynamic proxy to add the
SoapExtensionAttribute to the methods as well as change their return
types to DataSet.  This is probably *as* messy as using reflection
after the fact, but perhaps just a teensy bit more efficient.

Thanks for your response John!

Brian

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.