2 Replies Latest reply on Oct 26, 2006 6:58 PM by jason.greene

    Pure message style SOAP exchange

    giusarno

      Hi,
      I would like to have a simple WS where I can send different XML documents (starting with a different root element) using the same SOAP channel.

      I basically want to implement a simple and generic SOAP XML doc exchange interface.

      I looked at the documentation and I thought Messaging style did for me.
      But when I looked at the conf file I noticed that we still need to specify the root element for the incoming message and for the return message.

      1 question: Why it is so ? if the either the sender and the responder implements method that do not care about the content ?

       <operation name="processElement" return-xml-name="Response">
       <parameter type="javax.xml.soap.SOAPElement" xml-name="Order"/>
       </operation>
       </service>
      
      
      public interface MessageTestService extends Remote
       {
       public Element processElement(Element msg) throws RemoteException;
       }
      


      2 question: How can I solve my problem with JbossWS? is it possible ?

      Can anyone please help on this ?

        • 1. Re: Pure message style SOAP exchange
          caldron68

          If you find out, let me know. I'm trying to do the same thing and have
          not been successful with JBossWS.

          Cheers.

          • 2. Re: Pure message style SOAP exchange
            jason.greene

            This is a WSDL requirement. A document/literal message allows for arbitrary content, but it requires that the containing tag name be defined.

            If you truly want dynamic content, then I would suggest using the SAAJ API with a servlet. However, due to this WSDL constraint you can not publish a legal WSDL file for such a service.

            -Jason