Yes! That's the problem! I made it via code and it works.
Thank you very much,
Jan

Daniel Kulp <[EMAIL PROTECTED]> napsal dne 16.04.2008 19:11:15:

> 
> Those extra character are due to the "Transfer-Encoding: chunked".  It 
> looks like the cobol server doesn't support the chunked encoding.    You 

> can look at the docs for the HTTPConduit at:
> http://cwiki.apache.org/CXF20DOC/client-http-transport.html
> to turn off the chunking.  Via code, it would look like:
> 
>   // Okay, are you sick of configuration files ?
>   // This will show you how to configure the http conduit dynamically
>   Client client = ClientProxy.getClient(poltim);
>   HTTPConduit http = (HTTPConduit) client.getConduit();
>   HTTPClientPolicy httpClientPolicy = new HTTPClientPolicy();
>   httpClientPolicy.setAllowChunking(false);
>   http.setClient(httpClientPolicy);
> 
> 
> Dan 
> 
> 
> On Wednesday 16 April 2008, Jan Pechanec wrote:
> > I have problem with SOAP request message generated with Apache CXF
> > 2.0.4. I generated java client from WSDL (wsdl2java), and tried to
> > call web service running in the cobol MicroFocus Enteprise Server -
> > the response was following:
> > ...
> > <faultcode>Client</faultcode>
> > <faultstring>Error in client request message</faultstring>
> > ...
> >
> > I suppose it means that SOAP request message is bad for the server
> > side of web service.
> > I tried following:
> > Apache CFX client -> cobol server : Error in client request message
> > soapUI client generated from WSDL -> cobol server : OK
> > Apache CFX client -> soapUI Mock service generated from WSDL : OK
> >
> > In the tcpmon I can see that there are strange chars ("ed", "0")
> > around SOAP message.
> > I suppose this is the problem, but why there are these chars?
> > See below.
> >
> > ------------------------------------
> > POST / HTTP/1.1
> > Content-Type: text/xml; charset=UTF-8
> > SOAPAction: ""
> > Accept: *
> > Cache-Control: no-cache
> > Pragma: no-cache
> > User-Agent: Java/1.6.0_04
> > Host: localhost:8081
> > Connection: keep-alive
> > Transfer-Encoding: chunked
> >
> > ed
> > <soap:Envelope
> > xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";><soap:Body><Rea
> >d
> > xmlns="http://tempuri.org/wmapserv";><BookStockno>1111</BookStockno><Bo
> >okTitle></BookTitle><BookAuthor></BookAuthor></Read></soap:Body></soap:
> >Envelope> 0
> > ----------------------------------
> >
> > Thank you for any help, any hint,
> > Jan
> 
> 
> 
> -- 
> J. Daniel Kulp
> Principal Engineer, IONA
> [EMAIL PROTECTED]
> http://www.dankulp.com/blog

Reply via email to