Menu

SOAP Submission sample

Help
2007-01-15
2013-03-22
  •  Kostis Anagnostopoulos

    Hi,

    Is it possible to have a sample application using XForms 1.1 SOAP submission?

    My use case is the following:

    I have a doc-oriented web service operation, that consumes and returns an XML doc valid against some XML Schema.
    I want an XForm page to submit into that web service operation (using POST).
    I would also like the sample to include fault-management (what happens in case an exceptions gets thrown).

    Thank you in Advance,
      Kostis

     
    • AJAXForms

      AJAXForms - 2007-01-18

      To use SOAP submission the mediatype attribute of the submission must be set to "application/soap+xml;action=NameOfService".

      SOAP faults (400 and 500 level errors) are handled in the same manner as underlying HTTP errors, which is to say that an xforms-submit-error event is dispatched.

      I could not test this feature very well and i'm interested in your opinion.

      Rewards

       
      •  Kostis Anagnostopoulos

        When i set the 'mediatype' as instructed, the compiler throw:

            [error][14, 118][attribute: mediatype] Value not valid: application/soap+xml;action=doDoc

        I event tried not to set the action part on the mediatype, just like this:

            <xf:submission mediatype="application/soap+xml" ...>

        but still nothing.

        And indeed, by searching through the code (from CVS) i found that line:
        [XFormsLibrary.java:89]:
                registerAttribute("mediatype", new StringAttributeCreator(null, "image/*"));

        Am i missing something here?

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.