I have no problems sending a soap header in my call but how do i read the soap
header response. This is using the proxy generated class I modified it to send
the header info. Heres an excerpt of what i have: private SessionInfo objHeader = null; [System.Web.Services.Protocols.SoapHeader "sessionObject",Direction=SoapHeaderDirection.Out)] [System.Web.Services.Protocols.SoapRpcMethodAttribute("execute", RequestNamespace=_RequestNS, ResponseNamespace=_RequestNS)] [return: System.Xml.Serialization.SoapElementAttribute("result")] public string execute(string sql) { object[] results = this.Invoke("execute", new object[] {sql}); return ((string)(results[0])); }
The sessionObject is a property that set's the private objHeader. How in the world
do i read the header coming back from the soap call:confused: This is what the header object looks like: [XmlRoot("SessionInfo")] public class SessionInfo : SoapHeader { /// [XmlAttribute("xmlns")] public string xmlns=@"http://www.aspconverters.com/SessionInfoHeader"; /// /// user id from succesful login /// [XmlElement(ElementName="SESSION_USER")] public string SESSION_USER = ""; /// /// session id from succesful login /// [XmlElement(ElementName="SESSION_ID")] public string SESSION_ID = ""; [XmlElement(ElementName="SESSION_SIGNATURE")] public string SESSION_SIGNATURE = ""; [XmlElement(ElementName="messageID")] public string messageID = ""; [XmlElement(ElementName="id")] public string id = ""; }
bakerfishsticks
Posts
-
SoapHeaders??? -
nsoftware reviewsWe plan on purchasing the IP Works suite that nsoftware provides. We are going to spend around $8000 and just wanted to know if anyone has had any negative experience with them. I cant seem to find any reviews online so I am asking the CP community for help. :-D
-
RelativityActually you will not do your engine any favors if you give it "super". The different octane's are rated based on the amount of compression it takes to cause it to combust. Your cars manual will tell you what it needs. Oh and the gas stations dont have a super tank,mid grade tank and a regular tank in the ground its all the same gas. the octane gets mixed at the pump!! for example: A higher compression engine will need higher octane. If you have ever heard of a "knock" in the engine this is when a car that needs higher octane has regular gas in it. So when the engine compresses the gas it combusts before the spark plug fires. Only use what your engine needs most likely its regular unless you have a high performance engine...
-
WOOT Bahrain - 9 days 19 hrs 21 min 15 secI went to Bahrain when i was in the navy. It was funny the ship always gives currency exchange rates before we went ashore and they got it backwards!!! So we all thought our money was worth twice there's. So needless to say i spent a hell of a lot more money then i planed on thinking everything was cheaper :((
-
Java & .netJAVA was first thats a fact. I was only stating that J# syntax is exactly the same as java. C# is more like c++ but cleaner. J# was developed for java developers to come over to the .net framework. All of the packages are from version 1.43 i think?...SUN tried to sue microsoft for this but lost. As far as the .net framework being a copy paste i dont think they did that..
-
Java & .nettoxcct wrote:
damn !!! why comparing C# with Java ?! they are exactly the same ! excepted that one come from Microsoft (the other were copied and renamed)
You mean J# not C#
-
Anti-VBShog9 wrote:
VB6 definitely suffers from a much worse development UI. But it's the programmers who gravitate towards them that bug me most, not the languages themselves.
Actually i agree with you!! I am not a VB programmer just trying to make the point that it's a tool and a valid tool to use. I use it most with office VBA stuff, but all of my application work is in JAVA/C#. Yes most progammers that use VB should not be programming. The argument is why we bash on VB as a language, personally i have nothing against VB.
-
Anti-VB -
Anti-VBI agree. Thats why i have a garage full of tools becuase if one did everything well... need i say more.
-
Anti-VBOnly because he is lashing out. Just an observation. Personally i dont care either!!
-
Anti-VBJohn Simmons / outlaw programmer wrote:
Hmmm, I can't recall an app that I was involved with that was ever delivered late, and every one of them looked better than any VB app you might want to point out.
that works when your timelines are twice as long.
-
Anti-VByou must be a very lonely man.
-
Anti-VBLook VB is just a tool same as C++ and has its advantages and disadvantages. From a business stand point VB is great, you can get an app out very quickly without worring about about the little things. I think the people that complain about VB are the JAVA/C#/C++ coders because they think using these language makes them an engineer!! HA, C# which i code in and Java are 4gl languages and C++ is nothing more then a 3gl language and most of us only code for business software which really does not require c++ at all. Think about it if all businesses used c++ apps would never be on time. Thank god for java and .net and yes vb. If you want to feel like an engineer use assembly for microprocesser programming, create your own OS. But otherwiese just accept VB is a tool some people can use well and some just hack it up which is why we are here.