You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Jara Cesnek (JIRA)" <ji...@apache.org> on 2008/01/03 19:34:34 UTC

[jira] Created: (CXF-1352) SOAP with Attachments is not working or cannot get to work !?

SOAP with Attachments is not working or cannot get to work !?
-------------------------------------------------------------

                 Key: CXF-1352
                 URL: https://issues.apache.org/jira/browse/CXF-1352
             Project: CXF
          Issue Type: Bug
          Components: Aegis Databinding, Configuration, Documentation, Samples
    Affects Versions: 2.0.3
            Reporter: Jara Cesnek


SOAP with Attachments generate always xsd:base64Binary into WSDL.
Even after hours trying I cannot get expected stuff in WSDL like this :
        <mime:multipartRelated>
          <mime:part>
            <soap:body parts="" namespace="http://attachment.tip/" use="literal"/>
          </mime:part>
          <mime:part>
            <mime:content part="octet" type="application/octet-stream"/>
          </mime:part>
        </mime:multipartRelated>
 

1) No documentation on CXF web site at all (so may be I am totaly wrong about switching on SwA in CXF ?!)

2) In apache-cxf-2.0.3-incubator-src.zip is one test case ClientServerSwaTest. Cant compile because missing SwAServiceInterface.java and other.

Anyway I follow test case and publish this method :


    @WebMethod
    public void testDataHandler(DataHandler arg1) {
    }


In wsdl arg1 appears as xsd:base64Binary (same result as arg1 type was byte[]).

Clients sends data in base64 format and arg1 in this method is always NULL ! This seems to me as bug.

1) Should I explicitly switch on SwA support ?
2) Should use @SOAPBinding(style=SOAPBinding.Style.RPC)
3) Should @XmlMimeType("application/octet-stream")
4) Support this AegisDataBinding ?



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


[jira] Commented: (CXF-1352) SOAP with Attachments is not working or cannot get to work !?

Posted by "Jara Cesnek (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-1352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12555847#action_12555847 ] 

Jara Cesnek commented on CXF-1352:
----------------------------------

We migrate from Xfire to CXF expected SwA will work. SwA was the main reason to migrate.

We have java server and Delphi clients. This is the WS stack supporting SwA and do not support MTOM you looking for.




> SOAP with Attachments is not working or cannot get to work !?
> -------------------------------------------------------------
>
>                 Key: CXF-1352
>                 URL: https://issues.apache.org/jira/browse/CXF-1352
>             Project: CXF
>          Issue Type: Bug
>          Components: Aegis Databinding, Configuration, Documentation, Samples
>    Affects Versions: 2.0.3
>            Reporter: Jara Cesnek
>
> SOAP with Attachments generate always xsd:base64Binary into WSDL.
> Even after hours trying I cannot get expected stuff in WSDL like this :
>         <mime:multipartRelated>
>           <mime:part>
>             <soap:body parts="" namespace="http://attachment.tip/" use="literal"/>
>           </mime:part>
>           <mime:part>
>             <mime:content part="octet" type="application/octet-stream"/>
>           </mime:part>
>         </mime:multipartRelated>
>  
> 1) No documentation on CXF web site at all (so may be I am totaly wrong about switching on SwA in CXF ?!)
> 2) In apache-cxf-2.0.3-incubator-src.zip is one test case ClientServerSwaTest. Cant compile because missing SwAServiceInterface.java and other.
> Anyway I follow test case and publish this method :
>     @WebMethod
>     public void testDataHandler(DataHandler arg1) {
>     }
> In wsdl arg1 appears as xsd:base64Binary (same result as arg1 type was byte[]).
> Clients sends data in base64 format and arg1 in this method is always NULL ! This seems to me as bug.
> 1) Should I explicitly switch on SwA support ?
> 2) Should use @SOAPBinding(style=SOAPBinding.Style.RPC)
> 3) Should @XmlMimeType("application/octet-stream")
> 4) Support this AegisDataBinding ?

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


[jira] Commented: (CXF-1352) SOAP with Attachments is not working or cannot get to work !?

