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

ASAP using .NET

Hi, I try to implement ASAP protocol in my web service, but I find a very
hard problem.
I define my SOAP Header:

[XmlTypeAttribute(Namespace="http://www.oasis-open.org/asap/0.9/asap.xsd")]
[XmlRootAttribute(Namespace="http://www.oasis-open.org/asap/0.9/asap.xsd",
IsNullable=false)]
public class Request : SoapHeader
{

[XmlElementAttribute(Form=XmlSchemaForm.Qualified, DataType="anyURI")]
public string ReplayTo;

[XmlElementAttribute(Form=XmlSchemaForm.Qualified, DataType="anyURI")]
public string From;

[XmlElementAttribute(Form=XmlSchemaForm.Qualified, DataType="anyURI")]
public string To;

[XmlElementAttribute(Form=XmlSchemaForm.Qualified, DataType="anyURI")]
public string MessageID;

[XmlElementAttribute(Form=XmlSchemaForm.Qualified, DataType="anyURI")]
public string Action;

[XmlElementAttribute(Form=XmlSchemaForm.Qualified, DataType="anyURI")]
public string RelatesTo;
}

but when I view WSDL of my web service i find:

<soap:Header>
<Request xmlns="http://www.oasis-open.org/asap/0.9/asap.xsd">
<ReplayTo>anyURI</ReplayTo>
<From>anyURI</From>
<To>anyURI</To>
<MessageID>anyURI</MessageID>
<Action>anyURI</Action>
<RelatesTo>anyURI</RelatesTo>
</Request>
</soap:Header>

This is wrong, because ASAP Header must be:

<soap:Header>
<ReplayTo>anyURI</ReplayTo>
<From>anyURI</From>
<To>anyURI</To>
<MessageID>anyURI</MessageID>
<Action>anyURI</Action>
<RelatesTo>anyURI</RelatesTo>
</soap:Header>

Please, someone have a solution? Thank you.

Max

Nov 23 '05 #1
1 1594
If I understand well your requirements, I think you should have one header
for ReplayTo, one for From, etc., not one big header containing all the
others ; SOAP headers are the elements immediatly under the soap:Header tag,
thus ReplayTo is a different header from the From header, in my opinion.

Moreover, some of these headers look like WS-Addressing headers. If this is
the case, you must precise the namespace.

Regards

François

PS : if I'm wrong about the headers, try removing the XmlRoot attribute or
putting its ElementName field to "" ; by default, this attribute uses the
class name as element name for XML serialization.
Nov 23 '05 #2

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

Similar topics

1
by: whisper | last post by:
Medium/small site with mod_python and sqllite or mySQL running Python 2.3.3 or later on Apache 2.x. I can do the python and CGI, but might need a _little_ hand holding for the rest. Will also...
2
by: AnuSree | last post by:
hi am getting error when am trying to type cast.is it possible to type cast from one type of vector to another type.is there any other way other than overloading.my peice of code in which am...
1
by: Mithun Verma | last post by:
Hello All, I have a Windows application that uses Crystal Reports 9 (bundled Version) developed using VS.NET 2003 on a windows server 2003 m/c. The application has to be deployed on the client...
0
by: Chris | last post by:
We are looking for a highly experienced and extremely good PHP programmer to work on our PHP driven site. You will also need knowledge of XML and Mod Rewrite, CSS and javascript. We are UK based...
2
by: SC | last post by:
I'm having a problem getting this validation script to work. There are two images on the page with the ids of img_antirobot and img_chk_agree. In the final page it will validate about 12 entries,...
2
by: archana | last post by:
Hi all, I want to send webrquest throguh anonymous proxy. Can anyone tell me how to validate ip address and port number of anonynmous proxy server. Is it using TctpClient class ? And...
1
by: jgill | last post by:
Have problems with the recordset…if the value of tempPremium is more than > 10,000 than I get no results after this statement executes: set rsDownPayment =...
3
by: rawat26 | last post by:
I am trying to run a DHTML program.. but it show me an error... "Object does not support the property or method". My program is written below.. <HTML> <HEAD> <TITLE>Structured Graphics -...
2
by: jafarsibtain | last post by:
hi.. I am creating a form where there are two combo Boxes (drop Down) > Program_Combo_box > Course_Code_Combo in the Program Combo Box there are five items in the list > 1. BIT 2.BCA 3....
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

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.