You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Freeman Fang (JIRA)" <ji...@apache.org> on 2008/02/18 04:47:15 UTC

[jira] Created: (SM-1232) Mtom not working correctly with cxf-bc provider

Mtom not working correctly with cxf-bc provider
-----------------------------------------------

                 Key: SM-1232
                 URL: https://issues.apache.org/activemq/browse/SM-1232
             Project: ServiceMix
          Issue Type: Bug
            Reporter: Freeman Fang
            Assignee: Freeman Fang
             Fix For: 3.2.2, 3.3


Hi,
I'm using the CXF BC as output component, but I'm not able to send out
MTOM requests.

My SA is composed of 2 binding components, both CXF: with the input I
dont have problems and I receive an MTOM request.
With the output BC I have the problem that in output the message sent is
SOAP, not MTOM, and the attachment is missing.

I saw that there are a lot of Interceptors, I used the following
(directly from code, actually) :
       outList.add(new MtomCheckInterceptor(true));
       outList.add(new AttachmentOutInterceptor());
       outList.add(new JbiOutWsdl1Interceptor());
       outList.add(new SoapPreProtocolOutInterceptor());
       outList.add(new SoapOutInterceptor(getBus()));

I changed also my WSDL adding the attribute xmime:expectedContentTypes
on the binary documents, as stated on the CXF documentation.

Any suggestion ?


Thanks

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


[jira] Reopened: (SM-1232) Mtom not working correctly with cxf-bc provider

Posted by "Gianfranco Boccalon (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SM-1232?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gianfranco Boccalon reopened SM-1232:
-------------------------------------


I read the fixes made on the CxfBcProvider and I have some comments about them:

1. I saw that some code was added to manage the attachments (they were missing in the Cxf message).
I think that this code should be in an Interceptor, with the same structure used in the consumer.
I found an old JbiOutInterceptor and I adapted it to the new CXF interfaces. I provide it as a starting point.

2. I saw that when Mtom is enabled the content type is setted always to
 message.put(Message.CONTENT_TYPE, "application/octet-stream");

but this is the content type of the XML part of the MIME request (as I saw from the various interceptors), so it should be always "application/soap+xml".
There is no other point where the content type is setted, and if it's not setted the AttachmentSerializer throws an exception.

3. Soap 1.2 is supported in the consumer, and also in the provider, but there is no way to activate it. In the provider that I supply, it's enabled by default, but there should be a property to enable it.

> Mtom not working correctly with cxf-bc provider
> -----------------------------------------------
>
>                 Key: SM-1232
>                 URL: https://issues.apache.org/activemq/browse/SM-1232
>             Project: ServiceMix
>          Issue Type: Bug
>            Reporter: Freeman Fang
>            Assignee: Freeman Fang
>             Fix For: 3.2.2, 3.3
>
>
> Hi,
> I'm using the CXF BC as output component, but I'm not able to send out
> MTOM requests.
> My SA is composed of 2 binding components, both CXF: with the input I
> dont have problems and I receive an MTOM request.
> With the output BC I have the problem that in output the message sent is
> SOAP, not MTOM, and the attachment is missing.
> I saw that there are a lot of Interceptors, I used the following
> (directly from code, actually) :
>        outList.add(new MtomCheckInterceptor(true));
>        outList.add(new AttachmentOutInterceptor());
>        outList.add(new JbiOutWsdl1Interceptor());
>        outList.add(new SoapPreProtocolOutInterceptor());
>        outList.add(new SoapOutInterceptor(getBus()));
> I changed also my WSDL adding the attribute xmime:expectedContentTypes
> on the binary documents, as stated on the CXF documentation.
> Any suggestion ?
> Thanks

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


[jira] Resolved: (SM-1232) Mtom not working correctly with cxf-bc provider

Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SM-1232?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Freeman Fang resolved SM-1232.
------------------------------

    Resolution: Fixed