Posted by "Glen Mazza (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-1352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12555735#action_12555735 ] 

Glen Mazza commented on CXF-1352:
---------------------------------

Are you sure you cannot work with the more modern MTOM[1]?  IIRC Microsoft clients/services do not even support SwA, and we are getting ever-decreasing demand for it.

[1] http://www.jroller.com/gmazza/date/20071102


> SOAP with Attachments is not working or cannot get to work !?
> -------------------------------------------------------------
>
>                 Key: CXF-1352
>                 URL: https://issues.apache.org/jira/browse/CXF-1352
>             Project: CXF
>          Issue Type: Bug
>          Components: Aegis Databinding, Configuration, Documentation, Samples
>    Affects Versions: 2.0.3
>            Reporter: Jara Cesnek
>
> SOAP with Attachments generate always xsd:base64Binary into WSDL.
> Even after hours trying I cannot get expected stuff in WSDL like this :
>         <mime:multipartRelated>
>           <mime:part>
>             <soap:body parts="" namespace="http://attachment.tip/" use="literal"/>
>           </mime:part>
>           <mime:part>
>             <mime:content part="octet" type="application/octet-stream"/>
>           </mime:part>
>         </mime:multipartRelated>
>  
> 1) No documentation on CXF web site at all (so may be I am totaly wrong about switching on SwA in CXF ?!)
> 2) In apache-cxf-2.0.3-incubator-src.zip is one test case ClientServerSwaTest. Cant compile because missing SwAServiceInterface.java and other.
> Anyway I follow test case and publish this method :
>     @WebMethod
>     public void testDataHandler(DataHandler arg1) {
>     }
> In wsdl arg1 appears as xsd:base64Binary (same result as arg1 type was byte[]).
> Clients sends data in base64 format and arg1 in this method is always NULL ! This seems to me as bug.
> 1) Should I explicitly switch on SwA support ?
> 2) Should use @SOAPBinding(style=SOAPBinding.Style.RPC)
> 3) Should @XmlMimeType("application/octet-stream")
> 4) Support this AegisDataBinding ?

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


[jira] Closed: (CXF-1352) SOAP with Attachments is not working or cannot get to work !?

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

Glen Mazza closed CXF-1352.
---------------------------

    Resolution: Duplicate

Duplicate with CXF-284

> SOAP with Attachments is not working or cannot get to work !?
> -------------------------------------------------------------
>
>                 Key: CXF-1352
>                 URL: https://issues.apache.org/jira/browse/CXF-1352
>             Project: CXF
>          Issue Type: Bug
>          Components: Aegis Databinding, Configuration, Documentation, Samples
>    Affects Versions: 2.0.3
>            Reporter: Jara Cesnek
>
> SOAP with Attachments generate always xsd:base64Binary into WSDL.
> Even after hours trying I cannot get expected stuff in WSDL like this :
>         <mime:multipartRelated>
>           <mime:part>
>             <soap:body parts="" namespace="http://attachment.tip/" use="literal"/>
>           </mime:part>
>           <mime:part>
>             <mime:content part="octet" type="application/octet-stream"/>
>           </mime:part>
>         </mime:multipartRelated>
>  
> 1) No documentation on CXF web site at all (so may be I am totaly wrong about switching on SwA in CXF ?!)
> 2) In apache-cxf-2.0.3-incubator-src.zip is one test case ClientServerSwaTest. Cant compile because missing SwAServiceInterface.java and other.
> Anyway I follow test case and publish this method :
>     @WebMethod
>     public void testDataHandler(DataHandler arg1) {
>     }
> In wsdl arg1 appears as xsd:base64Binary (same result as arg1 type was byte[]).
> Clients sends data in base64 format and arg1 in this method is always NULL ! This seems to me as bug.
> 1) Should I explicitly switch on SwA support ?
> 2) Should use @SOAPBinding(style=SOAPBinding.Style.RPC)
> 3) Should @XmlMimeType("application/octet-stream")
> 4) Support this AegisDataBinding ?

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