You are viewing a plain text version of this content. The canonical link for it is here.
Posted to muse-dev@ws.apache.org by "Mohammad Fakhar (JIRA)" <ji...@apache.org> on 2006/11/08 18:42:52 UTC

[jira] Created: (MUSE-145) Suppressing default SOAP body responses when response is empty and no message handlers exist for the operation

Suppressing default SOAP body responses when response is empty and no message handlers exist for the operation
--------------------------------------------------------------------------------------------------------------

                 Key: MUSE-145
                 URL: http://issues.apache.org/jira/browse/MUSE-145
             Project: Muse
          Issue Type: New Feature
          Components: Core Engine - Routing and Serialization
    Affects Versions: 2.1.0
         Environment: any
            Reporter: Mohammad Fakhar
         Assigned To: Dan Jemiolo
            Priority: Minor


For operations that have empty SOAP bodies, both on the request and response, it usually does not make sense to write a message handler; as there is nothing to handle on incoming or outgoing message. For such operations, Muse adds a default element in the SOAP body on the response, in the format:

<muse-op:"the wsa action"Response ............../>

There should be some way of suppressing this behavior as some web services actually require empty soap bodies on the response.
The alternative for users is to create message handlers that do nothing.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: muse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-dev-help@ws.apache.org


[jira] Updated: (MUSE-145) Suppressing default SOAP body responses when response is empty and no message handlers exist for the operation

Posted by "Dan Jemiolo (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/MUSE-145?page=all ]

Dan Jemiolo updated MUSE-145:
-----------------------------

        Fix Version/s: 2.1.0
    Affects Version/s: 2.0.0
                           (was: 2.1.0)

I've updated SoapClient and SimpleSoapClient by adding another version of send() that can take a set of extra SOAP headers. I then added another version of AbstractResourceClient.invoke() that could do the same, so that client authors could pass the non-WSA headers via invoke() and not have to deal with the SoapClient directly. No code breakage.

This will be committed for 2.1.

> Suppressing default SOAP body responses when response is empty and no message handlers exist for the operation
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: MUSE-145
>                 URL: http://issues.apache.org/jira/browse/MUSE-145
>             Project: Muse
>          Issue Type: New Feature
>          Components: Core Engine - Routing and Serialization
>    Affects Versions: 2.0.0
>         Environment: any
>            Reporter: Mohammad Fakhar
>         Assigned To: Dan Jemiolo
>            Priority: Minor
>             Fix For: 2.1.0
>
>
> For operations that have empty SOAP bodies, both on the request and response, it usually does not make sense to write a message handler; as there is nothing to handle on incoming or outgoing message. For such operations, Muse adds a default element in the SOAP body on the response, in the format:
> <muse-op:"the wsa action"Response ............../>
> There should be some way of suppressing this behavior as some web services actually require empty soap bodies on the response.
> The alternative for users is to create message handlers that do nothing.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: muse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-dev-help@ws.apache.org


[jira] Commented: (MUSE-145) Suppressing default SOAP body responses when response is empty and no message handlers exist for the operation

Posted by "Mohammad Fakhar (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/MUSE-145?page=comments#action_12457982 ] 
            
Mohammad Fakhar commented on MUSE-145:
--------------------------------------

Could not verify this with nightly build. The bug is in AbstractMessageHandler on line 89:
        if (_requestQName != null)
            _responseQName = createResponseName();

The RelectionMessageHandler, which is the default handler when none is present, checks this in its toXML() method:

        if (returnType == Void.TYPE && responseBodyName == null)
            return null;

We should not be creating a response qname just because there is a request qname.



> Suppressing default SOAP body responses when response is empty and no message handlers exist for the operation
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: MUSE-145
>                 URL: http://issues.apache.org/jira/browse/MUSE-145
>             Project: Muse
>          Issue Type: New Feature
>          Components: Core Engine - Routing and Serialization
>    Affects Versions: 2.0.0
>         Environment: any
>            Reporter: Mohammad Fakhar
>         Assigned To: Dan Jemiolo
>            Priority: Minor
>             Fix For: 2.1.0
>
>         Attachments: muse145wsdl.zip
>
>
> For operations that have empty SOAP bodies, both on the request and response, it usually does not make sense to write a message handler; as there is nothing to handle on incoming or outgoing message. For such operations, Muse adds a default element in the SOAP body on the response, in the format:
> <muse-op:"the wsa action"Response ............../>
> There should be some way of suppressing this behavior as some web services actually require empty soap bodies on the response.
> The alternative for users is to create message handlers that do nothing.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: muse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-dev-help@ws.apache.org