> Mtom not working correctly with cxf-bc provider
> -----------------------------------------------
>
>                 Key: SM-1232
>                 URL: https://issues.apache.org/activemq/browse/SM-1232
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: servicemix-cxf-bc
>            Reporter: Freeman Fang
>            Assignee: Freeman Fang
>             Fix For: 3.2.2, 3.3
>
>         Attachments: CxfBcProvider.java, JbiOutInterceptor.java
>
>
> Hi,
> I'm using the CXF BC as output component, but I'm not able to send out
> MTOM requests.
> My SA is composed of 2 binding components, both CXF: with the input I
> dont have problems and I receive an MTOM request.
> With the output BC I have the problem that in output the message sent is
> SOAP, not MTOM, and the attachment is missing.
> I saw that there are a lot of Interceptors, I used the following
> (directly from code, actually) :
>        outList.add(new MtomCheckInterceptor(true));
>        outList.add(new AttachmentOutInterceptor());
>        outList.add(new JbiOutWsdl1Interceptor());
>        outList.add(new SoapPreProtocolOutInterceptor());
>        outList.add(new SoapOutInterceptor(getBus()));
> I changed also my WSDL adding the attribute xmime:expectedContentTypes
> on the binary documents, as stated on the CXF documentation.
> Any suggestion ?
> Thanks

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


[jira] Commented: (SM-1232) Mtom not working correctly with cxf-bc provider

Posted by "Gianfranco Boccalon (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SM-1232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=41340#action_41340 ] 

Gianfranco Boccalon commented on SM-1232:
-----------------------------------------

What about if an operation supports multiple bindings, one binding for each soap version ?
In this case it's not possible an automatic choice: this is exactly my case.

Ok for svn diff.

> Mtom not working correctly with cxf-bc provider
> -----------------------------------------------
>
>                 Key: SM-1232
>                 URL: https://issues.apache.org/activemq/browse/SM-1232
>             Project: ServiceMix
>          Issue Type: Bug
>            Reporter: Freeman Fang
>            Assignee: Freeman Fang
>             Fix For: 3.2.2, 3.3
>
>         Attachments: CxfBcProvider.java, JbiOutInterceptor.java
>
>
> Hi,
> I'm using the CXF BC as output component, but I'm not able to send out
> MTOM requests.
> My SA is composed of 2 binding components, both CXF: with the input I
> dont have problems and I receive an MTOM request.
> With the output BC I have the problem that in output the message sent is
> SOAP, not MTOM, and the attachment is missing.
> I saw that there are a lot of Interceptors, I used the following
> (directly from code, actually) :
>        outList.add(new MtomCheckInterceptor(true));
>        outList.add(new AttachmentOutInterceptor());
>        outList.add(new JbiOutWsdl1Interceptor());
>        outList.add(new SoapPreProtocolOutInterceptor());
>        outList.add(new SoapOutInterceptor(getBus()));
> I changed also my WSDL adding the attribute xmime:expectedContentTypes
> on the binary documents, as stated on the CXF documentation.
> Any suggestion ?
> Thanks

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


[jira] Updated: (SM-1232) Mtom not working correctly with cxf-bc provider

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SM-1232?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Guillaume Nodet updated SM-1232:
--------------------------------

    Fix Version/s: servicemix-cxf-bc-2008.01

> Mtom not working correctly with cxf-bc provider
> -----------------------------------------------
>
>                 Key: SM-1232
>                 URL: https://issues.apache.org/activemq/browse/SM-1232
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: servicemix-cxf-bc
>            Reporter: Freeman Fang
>            Assignee: Freeman Fang
>             Fix For: 3.2.2, 3.3, servicemix-cxf-bc-2008.01
>
>         Attachments: CxfBcProvider.java, JbiOutInterceptor.java
>
>
> Hi,
> I'm using the CXF BC as output component, but I'm not able to send out
> MTOM requests.
> My SA is composed of 2 binding components, both CXF: with the input I
> dont have problems and I receive an MTOM request.
> With the output BC I have the problem that in output the message sent is
> SOAP, not MTOM, and the attachment is missing.
> I saw that there are a lot of Interceptors, I used the following
> (directly from code, actually) :
>        outList.add(new MtomCheckInterceptor(true));
>        outList.add(new AttachmentOutInterceptor());
>        outList.add(new JbiOutWsdl1Interceptor());
>        outList.add(new SoapPreProtocolOutInterceptor());
>        outList.add(new SoapOutInterceptor(getBus()));
> I changed also my WSDL adding the attribute xmime:expectedContentTypes
> on the binary documents, as stated on the CXF documentation.
> Any suggestion ?
> Thanks

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


