473,289 Members | 2,106 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,289 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 1600
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....
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: 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: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
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
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
1
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...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

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.