[jira] Commented: (MUSE-145) Suppressing default SOAP body responses when response is empty and no message handlers exist for the operation

Posted by "Mohammad Fakhar (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MUSE-145?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12465024 ] 

Mohammad Fakhar commented on MUSE-145:
--------------------------------------

fair enough, we confirm to WS-I and its not hard to create an empty handler anyway.

> Suppressing default SOAP body responses when response is empty and no message handlers exist for the operation
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: MUSE-145
>                 URL: https://issues.apache.org/jira/browse/MUSE-145
>             Project: Muse
>          Issue Type: New Feature
>          Components: Core Engine - Routing and Serialization
>    Affects Versions: 2.0.0
>         Environment: any
>            Reporter: Mohammad Fakhar
>         Assigned To: Dan Jemiolo
>            Priority: Minor
>             Fix For: 2.2.0
>
>         Attachments: muse145wsdl.zip
>
>
> For operations that have empty SOAP bodies, both on the request and response, it usually does not make sense to write a message handler; as there is nothing to handle on incoming or outgoing message. For such operations, Muse adds a default element in the SOAP body on the response, in the format:
> <muse-op:"the wsa action"Response ............../>
> There should be some way of suppressing this behavior as some web services actually require empty soap bodies on the response.
> The alternative for users is to create message handlers that do nothing.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: muse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-dev-help@ws.apache.org


[jira] Updated: (MUSE-145) Suppressing default SOAP body responses when response is empty and no message handlers exist for the operation

Posted by "Dan Jemiolo (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/MUSE-145?page=all ]

Dan Jemiolo updated MUSE-145:
-----------------------------

    Comment: was deleted

> Suppressing default SOAP body responses when response is empty and no message handlers exist for the operation
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: MUSE-145
>                 URL: http://issues.apache.org/jira/browse/MUSE-145
>             Project: Muse
>          Issue Type: New Feature
>          Components: Core Engine - Routing and Serialization
>    Affects Versions: 2.0.0
>         Environment: any
>            Reporter: Mohammad Fakhar
>         Assigned To: Dan Jemiolo
>            Priority: Minor
>             Fix For: 2.1.0
>
>
> For operations that have empty SOAP bodies, both on the request and response, it usually does not make sense to write a message handler; as there is nothing to handle on incoming or outgoing message. For such operations, Muse adds a default element in the SOAP body on the response, in the format:
> <muse-op:"the wsa action"Response ............../>
> There should be some way of suppressing this behavior as some web services actually require empty soap bodies on the response.
> The alternative for users is to create message handlers that do nothing.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: muse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-dev-help@ws.apache.org


[jira] Commented: (MUSE-145) Suppressing default SOAP body responses when response is empty and no message handlers exist for the operation

Posted by "Dan Jemiolo (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MUSE-145?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12462609 ] 

Dan Jemiolo commented on MUSE-145:
----------------------------------

After looking at this a while, I think that an empty handler might be the best way around this. Aside from the WS-I BP issues around doc-literal, it's already hard to differentiate between the various ways you can specify output types/elements in WSDL 1.1; adding another (for no output message vs. no output part) would make an already confusing section of code more so. Right now our best practices are  based on WS-I BP style services, with empty elements equaling void content. To meet the needs of MS-oriented specs that don't conform, it's probably much easier to just create an empty handler to be shared by those few operations than to add more WSDL conventions that people have to read.


> Suppressing default SOAP body responses when response is empty and no message handlers exist for the operation
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: MUSE-145
>                 URL: https://issues.apache.org/jira/browse/MUSE-145
>             Project: Muse
>          Issue Type: New Feature
>          Components: Core Engine - Routing and Serialization
>    Affects Versions: 2.0.0
>         Environment: any
>            Reporter: Mohammad Fakhar
>         Assigned To: Dan Jemiolo
>            Priority: Minor
>             Fix For: 2.2.0
>
>         Attachments: muse145wsdl.zip
>
>
> For operations that have empty SOAP bodies, both on the request and response, it usually does not make sense to write a message handler; as there is nothing to handle on incoming or outgoing message. For such operations, Muse adds a default element in the SOAP body on the response, in the format:
> <muse-op:"the wsa action"Response ............../>
> There should be some way of suppressing this behavior as some web services actually require empty soap bodies on the response.
> The alternative for users is to create message handlers that do nothing.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: muse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-dev-help@ws.apache.org