[jira] Commented: (SM-1232) Mtom not working correctly with cxf-bc provider

Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SM-1232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=41324#action_41324 ] 

Freeman Fang commented on SM-1232:
----------------------------------

commit fix 
http://svn.apache.org/viewvc?rev=628633&view=rev for 3.3 branch




> Mtom not working correctly with cxf-bc provider
> -----------------------------------------------
>
>                 Key: SM-1232
>                 URL: https://issues.apache.org/activemq/browse/SM-1232
>             Project: ServiceMix
>          Issue Type: Bug
>            Reporter: Freeman Fang
>            Assignee: Freeman Fang
>             Fix For: 3.2.2, 3.3
>
>
> Hi,
> I'm using the CXF BC as output component, but I'm not able to send out
> MTOM requests.
> My SA is composed of 2 binding components, both CXF: with the input I
> dont have problems and I receive an MTOM request.
> With the output BC I have the problem that in output the message sent is
> SOAP, not MTOM, and the attachment is missing.
> I saw that there are a lot of Interceptors, I used the following
> (directly from code, actually) :
>        outList.add(new MtomCheckInterceptor(true));
>        outList.add(new AttachmentOutInterceptor());
>        outList.add(new JbiOutWsdl1Interceptor());
>        outList.add(new SoapPreProtocolOutInterceptor());
>        outList.add(new SoapOutInterceptor(getBus()));
> I changed also my WSDL adding the attribute xmime:expectedContentTypes
> on the binary documents, as stated on the CXF documentation.
> Any suggestion ?
> Thanks

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


[jira] Commented: (SM-1232) Mtom not working correctly with cxf-bc provider

Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SM-1232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=41339#action_41339 ] 

Freeman Fang commented on SM-1232:
----------------------------------

thanks for your comment.

I agree with 1 and 2
but about 3 you mentioned, cxf bc should detect the soap version from the wsdl, so we needn't a property to specify it, nor hard code it.

btw, normally we use "svn diff . > sm-1232.patch" to genrate the patch, which is easy for us to see the modification of the code and easy for apply

thanks again

> Mtom not working correctly with cxf-bc provider
> -----------------------------------------------
>
>                 Key: SM-1232
>                 URL: https://issues.apache.org/activemq/browse/SM-1232
>             Project: ServiceMix
>          Issue Type: Bug
>            Reporter: Freeman Fang
>            Assignee: Freeman Fang
>             Fix For: 3.2.2, 3.3
>
>         Attachments: CxfBcProvider.java, JbiOutInterceptor.java
>
>
> Hi,
> I'm using the CXF BC as output component, but I'm not able to send out
> MTOM requests.
> My SA is composed of 2 binding components, both CXF: with the input I
> dont have problems and I receive an MTOM request.
> With the output BC I have the problem that in output the message sent is
> SOAP, not MTOM, and the attachment is missing.
> I saw that there are a lot of Interceptors, I used the following
> (directly from code, actually) :
>        outList.add(new MtomCheckInterceptor(true));
>        outList.add(new AttachmentOutInterceptor());
>        outList.add(new JbiOutWsdl1Interceptor());
>        outList.add(new SoapPreProtocolOutInterceptor());
>        outList.add(new SoapOutInterceptor(getBus()));
> I changed also my WSDL adding the attribute xmime:expectedContentTypes
> on the binary documents, as stated on the CXF documentation.
> Any suggestion ?
> Thanks

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


[jira] Work started: (SM-1232) Mtom not working correctly with cxf-bc provider

Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SM-1232?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on SM-1232 started by Freeman Fang.

