You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Sergey Peryshkin (JIRA)" <ji...@apache.org> on 2015/06/22 12:45:00 UTC

[jira] [Commented] (CXF-6471) Corrupted Soap:envelope in client call

    [ https://issues.apache.org/jira/browse/CXF-6471?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14595746#comment-14595746 ] 

Sergey Peryshkin commented on CXF-6471:
---------------------------------------

The WSDL from Remedy ARs:
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="urn:IT_Helpdesk" xmlns:s0="urn:IT_Helpdesk" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 <wsdl:types>
  <xsd:schema elementFormDefault="qualified" targetNamespace="urn:IT_Helpdesk">
   <xsd:element name="Create" type="s0:InputMapping1"/>
   <xsd:complexType name="InputMapping1">
    <xsd:sequence>
     <xsd:element name="Technical_Group_ID" type="xsd:string"/>
     <xsd:element name="Technical_Specialist_ID" type="xsd:string"/>
     <xsd:element name="Curator_ID" type="xsd:string"/>
     <xsd:element name="Request_Kind" type="xsd:string"/>
     <xsd:element name="Short_Description" type="xsd:string"/>
     <xsd:element name="MatrixSelect" type="xsd:string"/>
     <xsd:element name="Priority" type="xsd:string"/>
     <xsd:element name="TT_Status" type="xsd:string"/>
     <xsd:element name="Request_Type" type="xsd:string"/>
     <xsd:element name="Requestor" type="xsd:string"/>
     <xsd:element name="Contact_Phone" type="xsd:string"/>
     <xsd:element name="Technical_Group" type="xsd:string"/>
     <xsd:element name="Technical_Specoalist" type="xsd:string"/>
     <xsd:element name="Curator" type="xsd:string"/>
     <xsd:element name="Short_Note" type="xsd:string"/>
     <xsd:element minOccurs="0" name="Note_Preview" type="xsd:string"/>
     <xsd:element minOccurs="0" name="Email_Autor_value" type="xsd:string"/>
     <xsd:element minOccurs="0" name="Email_Autor" nillable="true" type="s0:Email_AutorType"/>
     <xsd:element minOccurs="0" name="Email_Curator_value" type="xsd:string"/>
     <xsd:element minOccurs="0" name="Email_Curator" nillable="true" type="s0:Email_AutorType"/>
     <xsd:element minOccurs="0" name="Email_Tech_value" type="xsd:string"/>
     <xsd:element minOccurs="0" name="Email_Tech" nillable="true" type="s0:Email_AutorType"/>
     <xsd:element minOccurs="0" name="Email_Auto_ON" nillable="true" type="s0:Email_AutorType"/>
     <xsd:element minOccurs="0" name="vip" nillable="true" type="s0:Email_AutorType"/>
    </xsd:sequence>
   </xsd:complexType>
   <xsd:simpleType name="Email_AutorType">
    <xsd:restriction base="xsd:string">
     <xsd:enumeration value=" "/>
    </xsd:restriction>
   </xsd:simpleType>
   <xsd:element name="CreateResponse" type="s0:OutputMapping1"/>
   <xsd:complexType name="OutputMapping1">
    <xsd:sequence>
     <xsd:element name="Request_ID" type="xsd:string"/>
    </xsd:sequence>
   </xsd:complexType>
   <xsd:element name="AuthenticationInfo" type="s0:AuthenticationInfo"/>
   <xsd:complexType name="AuthenticationInfo">
    <xsd:sequence>
     <xsd:element name="userName" type="xsd:string"/>
     <xsd:element name="password" type="xsd:string"/>
     <xsd:element minOccurs="0" name="authentication" type="xsd:string"/>
     <xsd:element minOccurs="0" name="locale" type="xsd:string"/>
     <xsd:element minOccurs="0" name="timeZone" type="xsd:string"/>
    </xsd:sequence>
   </xsd:complexType>
  </xsd:schema>
 </wsdl:types>

   <wsdl:message name="CreateSoapIn">

      <wsdl:part element="s0:Create" name="parameters">

      </wsdl:part>

   </wsdl:message>

   <wsdl:message name="CreateSoapOut">

      <wsdl:part element="s0:CreateResponse" name="parameters">

      </wsdl:part>

   </wsdl:message>

   <wsdl:message name="ARAuthenticate">

      <wsdl:part element="s0:AuthenticationInfo" name="parameters">

      </wsdl:part>

   </wsdl:message>

   <wsdl:portType name="IT_HelpdeskPortTypePortType">

      <wsdl:operation name="Create">

         <wsdl:input message="s0:CreateSoapIn">

       </wsdl:input>

         <wsdl:output message="s0:CreateSoapOut">

       </wsdl:output>

      </wsdl:operation>

   </wsdl:portType>

   <wsdl:binding name="IT_HelpdeskPortTypeSoapBinding" type="s0:IT_HelpdeskPortTypePortType">

      <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>

      <wsdl:operation name="Create">

         <soap:operation soapAction="urn:IT_Helpdesk/Create" style="document"/>

         <wsdl:input>

            <soap:header message="s0:ARAuthenticate" part="parameters" use="literal">

            </soap:header>

            <soap:body use="literal"/>

         </wsdl:input>

         <wsdl:output>

            <soap:body use="literal"/>

         </wsdl:output>

      </wsdl:operation>

   </wsdl:binding>

   <wsdl:service name="IT_HelpdeskService">

      <wsdl:port binding="s0:IT_HelpdeskPortTypeSoapBinding" name="IT_HelpdeskPortTypeSoap">

         <soap:address location="http://ars:8080/arsys/services/ARService?server=ars&amp;webService=IT_Helpdesk"/>

      </wsdl:port>

   </wsdl:service>

</wsdl:definitions>



> Corrupted Soap:envelope in client call
> --------------------------------------
>
>                 Key: CXF-6471
>                 URL: https://issues.apache.org/jira/browse/CXF-6471
>             Project: CXF
>          Issue Type: Bug
>          Components: Soap Binding
>    Affects Versions: 2.7.8, 2.7.15
>         Environment: Talend ESB 5.5.2; Talend ESB 5.6.2.
>            Reporter: Sergey Peryshkin
>              Labels: client, wsdl, wsdl2java
>
> I'm using a generated by CXF's wsdl2java maven plugin Remedy AR web service client.
> After updating ESB from 5.1.1 to 5.5.2 and then to 5.6.2 Soap call from Talend ESB became corrupted.
> This is the call from 5.1.x (w. CXF 2.6.15 - 2.7.7):
> Encoding: UTF-8
> Content-Type: text/xml
> Headers:{Accept=[*/*], SOAPAction=["urn:IT_Helpdesk/Create"]}
> Payload:
> <soap:Envelope xmlns:soap=""><soap:Header><AuthenticationInfo xmlns="urn:IT_Helpdesk"><userName>user</userName><password>xxxx</password></AuthenticationInfo></soap:Header><soap:Body><Create xmlns="urn:IT_Helpdesk"><Technical_Group_ID>000000000000078</Technical_Group_ID><Technical_Specialist_ID>000000000002162</Technical_Specialist_ID><Curator_ID>000000000002162</Curator_ID><Request_Kind>Инцидент</Request_Kind><Short_Description>test</Short_Description><MatrixSelect>000000000000512</MatrixSelect><Priority>04</Priority><TT_Status>New</TT_Status><Request_Type>WEB</Request_Type><Requestor>Peryshkin Sergey</Requestor><Contact_Phone>4432</Contact_Phone><Technical_Group>IT Helpdesk</Technical_Group><Technical_Specoalist>support</Technical_Specoalist><Curator>support</Curator><Short_Note>test</Short_Note><Note_Preview>test</Note_Preview><Email_Autor_value>sergey.peryshkin@orange.com</Email_Autor_value><Email_Autor>0</Email_Autor><Email_Curator_value>rus.support@orange.com</Email_Curator_value><Email_Curator>0</Email_Curator><Email_Tech_value>rus.support@orange.com</Email_Tech_value><Email_Tech>0</Email_Tech><Email_Auto_ON>0</Email_Auto_ON><vip></vip></Create></soap:Body></soap:Envelope>
> Here is what I get under 5.5.2/5.6.2 (CXF 2.7.11, 2.7.15, ...):
> Encoding: UTF-8
> Http-Method: POST
> Content-Type: text/xml
> Headers: {Accept=[*/*], SOAPAction=["urn:IT_Helpdesk/Create"]}
> Payload:
> <soap:Envelope xmlns:soap=""><soap:Body><Create xmlns="urn:IT_Helpdesk" xmlns:xsi="" xsi:type="AuthenticationInfo"><userName>user</userName><password>xxxx</password></Create></soap:Body></soap:Envelope>
> Soap:header becomes mixed with Soap:body somehow, with "AuthenticationInfo" header being pasted into operation part...
> I'm tested in in a clean command line call, without any dependencies except CXF, and discovered that anything's fine with 2.6.0 - 2.7.7.
> And payload is corrupted with 2.7.8 - 2.7.16.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)