You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-dev@ws.apache.org by "Rich Scheuerle (JIRA)" <ji...@apache.org> on 2007/01/18 23:08:29 UTC

[jira] Created: (WSCOMMONS-154) A SOAP 1.2 SWARef Message is denied

A SOAP 1.2 SWARef Message is denied
-----------------------------------

                 Key: WSCOMMONS-154
                 URL: https://issues.apache.org/jira/browse/WSCOMMONS-154
             Project: WS-Commons
          Issue Type: Bug
          Components: AXIOM
            Reporter: Rich Scheuerle


A SOAP 1.2 Message with a SWARef attachment is denied.

I have a patch to accept the SOAP 1.2 content-type "application/soap+xml"

-- 
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: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org


[jira] Resolved: (WSCOMMONS-154) A SOAP 1.2 SWARef Message is denied

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

Rich Scheuerle resolved WSCOMMONS-154.
--------------------------------------

    Resolution: Fixed

Committed revision 497649

Thanks to Gordon Kuo for finding this problem and helping with the change.

> A SOAP 1.2 SWARef Message is denied
> -----------------------------------
>
>                 Key: WSCOMMONS-154
>                 URL: https://issues.apache.org/jira/browse/WSCOMMONS-154
>             Project: WS-Commons
>          Issue Type: Bug
>          Components: AXIOM
>            Reporter: Rich Scheuerle
>         Assigned To: Rich Scheuerle
>         Attachments: patch.txt
>
>
> A SOAP 1.2 Message with a SWARef attachment is denied.
> I have a patch to accept the SOAP 1.2 content-type "application/soap+xml"

-- 
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: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org


[jira] Updated: (WSCOMMONS-154) A SOAP 1.2 SWARef Message is denied

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

Rich Scheuerle updated WSCOMMONS-154:
-------------------------------------

    Attachment: patch.txt

> A SOAP 1.2 SWARef Message is denied
> -----------------------------------
>
>                 Key: WSCOMMONS-154
>                 URL: https://issues.apache.org/jira/browse/WSCOMMONS-154
>             Project: WS-Commons
>          Issue Type: Bug
>          Components: AXIOM
>            Reporter: Rich Scheuerle
>         Assigned To: Rich Scheuerle
>         Attachments: patch.txt
>
>
> A SOAP 1.2 Message with a SWARef attachment is denied.
> I have a patch to accept the SOAP 1.2 content-type "application/soap+xml"

-- 
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: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org


[jira] Updated: (WSCOMMONS-154) A SOAP 1.2 SWARef Message is denied

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

Rich Scheuerle updated WSCOMMONS-154:
-------------------------------------

    Attachment: patch_axis2.txt

Here is the axis2 patch with Gordon's change.  I will commit this patch after I run some tests.

> A SOAP 1.2 SWARef Message is denied
> -----------------------------------
>
>                 Key: WSCOMMONS-154
>                 URL: https://issues.apache.org/jira/browse/WSCOMMONS-154
>             Project: WS-Commons
>          Issue Type: Bug
>          Components: AXIOM
>            Reporter: Rich Scheuerle
>         Assigned To: Rich Scheuerle
>         Attachments: patch.txt, patch_axis2.txt
>
>
> A SOAP 1.2 Message with a SWARef attachment is denied.
> I have a patch to accept the SOAP 1.2 content-type "application/soap+xml"

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Reopened: (WSCOMMONS-154) A SOAP 1.2 SWARef Message is denied

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

Rich Scheuerle reopened WSCOMMONS-154:
--------------------------------------


A similar change is needed in the Axis2  Builder code.