> Mtom not working correctly with cxf-bc provider
> -----------------------------------------------
>
>                 Key: SM-1232
>                 URL: https://issues.apache.org/activemq/browse/SM-1232
>             Project: ServiceMix
>          Issue Type: Bug
>            Reporter: Freeman Fang
>            Assignee: Freeman Fang
>             Fix For: 3.2.2, 3.3
>
>
> Hi,
> I'm using the CXF BC as output component, but I'm not able to send out
> MTOM requests.
> My SA is composed of 2 binding components, both CXF: with the input I
> dont have problems and I receive an MTOM request.
> With the output BC I have the problem that in output the message sent is
> SOAP, not MTOM, and the attachment is missing.
> I saw that there are a lot of Interceptors, I used the following
> (directly from code, actually) :
>        outList.add(new MtomCheckInterceptor(true));
>        outList.add(new AttachmentOutInterceptor());
>        outList.add(new JbiOutWsdl1Interceptor());
>        outList.add(new SoapPreProtocolOutInterceptor());
>        outList.add(new SoapOutInterceptor(getBus()));
> I changed also my WSDL adding the attribute xmime:expectedContentTypes
> on the binary documents, as stated on the CXF documentation.
> Any suggestion ?
> Thanks

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


[jira] Commented: (SM-1232) Mtom not working correctly with cxf-bc provider

Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SM-1232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=41444#action_41444 ] 

Freeman Fang commented on SM-1232:
----------------------------------

add put attachment handle in the interceptor, and use application/soap+xml instead of application/octet-stream for the message contenttype 

http://svn.apache.org/viewvc?rev=631496&view=rev for 3.3 branch
http://svn.apache.org/viewvc?rev=631502&view=rev for 3.2.2 branch

> Mtom not working correctly with cxf-bc provider
> -----------------------------------------------
>
>                 Key: SM-1232
>                 URL: https://issues.apache.org/activemq/browse/SM-1232
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: servicemix-cxf-bc
>            Reporter: Freeman Fang
>            Assignee: Freeman Fang
>             Fix For: 3.2.2, 3.3
>
>         Attachments: CxfBcProvider.java, JbiOutInterceptor.java
>
>
> Hi,
> I'm using the CXF BC as output component, but I'm not able to send out
> MTOM requests.
> My SA is composed of 2 binding components, both CXF: with the input I
> dont have problems and I receive an MTOM request.
> With the output BC I have the problem that in output the message sent is
> SOAP, not MTOM, and the attachment is missing.
> I saw that there are a lot of Interceptors, I used the following
> (directly from code, actually) :
>        outList.add(new MtomCheckInterceptor(true));
>        outList.add(new AttachmentOutInterceptor());
>        outList.add(new JbiOutWsdl1Interceptor());
>        outList.add(new SoapPreProtocolOutInterceptor());
>        outList.add(new SoapOutInterceptor(getBus()));
> I changed also my WSDL adding the attribute xmime:expectedContentTypes
> on the binary documents, as stated on the CXF documentation.
> Any suggestion ?
> Thanks

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


[jira] Updated: (SM-1232) Mtom not working correctly with cxf-bc provider

Posted by "Gianfranco Boccalon (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SM-1232?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gianfranco Boccalon updated SM-1232:
------------------------------------

    Attachment: CxfBcProvider.java

Provider using the JbiOutInterceptor, using soap 1.2, and setting the soap+xml content type.

> Mtom not working correctly with cxf-bc provider
> -----------------------------------------------
>
>                 Key: SM-1232
>                 URL: https://issues.apache.org/activemq/browse/SM-1232
>             Project: ServiceMix
>          Issue Type: Bug
>            Reporter: Freeman Fang
>            Assignee: Freeman Fang
>             Fix For: 3.2.2, 3.3
>
>         Attachments: CxfBcProvider.java, JbiOutInterceptor.java
>
>
> Hi,
> I'm using the CXF BC as output component, but I'm not able to send out
> MTOM requests.
> My SA is composed of 2 binding components, both CXF: with the input I
> dont have problems and I receive an MTOM request.
> With the output BC I have the problem that in output the message sent is
> SOAP, not MTOM, and the attachment is missing.
> I saw that there are a lot of Interceptors, I used the following
> (directly from code, actually) :
>        outList.add(new MtomCheckInterceptor(true));
>        outList.add(new AttachmentOutInterceptor());
>        outList.add(new JbiOutWsdl1Interceptor());
>        outList.add(new SoapPreProtocolOutInterceptor());
>        outList.add(new SoapOutInterceptor(getBus()));
> I changed also my WSDL adding the attribute xmime:expectedContentTypes
> on the binary documents, as stated on the CXF documentation.
> Any suggestion ?
> Thanks

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


