Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / July 2005

Tip: Looking for answers? Try searching our database.

ASAP using .NET

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Massimo Bonanni - 18 Jul 2005 11:07 GMT
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
François Lemaire - 18 Jul 2005 15:19 GMT
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.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.