Hi, I try to implement ASAP protocol in my web service, but I find a very
hard problem.
I define my SOAP Header:
[XmlTypeAttribut e(Namespace="ht tp://www.oasis-open.org/asap/0.9/asap.xsd")]
[XmlRootAttribut e(Namespace="ht tp://www.oasis-open.org/asap/0.9/asap.xsd",
IsNullable=fals e)]
public class Request : SoapHeader
{
[XmlElementAttri bute(Form=XmlSc hemaForm.Qualif ied, DataType="anyUR I")]
public string ReplayTo;
[XmlElementAttri bute(Form=XmlSc hemaForm.Qualif ied, DataType="anyUR I")]
public string From;
[XmlElementAttri bute(Form=XmlSc hemaForm.Qualif ied, DataType="anyUR I")]
public string To;
[XmlElementAttri bute(Form=XmlSc hemaForm.Qualif ied, DataType="anyUR I")]
public string MessageID;
[XmlElementAttri bute(Form=XmlSc hemaForm.Qualif ied, DataType="anyUR I")]
public string Action;
[XmlElementAttri bute(Form=XmlSc hemaForm.Qualif ied, DataType="anyUR I")]
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>anyUR I</ReplayTo>
<From>anyURI</From>
<To>anyURI</To>
<MessageID>anyU RI</MessageID>
<Action>anyUR I</Action>
<RelatesTo>anyU RI</RelatesTo>
</Request>
</soap:Header>
This is wrong, because ASAP Header must be:
<soap:Header>
<ReplayTo>anyUR I</ReplayTo>
<From>anyURI</From>
<To>anyURI</To>
<MessageID>anyU RI</MessageID>
<Action>anyUR I</Action>
<RelatesTo>anyU RI</RelatesTo>
</soap:Header>
Please, someone have a solution? Thank you.
Max
hard problem.
I define my SOAP Header:
[XmlTypeAttribut e(Namespace="ht tp://www.oasis-open.org/asap/0.9/asap.xsd")]
[XmlRootAttribut e(Namespace="ht tp://www.oasis-open.org/asap/0.9/asap.xsd",
IsNullable=fals e)]
public class Request : SoapHeader
{
[XmlElementAttri bute(Form=XmlSc hemaForm.Qualif ied, DataType="anyUR I")]
public string ReplayTo;
[XmlElementAttri bute(Form=XmlSc hemaForm.Qualif ied, DataType="anyUR I")]
public string From;
[XmlElementAttri bute(Form=XmlSc hemaForm.Qualif ied, DataType="anyUR I")]
public string To;
[XmlElementAttri bute(Form=XmlSc hemaForm.Qualif ied, DataType="anyUR I")]
public string MessageID;
[XmlElementAttri bute(Form=XmlSc hemaForm.Qualif ied, DataType="anyUR I")]
public string Action;
[XmlElementAttri bute(Form=XmlSc hemaForm.Qualif ied, DataType="anyUR I")]
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>anyUR I</ReplayTo>
<From>anyURI</From>
<To>anyURI</To>
<MessageID>anyU RI</MessageID>
<Action>anyUR I</Action>
<RelatesTo>anyU RI</RelatesTo>
</Request>
</soap:Header>
This is wrong, because ASAP Header must be:
<soap:Header>
<ReplayTo>anyUR I</ReplayTo>
<From>anyURI</From>
<To>anyURI</To>
<MessageID>anyU RI</MessageID>
<Action>anyUR I</Action>
<RelatesTo>anyU RI</RelatesTo>
</soap:Header>
Please, someone have a solution? Thank you.
Max
Comment