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 / December 2004

Tip: Looking for answers? Try searching our database.

AXIS to emit SOAPHeader in wsdl

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
bangeye - 15 Dec 2004 00:20 GMT
Tribe,

Using AXIS and C# winforms to build an app.

I'm building my services in java and exposing them through AXIS and
consuming them just fine with C#.

I want now to add some soapheader data for session mgmt and
authorization. I'm building my own WSDD for the service deployment in
AXIS and so I'm allowing AXIS to emit the WSDL which describes the
services.

I want to add something somewhere to direct axis now to emit a
SoapHeader in the WSDL which Visual Studio will then swallow and build
into my reference.cs class.
I've looked and looked. No luck.

Any ideas?

Dave Cline
~bangeye~
Dan Rogers - 15 Dec 2004 01:00 GMT
Hi Dave,

While I can't help with the "how to make Axis" part, I can guide you to get
the Headers part.

Do this... create a sample service in ASP.net, and then add some SOAP
headers to it.  Plenty of examples for this already on MSDN.  Then look at
the generated WSDL.  This is what your AXIS WSDL needs to look like...

Hope this helps

Dan Rogers
Microsoft Corporation
--------------------
>From: "bangeye" <davecline@gmail.com>
>Newsgroups: microsoft.public.dotnet.framework.aspnet.webservices
[quoted text clipped - 7 lines]
>Content-Type: text/plain; charset="iso-8859-1"
>X-Trace: posting.google.com 1103070057 3209 127.0.0.1 (15 Dec 2004
00:20:57 GMT)
>X-Complaints-To: groups-abuse@google.com
>NNTP-Posting-Date: Wed, 15 Dec 2004 00:20:57 +0000 (UTC)
[quoted text clipped - 3 lines]
>   posting-account=jRPe9Q0AAAAe3fZ42KUHYKB1jnVk-63A
>Path:
cpmsftngxa10.phx.gbl!TK2MSFTFEED02.phx.gbl!tornado.fastwebnet.it!tiscali!new
sfeed1.ip.tiscali.net!news.glorb.com!postnews.google.com!c13g2000cwb.googleg
roups.com!not-for-mail
>Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.aspnet.webservices:27196
>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webservices
>
[quoted text clipped - 19 lines]
>Dave Cline
>~bangeye~
bangeye - 15 Dec 2004 17:24 GMT
Dan,
Thanks for your reply.

Yes I figured out that .NET will emit the SoapHeaders properly for
those services which have been decorated thusly.

And yes I could copy/paste this on to a static WSDL which had been
copied from the dynamic WSDL but this would cause maintenance problems
and I figure if AXIS is already pumping soap descriptions why can't it
do soap headers too.

I'll keep hunting and post my findings to this list.
regards,
dave cline
Dan Rogers - 15 Dec 2004 18:19 GMT
Hi Dave,

It sounds like an issue to take up with the Axis devs.

With a lot of the free tools, it is turning out to be a common practice to
keep your own (caller owned) WSDL for a remote end point.  For myself, I
don't advocate exposing WSDL automatically for any production service.  The
reson is you cannot change it anyhow - since it is a contract that your
clients signed up for at the time they were deployed.  

Regards

Dan
--------------------
>From: "bangeye" <davecline@gmail.com>
>Newsgroups: microsoft.public.dotnet.framework.aspnet.webservices
[quoted text clipped - 9 lines]
>Content-Type: text/plain; charset="iso-8859-1"
>X-Trace: posting.google.com 1103131493 29627 127.0.0.1 (15 Dec 2004
17:24:53 GMT)
>X-Complaints-To: groups-abuse@google.com
>NNTP-Posting-Date: Wed, 15 Dec 2004 17:24:53 +0000 (UTC)
[quoted text clipped - 4 lines]
>   posting-account=jRPe9Q0AAAAe3fZ42KUHYKB1jnVk-63A
>Path:
cpmsftngxa10.phx.gbl!TK2MSFTFEED02.phx.gbl!tornado.fastwebnet.it!tiscali!new
sfeed1.ip.tiscali.net!news.maxwell.syr.edu!postnews.google.com!z14g2000cwz.g
ooglegroups.com!not-for-mail
>Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.aspnet.webservices:27216
>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webservices
>
[quoted text clipped - 12 lines]
>regards,
>dave cline

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.