[jira] Updated: (SM-1232) Mtom not working correctly with cxf-bc provider

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SM-1232?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Guillaume Nodet updated SM-1232:
--------------------------------

    Component/s: servicemix-cxf-bc

> Mtom not working correctly with cxf-bc provider
> -----------------------------------------------
>
>                 Key: SM-1232
>                 URL: https://issues.apache.org/activemq/browse/SM-1232
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: servicemix-cxf-bc
>            Reporter: Freeman Fang
>            Assignee: Freeman Fang
>             Fix For: 3.2.2, 3.3
>
>         Attachments: CxfBcProvider.java, JbiOutInterceptor.java
>
>
> Hi,
> I'm using the CXF BC as output component, but I'm not able to send out
> MTOM requests.
> My SA is composed of 2 binding components, both CXF: with the input I
> dont have problems and I receive an MTOM request.
> With the output BC I have the problem that in output the message sent is
> SOAP, not MTOM, and the attachment is missing.
> I saw that there are a lot of Interceptors, I used the following
> (directly from code, actually) :
>        outList.add(new MtomCheckInterceptor(true));
>        outList.add(new AttachmentOutInterceptor());
>        outList.add(new JbiOutWsdl1Interceptor());
>        outList.add(new SoapPreProtocolOutInterceptor());
>        outList.add(new SoapOutInterceptor(getBus()));
> I changed also my WSDL adding the attribute xmime:expectedContentTypes
> on the binary documents, as stated on the CXF documentation.
> Any suggestion ?
> Thanks

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


[jira] Updated: (SM-1232) Mtom not working correctly with cxf-bc provider

Posted by "Gianfranco Boccalon (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SM-1232?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gianfranco Boccalon updated SM-1232:
------------------------------------

    Attachment: JbiOutInterceptor.java

> Mtom not working correctly with cxf-bc provider
> -----------------------------------------------
>
>                 Key: SM-1232
>                 URL: https://issues.apache.org/activemq/browse/SM-1232
>             Project: ServiceMix
>          Issue Type: Bug
>            Reporter: Freeman Fang
>            Assignee: Freeman Fang
>             Fix For: 3.2.2, 3.3
>
>         Attachments: CxfBcProvider.java, JbiOutInterceptor.java
>
>
> Hi,
> I'm using the CXF BC as output component, but I'm not able to send out
> MTOM requests.
> My SA is composed of 2 binding components, both CXF: with the input I
> dont have problems and I receive an MTOM request.
> With the output BC I have the problem that in output the message sent is
> SOAP, not MTOM, and the attachment is missing.
> I saw that there are a lot of Interceptors, I used the following
> (directly from code, actually) :
>        outList.add(new MtomCheckInterceptor(true));
>        outList.add(new AttachmentOutInterceptor());
>        outList.add(new JbiOutWsdl1Interceptor());
>        outList.add(new SoapPreProtocolOutInterceptor());
>        outList.add(new SoapOutInterceptor(getBus()));
> I changed also my WSDL adding the attribute xmime:expectedContentTypes
> on the binary documents, as stated on the CXF documentation.
> Any suggestion ?
> Thanks

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


[jira] Commented: (SM-1232) Mtom not working correctly with cxf-bc provider

Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SM-1232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=41325#action_41325 ] 

Freeman Fang commented on SM-1232:
----------------------------------

commit fix

http://svn.apache.org/viewvc?rev=628637&view=rev for 3.2.2 branch