[jira] Commented: (MUSE-145) Suppressing default SOAP body responses when response is empty and no message handlers exist for the operation

Posted by "Dan Jemiolo (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/MUSE-145?page=comments#action_12448618 ] 
            
Dan Jemiolo commented on MUSE-145:
----------------------------------

Current fix doesn't break anything - can you send me the WSDL you're using to determine whether muse meets your needs? make sure the WSDL has a portType (not just the message definitions), and include a pointer to the exact operation(s) you're interested in. if WSDL2java won't work on them, I will create a skeleton capability that implements the operations and make sure there's no NPEs.

> Suppressing default SOAP body responses when response is empty and no message handlers exist for the operation
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: MUSE-145
>                 URL: http://issues.apache.org/jira/browse/MUSE-145
>             Project: Muse
>          Issue Type: New Feature
>          Components: Core Engine - Routing and Serialization
>    Affects Versions: 2.0.0
>         Environment: any
>            Reporter: Mohammad Fakhar
>         Assigned To: Dan Jemiolo
>            Priority: Minor
>             Fix For: 2.1.0
>
>
> For operations that have empty SOAP bodies, both on the request and response, it usually does not make sense to write a message handler; as there is nothing to handle on incoming or outgoing message. For such operations, Muse adds a default element in the SOAP body on the response, in the format:
> <muse-op:"the wsa action"Response ............../>
> There should be some way of suppressing this behavior as some web services actually require empty soap bodies on the response.
> The alternative for users is to create message handlers that do nothing.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: muse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-dev-help@ws.apache.org


[jira] Updated: (MUSE-145) Suppressing default SOAP body responses when response is empty and no message handlers exist for the operation

Posted by "Mohammad Fakhar (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/MUSE-145?page=all ]

Mohammad Fakhar updated MUSE-145:
---------------------------------

    Attachment: muse145wsdl.zip

hi, the attached zip has the wsevn.wsdl, the port type is SubMgrPortType, and the operation is Unsubscribe.
As you can see, I do have a response message for that operation, which points to an Empty type in the wsevn.xsd schema. I had to do this to convince muse that this is a doc literal web service. But in reality, the operation is supposed to have an empty response body.

thanks, 

mohammad

> Suppressing default SOAP body responses when response is empty and no message handlers exist for the operation
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: MUSE-145
>                 URL: http://issues.apache.org/jira/browse/MUSE-145
>             Project: Muse
>          Issue Type: New Feature
>          Components: Core Engine - Routing and Serialization
>    Affects Versions: 2.0.0
>         Environment: any
>            Reporter: Mohammad Fakhar
>         Assigned To: Dan Jemiolo
>            Priority: Minor
>             Fix For: 2.1.0
>
>         Attachments: muse145wsdl.zip
>
>
> For operations that have empty SOAP bodies, both on the request and response, it usually does not make sense to write a message handler; as there is nothing to handle on incoming or outgoing message. For such operations, Muse adds a default element in the SOAP body on the response, in the format:
> <muse-op:"the wsa action"Response ............../>
> There should be some way of suppressing this behavior as some web services actually require empty soap bodies on the response.
> The alternative for users is to create message handlers that do nothing.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: muse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-dev-help@ws.apache.org


[jira] Commented: (MUSE-145) Suppressing default SOAP body responses when response is empty and no message handlers exist for the operation

Posted by "Dan Jemiolo (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/MUSE-145?page=comments#action_12457120 ] 
            
Dan Jemiolo commented on MUSE-145:
----------------------------------

