473,387 Members | 1,678 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Problem with SOAP headers

When i use web method i must send header to it
in wsdl i have

<import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
- <complexType name="userContext">
- <sequence>
<element name="name" nillable="true" type="soapenc:string" />
<element name="password" nillable="true" type="soapenc:string" />
</sequence>
</complexType>

Visual Studion generate proxy (part)
[System.Xml.Serialization.SoapTypeAttribute("userCo ntext",
"http:/www.umike.ru/site/web")]
public class userContext : SoapHeader {

/// <remarks/>
public string name;

/// <remarks/>
public string password;
}

when i send this class as header
<tns:userContext id="id1" soap:mustUnderstand="1"><name
xsi:type="xsd:string">DEMOUSER</name><password
xsi:type="xsd:string">DEMOUSER</password></tns:userContext>

and when in body
<tns:userContext id="id1" soap:mustUnderstand="1" xsi:type="tns:userContext"
<name xsi:type="xsd:string">DEMOUSER</name><password

xsi:type="xsd:string">DEMOUSER</password></tns:userContext>

why element xsi:type="tns:userContext" is absent in header ?

Thank you
Nov 23 '05 #1
0 890

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Eric Osman | last post by:
If my question sounds ill-formed, please cut me some slack as I'm just getting started with this part of the code. We're trying to do an axis soap interface, that is, talk to a site that already...
3
by: mark kurten | last post by:
I have a soap message that looks like this. s = s & " <soap:Envelope xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'" s = s & " xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'" s =...
1
by: Jimbo | last post by:
Hi people, I am playing with the WSE 2.0 SP3 and am trying to get use the ReplyTo WS-Addressing header to send a response to a different machine than where the request came from. However, in my...
1
by: MR | last post by:
I am in dire need of help in trying to get the client code for a web service to work. i don't have a WSDL for the service so i created my own ASP.NET service to test with. i converted the DTD...
3
by: techieTex | last post by:
I have a simple SOAP Extension which does nothing but to log the SOAP message to a file. This works fine when I use the webservice by adding a webreference and using the class. However my...
0
by: gerritmitchell | last post by:
Hi, I have a situation where I need to send a SOAP message from a receiver through multiple intermediaries and then to an ultimate receiver. The intial sender will tell the intermediary where...
0
by: Wijnand Kroes | last post by:
Hi guys, I have a C#.NET client which sends SOAP requests to .Net webservices and non ..Net webservices. If I do not add a SOAP header a get a valid response from all webservices. If I do add...
0
by: Nithi Gurusamy | last post by:
I have generated a Web-Service-Proxy (Add Web Reference) within VS. This proxy class is based on WebServicesClientProtocol of WSE 3.0. I want to add some custom HTTP Headers to the envelop before...
5
by: =?Utf-8?B?SmltbWVy?= | last post by:
Hello, I've been trying to create a WCF SOAP Router Service that can forward not just the message body but also any security headers set by the originator of the message. The destination service...
3
by: Enda Manni | last post by:
Hi, I have a gSoap Web Service written using C++, it uses SOAP username and password authentication. I also have a C# form client consuming the web service, all this was working fine until...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.