> Mtom not working correctly with cxf-bc provider
> -----------------------------------------------
>
>                 Key: SM-1232
>                 URL: https://issues.apache.org/activemq/browse/SM-1232
>             Project: ServiceMix
>          Issue Type: Bug
>            Reporter: Freeman Fang
>            Assignee: Freeman Fang
>             Fix For: 3.2.2, 3.3
>
>
> Hi,
> I'm using the CXF BC as output component, but I'm not able to send out
> MTOM requests.
> My SA is composed of 2 binding components, both CXF: with the input I
> dont have problems and I receive an MTOM request.
> With the output BC I have the problem that in output the message sent is
> SOAP, not MTOM, and the attachment is missing.
> I saw that there are a lot of Interceptors, I used the following
> (directly from code, actually) :
>        outList.add(new MtomCheckInterceptor(true));
>        outList.add(new AttachmentOutInterceptor());
>        outList.add(new JbiOutWsdl1Interceptor());
>        outList.add(new SoapPreProtocolOutInterceptor());
>        outList.add(new SoapOutInterceptor(getBus()));
> I changed also my WSDL adding the attribute xmime:expectedContentTypes
> on the binary documents, as stated on the CXF documentation.
> Any suggestion ?
> Thanks

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


[jira] Resolved: (SM-1232) Mtom not working correctly with cxf-bc provider

Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SM-1232?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Freeman Fang resolved SM-1232.
------------------------------

    Resolution: Fixed

> Mtom not working correctly with cxf-bc provider
> -----------------------------------------------
>
>                 Key: SM-1232
>                 URL: https://issues.apache.org/activemq/browse/SM-1232
>             Project: ServiceMix
>          Issue Type: Bug
>            Reporter: Freeman Fang
>            Assignee: Freeman Fang
>             Fix For: 3.2.2, 3.3
>
>
> Hi,
> I'm using the CXF BC as output component, but I'm not able to send out
> MTOM requests.
> My SA is composed of 2 binding components, both CXF: with the input I
> dont have problems and I receive an MTOM request.
> With the output BC I have the problem that in output the message sent is
> SOAP, not MTOM, and the attachment is missing.
> I saw that there are a lot of Interceptors, I used the following
> (directly from code, actually) :
>        outList.add(new MtomCheckInterceptor(true));
>        outList.add(new AttachmentOutInterceptor());
>        outList.add(new JbiOutWsdl1Interceptor());
>        outList.add(new SoapPreProtocolOutInterceptor());
>        outList.add(new SoapOutInterceptor(getBus()));
> I changed also my WSDL adding the attribute xmime:expectedContentTypes
> on the binary documents, as stated on the CXF documentation.
> Any suggestion ?
> Thanks

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


[jira] Commented: (SM-1232) Mtom not working correctly with cxf-bc provider

Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SM-1232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=41341#action_41341 ] 

Freeman Fang commented on SM-1232:
----------------------------------

I agree that operations in the porttype (or we call interface) could support multiple bindings.

But for a certain port (or we call endpint in servicemix)  of a certain service in the wsdl, it must be bind to a certain binding.

So by means of specify different servcie name and endpoint name in the servicemix endpoint configuration, you can chose different binidngs.

Best Regards

Freeman

> Mtom not working correctly with cxf-bc provider
> -----------------------------------------------
>
>                 Key: SM-1232
>                 URL: https://issues.apache.org/activemq/browse/SM-1232
>             Project: ServiceMix
>          Issue Type: Bug
>            Reporter: Freeman Fang
>            Assignee: Freeman Fang
>             Fix For: 3.2.2, 3.3
>
>         Attachments: CxfBcProvider.java, JbiOutInterceptor.java
>
>
> Hi,
> I'm using the CXF BC as output component, but I'm not able to send out
> MTOM requests.
> My SA is composed of 2 binding components, both CXF: with the input I
> dont have problems and I receive an MTOM request.
> With the output BC I have the problem that in output the message sent is
> SOAP, not MTOM, and the attachment is missing.
> I saw that there are a lot of Interceptors, I used the following
> (directly from code, actually) :
>        outList.add(new MtomCheckInterceptor(true));
>        outList.add(new AttachmentOutInterceptor());
>        outList.add(new JbiOutWsdl1Interceptor());
>        outList.add(new SoapPreProtocolOutInterceptor());
>        outList.add(new SoapOutInterceptor(getBus()));
> I changed also my WSDL adding the attribute xmime:expectedContentTypes
> on the binary documents, as stated on the CXF documentation.
> Any suggestion ?
> Thanks

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