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 / August 2005

Tip: Looking for answers? Try searching our database.

how to hook soapextesion to windows forms client

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jan - 26 Aug 2005 15:06 GMT
Hi all,
I develop a Windows Forms client application to comunicate with 3rd party
server application via the SOAP messages over HTTP. I must incorporate
SoapExtension because the SOAP messages must be zipped. I use SharpZipLib to
the compression.

I use SoapClient and SoapService like is described in
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wse/html/17123a
8b-fd0e-4369-a5b6-7324d62ac48e.asp
.
Compression is provided by the SOAP extensions based on
http://primates.ximian.com/~lluis/blog/pivot/entry.php?id=13. SOAP messaging
works correctly as well as compression, but I don't know how I "compel" these
two functions to work together. If I use SoapClient (on the client side) the
soap extension is not invoked. If I create proxy object of SOAP service and
call the method directly, soap extension is invoked and message is compressed
but I receive error: "The data at the root level is invalid. Line 1, position
1.". I think that this error is occured because of missing HTTP headers
Accept-Encoding and Content-Encoding setted to "gzip". So my questions are:

1. How can I hook soap extensions to windows forms applicationwithout using
proxy object of SOAP service?
2. How can I set HTTP headers in SoapClient/SoapService/SoapEnvelope objects?
3. How can I obtain result (SoapEnvelope type) from proxy object? The SOAP
method returns null on the proxy object. What are parameters of this method?
Methods accepts XmlElement[] variable...

Thank you for your help.
Pablo Cibraro - 26 Aug 2005 18:21 GMT
Hi Jan,
In this case, you have to use WSE SoapFilters (SoapOutputFilter and
SoapInputFilter classes).
For more information, I recommend you to read this topic in the WSE's help.
(ms-help://MS.WSE20.1033/wse/html/84bad28b-907a-4c92-9342-dc9ef15781ce.htm).

Regards,
Pablo Cibraro
www.lagash.com

> Hi all,
> I develop a Windows Forms client application to comunicate with 3rd party
[quoted text clipped - 33 lines]
>
> Thank you for your help.
Jan - 27 Aug 2005 22:17 GMT
Hi Pablo,
thaks for your response. For what action I have to use SoapFilters? For the
compression? I don't think so, but I may be in error... SoapFilters are
processed before the message is sent(or after the message is received) and I
can't compress the message at that time. Or did you mean using the
SoapFilters instead of SoapExtensions?

Thanks.

Jan

> Hi Jan,
> In this case, you have to use WSE SoapFilters (SoapOutputFilter and
[quoted text clipped - 43 lines]
> >
> > Thank you for your help.

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.