Can you try the nightly build (http://ws.apache.org/muse/nightly) and make sure this solves your issue?

> Suppressing default SOAP body responses when response is empty and no message handlers exist for the operation
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: MUSE-145
>                 URL: http://issues.apache.org/jira/browse/MUSE-145
>             Project: Muse
>          Issue Type: New Feature
>          Components: Core Engine - Routing and Serialization
>    Affects Versions: 2.0.0
>         Environment: any
>            Reporter: Mohammad Fakhar
>         Assigned To: Dan Jemiolo
>            Priority: Minor
>             Fix For: 2.1.0
>
>         Attachments: muse145wsdl.zip
>
>
> For operations that have empty SOAP bodies, both on the request and response, it usually does not make sense to write a message handler; as there is nothing to handle on incoming or outgoing message. For such operations, Muse adds a default element in the SOAP body on the response, in the format:
> <muse-op:"the wsa action"Response ............../>
> There should be some way of suppressing this behavior as some web services actually require empty soap bodies on the response.
> The alternative for users is to create message handlers that do nothing.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: muse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-dev-help@ws.apache.org


[jira] Updated: (MUSE-145) Suppressing default SOAP body responses when response is empty and no message handlers exist for the operation

Posted by "Dan Jemiolo (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/MUSE-145?page=all ]

Dan Jemiolo updated MUSE-145:
-----------------------------

    Fix Version/s: 2.2.0
                       (was: 2.1.0)

> Suppressing default SOAP body responses when response is empty and no message handlers exist for the operation
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: MUSE-145
>                 URL: http://issues.apache.org/jira/browse/MUSE-145
>             Project: Muse
>          Issue Type: New Feature
>          Components: Core Engine - Routing and Serialization
>    Affects Versions: 2.0.0
>         Environment: any
>            Reporter: Mohammad Fakhar
>         Assigned To: Dan Jemiolo
>            Priority: Minor
>             Fix For: 2.2.0
>
>         Attachments: muse145wsdl.zip
>
>
> For operations that have empty SOAP bodies, both on the request and response, it usually does not make sense to write a message handler; as there is nothing to handle on incoming or outgoing message. For such operations, Muse adds a default element in the SOAP body on the response, in the format:
> <muse-op:"the wsa action"Response ............../>
> There should be some way of suppressing this behavior as some web services actually require empty soap bodies on the response.
> The alternative for users is to create message handlers that do nothing.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: muse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-dev-help@ws.apache.org


[jira] Closed: (MUSE-145) Suppressing default SOAP body responses when response is empty and no message handlers exist for the operation

Posted by "Dan Jemiolo (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MUSE-145?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dan Jemiolo closed MUSE-145.
----------------------------

    Resolution: Fixed

> Suppressing default SOAP body responses when response is empty and no message handlers exist for the operation
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: MUSE-145
>                 URL: https://issues.apache.org/jira/browse/MUSE-145
>             Project: Muse
>          Issue Type: New Feature
>          Components: Core Engine - Routing and Serialization
>    Affects Versions: 2.0.0
>         Environment: any
>            Reporter: Mohammad Fakhar
>         Assigned To: Dan Jemiolo
>            Priority: Minor
>             Fix For: 2.2.0
>
>         Attachments: muse145wsdl.zip
>
>
> For operations that have empty SOAP bodies, both on the request and response, it usually does not make sense to write a message handler; as there is nothing to handle on incoming or outgoing message. For such operations, Muse adds a default element in the SOAP body on the response, in the format:
> <muse-op:"the wsa action"Response ............../>
> There should be some way of suppressing this behavior as some web services actually require empty soap bodies on the response.
> The alternative for users is to create message handlers that do nothing.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: muse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-dev-help@ws.apache.org


[jira] Commented: (MUSE-145) Suppressing default SOAP body responses when response is empty and no message handlers exist for the operation

Posted by "Dan Jemiolo (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/MUSE-145?page=comments#action_12448595 ] 
            
Dan Jemiolo commented on MUSE-145:
----------------------------------

I've made progress on this, and will test it tonight to confirm it didn't break anything. I don't know if it will fit every use case you have around empty bodies, but it will be farther than before.


> Suppressing default SOAP body responses when response is empty and no message handlers exist for the operation
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: MUSE-145
>                 URL: http://issues.apache.org/jira/browse/MUSE-145
>             Project: Muse
>          Issue Type: New Feature
>          Components: Core Engine - Routing and Serialization
>    Affects Versions: 2.0.0
>         Environment: any
>            Reporter: Mohammad Fakhar
>         Assigned To: Dan Jemiolo
>            Priority: Minor
>             Fix For: 2.1.0
>
>
> For operations that have empty SOAP bodies, both on the request and response, it usually does not make sense to write a message handler; as there is nothing to handle on incoming or outgoing message. For such operations, Muse adds a default element in the SOAP body on the response, in the format:
> <muse-op:"the wsa action"Response ............../>
> There should be some way of suppressing this behavior as some web services actually require empty soap bodies on the response.
> The alternative for users is to create message handlers that do nothing.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: muse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-dev-help@ws.apache.org