You probably need to turn off chunking.   Older versions of MS stuff doesn't 
properly support it.

See:
http://cwiki.apache.org/CXF20DOC/client-http-transport-including-ssl-support.html
and look for AllowChunking settings.

Dan


On Monday 17 November 2008 2:49:42 pm Warner Onstine wrote:
> Ok, so we are trying to connect to a Microsoft Web Service called
> Dynamics GP. It currently is sitting behind NTLM authentication, which
> I think I have working now using JCIFS. I am now getting this error
> message when attempting to send a message to the web service.
>
> INFO: Outbound Message
> ---------------------------
> Encoding: UTF-8
> Headers: {Connection=[Keep-Alive],
> SOAPAction=["http://schemas.microsoft.com/dynamics/gp/2006/01/CreateSalesIn
>voice "], Accept=[*]}
> Messages:
> Payload: <soap:Envelope
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/
> "><soap:Body><ns2:CreateSalesInvoice
> xmlns="http://schemas.microsoft.com/dynamics/2006/01 "
> xmlns:ns2="http://schemas.microsoft.com/dynamics/gp/2006/01";
> xmlns:ns3="http://schemas.microsoft.com/dynamics/security/
> 2006/01"><ns2:salesInvoice><ns2:Type
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance "
> xsi:nil="true"/><ns2:Date
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance "
> xsi:nil="true"/><ns2:MasterNumber
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance "
> xsi:nil="true"/><ns2:ExchangeRate
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance "
> xsi:nil="true"/><ns2:ExchangeDate
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance "
> xsi:nil="true"/><ns2:RequestedShipDate
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance "
> xsi:nil="true"/><ns2:FreightTaxBasis
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance "
> xsi:nil="true"/><ns2:MiscellaneousTaxBasis
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance "
> xsi:nil="true"/><ns2:TransactionState
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance "
> xsi:nil="true"/><ns2:CreatedBy>GP Dynamics Web Service Test</
> ns2:CreatedBy><ns2:CreatedDate
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance "
> xsi:nil="true"/><ns2:ModifiedDate
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance "
> xsi:nil="true"/><ns2:CommissionBasedOn
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance "
> xsi:nil="true"/><ns2:ActualShipDate
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance "
> xsi:nil="true"/><ns2:FulfillDate
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance "
> xsi:nil="true"/><ns2:QuoteDate
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance "
> xsi:nil="true"/><ns2:IsIntrastatDocument
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance "
> xsi:nil="true"/><ns2:IsVoided
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance "
> xsi:nil="true"/><ns2:ShipCompleteOnly
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance "
> xsi:nil="true"/><ns2:IntegrationSource
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance "
> xsi:nil="true"/><ns2:InvoiceDate
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance "
> xsi:nil="true"/><ns2:BackorderDate
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance "
> xsi:nil="true"/><ns2:ReturnDate
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance "
> xsi:nil="true"/><ns2:GeneralLedgerPostingDate
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance "
> xsi:nil="true"/><ns2:PostedDate
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance "
> xsi:nil="true"/><ns2:IsDirectDebit
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance "
> xsi:nil="true"/><ns2:WorkflowPriority
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance "
> xsi:nil="true"/></ns2:salesInvoice><Context
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance "
> xsi:nil="true"/></ns2:CreateSalesInvoice></soap:Body></soap:Envelope>
> --------------------------------------
> Nov 17, 2008 11:34:25 AM
> org.apache.cxf.interceptor.LoggingInInterceptor logging
> INFO: Inbound Message
> ----------------------------
> Encoding: UTF-8
> Headers: {Content-Length=[24], connection=[close], Date=[Mon, 17 Nov
> 2008 18:34:24 GMT], content-type=[text/html]}
> Messages:
> Message:
>
> Payload: <h1>Length Required</h1>
>
> So, for some reason I'm not getting an XML response back, but a
> partial HTML response. Is there some config option in CXF that I'm
> missing?
>
> Thanks in advance!
>
> -warner



-- 
Daniel Kulp
[EMAIL PROTECTED]
http://dankulp.com/blog

Reply via email to