You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Daniel Kulp (JIRA)" <ji...@apache.org> on 2009/09/11 20:04:57 UTC

[jira] Resolved: (CXF-2405) CXF Client: Outbound SOAP request - Missing

     [ https://issues.apache.org/jira/browse/CXF-2405?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Kulp resolved CXF-2405.
------------------------------

       Resolution: Invalid
    Fix Version/s: Invalid
         Assignee: Daniel Kulp


The soap message is correct per that wsdl.   

The input is defined as:
<wsdl:input message="impl:getFirstNameRequest" name="getFirstNameRequest"/>


with the message being:
   <wsdl:message name="getFirstNameRequest">

   </wsdl:message>

There are no parts defined at all so for doc/lit, nothing would appear in the body.    If you want this to work, you would need to either:
1) change from style="document"  to style="rpc"  (but that would require the return messages to change to using "type"instead of "element"

2) Define parts and schema elements for the input.


> CXF Client: Outbound SOAP request - Missing <soap:Body>
> -------------------------------------------------------
>
>                 Key: CXF-2405
>                 URL: https://issues.apache.org/jira/browse/CXF-2405
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.2.2, 2.2.3
>         Environment: Tomcat 6.0.18, CXF2.2.3
>            Reporter: Vikas Narang
>            Assignee: Daniel Kulp
>             Fix For: Invalid
>
>         Attachments: WSGetName.java, WSGetName.wsdl, WSGetName_WSGetName_Client.java
>
>
> Hi,
> I am facing an issue where the outbound SOAP request from the CXF client seems to be missing the SOAP body.
> I enabled logging and below is how the log looks that show the Outbound/Inbound SOAP request/response.
> The deployed web service has 2 webmethods "getFirstName()" and "getLastName()" and calls to both of these returns the result from the getFirstName() method, see below log:
> ***********************************************************************************************************
> Aug 27, 2009 7:23:15 PM org.apache.cxf.bus.spring.BusApplicationContext getConfigResources
> INFO: No cxf.xml configuration file detected, relying on defaults.
> Aug 27, 2009 7:23:17 PM org.apache.cxf.service.factory.ReflectionServiceFactoryBean buildServiceFromWSDL
> INFO: Creating Service {http://net.ibs.WSGetName}WSGetNameService from WSDL: file:/C:/WSGetName.wsdl
> Invoking getLastName...
> Aug 27, 2009 7:23:17 PM org.apache.cxf.interceptor.LoggingOutInterceptor$LoggingCallback onClose
> INFO: Outbound Message
> ---------------------------
> ID: 1
> Address: http://localhost:16899/axis/services/WSGetName
> Encoding: UTF-8
> Content-Type: text/xml
> Headers: {SOAPAction=[""], Accept=[*/*]}
> Payload: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body /></soap:Envelope>
> --------------------------------------
> Aug 27, 2009 7:23:17 PM org.apache.cxf.interceptor.LoggingInInterceptor logging
> INFO: Inbound Message
> ----------------------------
> ID: 1
> Encoding: UTF-8
> Content-Type: text/xml;charset=utf-8
> Headers: {content-type=[text/xml;charset=utf-8], Date=[Thu, 27 Aug 2009 13:53:17 GMT], transfer-encoding=[chunked], Server=[Apache-Coyote/1.1]}
> Payload: <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><getFirstNameReturn xmlns="http://net.ibs.WSGetName">Vikas</getFirstNameReturn></soapenv:Body></soapenv:Envelope>
> --------------------------------------
> getLastName.result=Vikas
> Invoking getFirstName...
> Aug 27, 2009 7:23:17 PM org.apache.cxf.interceptor.LoggingOutInterceptor$LoggingCallback onClose
> INFO: Outbound Message
> ---------------------------
> ID: 2
> Address: http://localhost:16899/axis/services/WSGetName
> Encoding: UTF-8
> Content-Type: text/xml
> Headers: {SOAPAction=[""], Accept=[*/*]}
> Payload: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body /></soap:Envelope>
> --------------------------------------
> Aug 27, 2009 7:23:17 PM org.apache.cxf.interceptor.LoggingInInterceptor logging
> INFO: Inbound Message
> ----------------------------
> ID: 2
> Encoding: UTF-8
> Content-Type: text/xml;charset=utf-8
> Headers: {content-type=[text/xml;charset=utf-8], Date=[Thu, 27 Aug 2009 13:53:17 GMT], transfer-encoding=[chunked], Server=[Apache-Coyote/1.1]}
> Payload: <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><getFirstNameReturn xmlns="http://net.ibs.WSGetName">Vikas</getFirstNameReturn></soapenv:Body></soapenv:Envelope>
> --------------------------------------
> getFirstName.result=Vikas
> ************************************************************************************************************
> The request is missing the soap:Body information:
> Payload: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body /></soap:Envelope>
> I am attaching the WDSL , CXF client and also the deployed web service class for reference.
> Any help on this is greatly appreciated.
> Thanks!

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