Search

You searched for the word(s): userid:665167

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 >