Here is the suggested change from Gordon Kuo  ...see the <----- lines
    public static StAXBuilder getAttachmentsBuilder(MessageContext msgContext,
			InputStream inStream, String contentTypeString, boolean isSOAP)
			throws OMException, XMLStreamException, FactoryConfigurationError {
		StAXBuilder builder = null;
		XMLStreamReader streamReader;

        Attachments attachments = createAttachment(msgContext, inStream, contentTypeString);
		String charSetEncoding = getCharSetEncoding(attachments.getSOAPPartContentType());

		if ((charSetEncoding == null)
				|| "null".equalsIgnoreCase(charSetEncoding)) {
			charSetEncoding = MessageContext.UTF_8;
		}
		msgContext.setProperty(Constants.Configuration.CHARACTER_SET_ENCODING,
				charSetEncoding);

		try {
			streamReader = StAXUtils.createXMLStreamReader(getReader(
					attachments.getSOAPPartInputStream(), charSetEncoding));
		} catch (IOException e) {
			throw new XMLStreamException(e);
		}

		
		//  Put a reference to Attachments Map in to the message context For
		// backword compatibility with Axis2 1.0 
		msgContext.setProperty(MTOMConstants.ATTACHMENTS, attachments);

		// Setting the Attachments map to new SwA API
		msgContext.setAttachmentMap(attachments);

		String soapEnvelopeNamespaceURI = getEnvelopeNamespace(contentTypeString);

		if (isSOAP) {
			if (attachments.getAttachmentSpecType().equals(
					MTOMConstants.MTOM_TYPE)) {
				//Creates the MTOM specific MTOMStAXSOAPModelBuilder
				builder = new MTOMStAXSOAPModelBuilder(streamReader,
						attachments, soapEnvelopeNamespaceURI);
				msgContext.setDoingMTOM(true);
			} else if (attachments.getAttachmentSpecType().equals(
					MTOMConstants.SWA_TYPE)) {
				builder = new StAXSOAPModelBuilder(streamReader,
						soapEnvelopeNamespaceURI);
		-->   } else if (attachments.getAttachmentSpecType().equals(
                -->                    MTOMConstants.SWA_TYPE_12) ) {
                -->             builder = new StAXSOAPModelBuilder(streamReader,
                -->                            soapEnvelopeNamespaceURI);
              --->   }

		}
		// To handle REST XOP case
		else {
			if (attachments.getAttachmentSpecType().equals(
					MTOMConstants.MTOM_TYPE)) {
				XOPAwareStAXOMBuilder stAXOMBuilder = new XOPAwareStAXOMBuilder(
						streamReader, attachments);
				builder = stAXOMBuilder;

			} else if (attachments.getAttachmentSpecType().equals(
					MTOMConstants.SWA_TYPE)) {
				builder = new StAXOMBuilder(streamReader);
		-->	} else if (attachments.getAttachmentSpecType().equals(
                -->                  MTOMConstants.SWA_TYPE_12) ) {
                -->          builder = new StAXOMBuilder(streamReader);
                -->     }
		}

		return builder;
	}

> A SOAP 1.2 SWARef Message is denied
> -----------------------------------
>
>                 Key: WSCOMMONS-154
>                 URL: https://issues.apache.org/jira/browse/WSCOMMONS-154
>             Project: WS-Commons
>          Issue Type: Bug
>          Components: AXIOM
>            Reporter: Rich Scheuerle
>         Assigned To: Rich Scheuerle
>         Attachments: patch.txt
>
>
> A SOAP 1.2 Message with a SWARef attachment is denied.
> I have a patch to accept the SOAP 1.2 content-type "application/soap+xml"

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Assigned: (WSCOMMONS-154) A SOAP 1.2 SWARef Message is denied

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

Rich Scheuerle reassigned WSCOMMONS-154:
----------------------------------------

    Assignee: Rich Scheuerle

> A SOAP 1.2 SWARef Message is denied
> -----------------------------------
>
>                 Key: WSCOMMONS-154
>                 URL: https://issues.apache.org/jira/browse/WSCOMMONS-154
>             Project: WS-Commons
>          Issue Type: Bug
>          Components: AXIOM
>            Reporter: Rich Scheuerle
>         Assigned To: Rich Scheuerle
>
> A SOAP 1.2 Message with a SWARef attachment is denied.
> I have a patch to accept the SOAP 1.2 content-type "application/soap+xml"

-- 
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: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org


[jira] Resolved: (WSCOMMONS-154) A SOAP 1.2 SWARef Message is denied

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

Rich Scheuerle resolved WSCOMMONS-154.
--------------------------------------

    Resolution: Fixed

Committed revision 499982.

> A SOAP 1.2 SWARef Message is denied
> -----------------------------------
>
>                 Key: WSCOMMONS-154
>                 URL: https://issues.apache.org/jira/browse/WSCOMMONS-154
>             Project: WS-Commons
>          Issue Type: Bug
>          Components: AXIOM
>            Reporter: Rich Scheuerle
>         Assigned To: Rich Scheuerle
>         Attachments: patch.txt, patch_axis2.txt
>
>
> A SOAP 1.2 Message with a SWARef attachment is denied.
> I have a patch to accept the SOAP 1.2 content-type "application/soap+xml"

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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