Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:665167
More Search Options
RSS Available
Matching Posts
Re: Adding information to the SOAP Header
Oops. Forgot one very important thing: SoapMessageStage.BeforeDeserialize. Here's the updated code. I fixed/updated/modified a few other things while I was at it. using System; using System.Web.Services; using System.Web.Services.Protocols; using System.IO; using System.Net; using System.Xml; using System.Xml.Schema; using System.Xml.Serialization; using System.Collections.Generic; using System.Text.RegularExpressions; namespace bberry1 { /// <summary> /// Inherits SoapExtension to create
Posted to
XML Web Services
(Forum)
by
jimbob_texas
on 8/2/2007
Filed under: SOAP Header SOAP extension
Re: Adding information to the SOAP Header
A promise is a promise... I'll hit the high points first, then give you the code in its entirety. First, you need to create an extension class, one that inherits SoapExtension. Something along the lines of public class myExtension : SoapExtension By default, a SOAP extension has 5 overrides that you must provide: ChainStream, GetInitializer (2 of 'em), Initialize, and ProcessMessage. ProcessMessage and ChainStream are really the heart of the matter, and you'll see why in the code. ChainStream
Posted to
XML Web Services
(Forum)
by
jimbob_texas
on 7/31/2007
Re: Adding information to the SOAP Header
Okay - I have found the solution, and it's relatively simple. First you need to create a new class that inherits from SoapExtension. In that class, you must define a few overrides: ChainStream, GetIntializer (2 of 'em!), Initialize, and ProcessMessage. ProcessMessage is the heart of it all. SOAP messages have stages, and the one I wanted was SoapMessageStage.AfterSerialize. I parsed out the SOAP body from the XML cache, then prepended my header envelope stuff. I wrote everything out to a
Posted to
XML Web Services
(Forum)
by
jimbob_texas
on 7/26/2007
Re: Adding information to the SOAP Header
Been there, done those. Those examples are all about how to process SOAP headers on the server. There's almost nothing about how to generate additional XML in the datastream going back to a web service FROM a client. Anyone?
Posted to
XML Web Services
(Forum)
by
jimbob_texas
on 7/25/2007
Re: Adding information to the SOAP Header
I have the WSDL. It does not expose the SOAP headers. That's what's got me stymied. We've managed to use HTTP to construct the appropriate XML, but that stinks. It seems to me that .NET should have some method for prepending the XML emitted from the client with whatever you like. Sounds simple, but darned if I can get it to happen. Here's the WSDL from the service. You tell me. The method I'm using below is getDeviceModelDataQuery. As I mentioned in my first post, the structure
Posted to
XML Web Services
(Forum)
by
jimbob_texas
on 7/24/2007
Re: Adding information to the SOAP Header
Thanks, but if header methods were implemented, I wouldn't be asking the question. For whatever reason, the Java webservice expects the client (consumer) application to generate the username/password in the header. I don't know why, and their support team was no help ("it's a common practice." Whatever). I need to emit some "stuff" in the header, and I need to do it all on the client side - I do NOT have access to the the webservice, and it doesn't expose any methods
Posted to
XML Web Services
(Forum)
by
jimbob_texas
on 7/24/2007
Adding information to the SOAP Header
I'm consuming a Java web service from a WebSphere server. I have no problems creating the web reference and consuming the service, but apparently it expects more than what .NET sends it. Here's the header that comes out of my ASP.Net application: <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:soap=" http://schemas.xmlsoap.org/soap/envelope/ " xmlns:soapenc=" http://schemas.xmlsoap.org/soap/encoding/ " xmlns:tns=" http://tempuri
Posted to
XML Web Services
(Forum)
by
jimbob_texas
on 7/24/2007
Re: How to Redirect to a Subdirectory
Sounds like you might not have that subdirectory set up as an IIS application directory. Contact your ISP, and tell them you need that folder to be executable. That's what I have to do with my provider (Alentus.com). Regards, jr
Posted to
Club Web Site Starter Kit
(Forum)
by
jimbob_texas
on 8/21/2006
Re: How to Redirect to a Subdirectory
Doug, Just use Server.Transfer("/subdirectory/default.aspx") from your top-level default.aspx page. jr
Posted to
Club Web Site Starter Kit
(Forum)
by
jimbob_texas
on 8/16/2006
Re: Transparent gif in News?
Yeah - or animated gifs for avatars?
Posted to
Club Web Site Starter Kit
(Forum)
by
jimbob_texas
on 8/10/2006
Page 1 of 2 (19 items) 1
2
Next >
Channel 9:
Karsten Januszewski and Tim Aidlin: Introducing Incarnate
Channel 10:
iBing uBing: Bing iPhone App Arrives
WindowsClient:
Migrating an Outlook Client to .NET Framework 4 in Visual Studio 2010
Channel 10:
A Look Behind Mouse 2.0
WindowsClient:
Using Speech Synthesis in .NET 4 and Windows 7
Channel 10:
Office 2010 "5 Rules" Presentation
Channel 10:
30% off Expression Web 3 until Dec 28th
ASP.NET:
Live Preview jQuery Plugin
WindowsClient:
Remember JScript closures capture all variables in scope
TechNet Edge:
UAG reaches RTM
Channel 9:
Who, What, When, Where, Why and How of MIX10
Channel 10:
Berlin Wall in Silverlight
TechNet Edge:
System Center Operations Manager 2007 R2 – Service Level Dashboard part 2, Installation
Silverlight:
Contributing to the SL HVP
Silverlight:
Best SF Books of All Time
Channel 9:
Reactive Extensions API in depth: Repeat
Channel 9:
Jeffrey Van Gogh: Testing Rx with Pex
Channel 9:
The Visual Studio Documentary: Dan Fernandez Full Length Interview
ASP.NET:
Search Engine Optimization (SEO) Toolkit
Channel 10:
This Is Your Data on Silverlight
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online