473,395 Members | 1,471 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,395 software developers and data experts.

problems with serialization of the soap header

I need to send a header from my client. The heade need to have following format:
<Header>
<id>23</id>
</Header>

1. I created a soap header:
<System.Xml.Serialization.XmlRoot("id")> _
Public Class IRMHeader
Inherits SoapHeader
<System.Xml.Serialization.XmlText()> _
Public id As String
End Class

2. Adder header variable to my proxy class
Public id As IRMHeader

3. Added attributes to the method

<System.Web.Services.Protocols.SoapHeaderAttribute ("id", _
Direction:=System.Web.Services.Protocols.SoapHeade rDirection.In), _
System.Web.Services.Protocols.SoapRpcMethod("", RequestNamespace:="http://ibm.com", ResponseNamespace:="http://ibm.com")> _
Public Function getComponentDesignControllerAsString() As <System.Xml.Serialization.SoapElementAttribute("ge tComponentDesignControllerAsStringReturn")> String
Dim results() As Object = Me.Invoke("getComponentDesignControllerAsString", New Object(-1) {})
Return CType(results(0), String)
End Function

4. However, no matted what I do, I am getting header with the format below:
- <soap:Header>
- <types:IRMHeader id="h_id1">
<id xsi:type="xsd:string">id>
</types:IRMHeader>
</soap:Header>

Serialization attributes doesn't work for me. Any idea why ??
---
Posted using Wimdows.net NntpNews Component -

Post Made from http://www.DotNetJunkies.com/newsgroups Our newsgroup engine supports Post Alerts, Ratings, and Searching.
Nov 12 '05 #1
0 1575

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

Similar topics

0
by: Stephen Chell | last post by:
Hi all, I'm having problems importing an XML Signature element into a SOAP envelope. I can create the signature without problem, but when I import the signature element into the SOAP header,...
0
by: Stephan Moeller | last post by:
Hi NG, I serialize the following class over .net remoting: using System; using System.Collections; namespace JobServerLib {
3
by: AA | last post by:
Hello I am having problems with a very simple serialization :( I download the schema http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-5-MM7-1-0 and execute the xsd.exe for...
0
by: ioulia | last post by:
I need to send a header from my client. The heade need to have following format: <Header> <id>23</id> </Header> 1. I created a soap header: <System.Xml.Serialization.XmlRoot("id")> _ Public...
0
by: umhlali | last post by:
I get the following exception when my VB.NET app calls a Java web service that returns an array of objects. The same call works for a single object though. So looks like there is no problem...
8
by: ashoksrini | last post by:
Hi All, I have the below requirement and would like to get some feeback from the group on the best way to implement: 1. I have WSDL defined exposing few web services. 2. We dont have a...
0
by: Daniel Thune, MCSE | last post by:
I am having a problem with formatting a SOAP Header in a .Net client. The client calls a Java Axis 1.1 based web service. In order to authenticate the caller, the web service call is intercepted by...
0
by: Richard Lewis | last post by:
I have a web service that is used from a Pocket PC device using .NET CF 1.1 The webservice creates an object structure and serialises the object structure to create the following SOAP response ...
0
by: blat001 | last post by:
Hi, Not 100% sure if this is the correct group to post in but. I have a class that I want to serialize/deserialize to match the MM7 specifications, which I have done but now that we are...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.