Re: Parameters from client are null at server

2009-08-19 Thread Sergey Pulyaev INTEGO
evilh...@yandex.ru wrote: Hi I've created java webservice with .NET client with CXF. I have no problems with import of the WSDL to .NET client. But when I make some requests I see parameters in logged XML request. But when I check this parameters in the debugger there are nulls for all of them

Exception handling during unmarshalling

2009-08-19 Thread Sergey Pulyaev INTEGO
I have the following situation: Web service function receives a value object with some properties and one of the properties have a check in the setter - is value correct. But when the exception thrown about incorrect value it is catched by Accessor.handleInvocationTargetException, converted int

How to configure XMLStreamWriter AUTOMATIC_EMPTY_ELEMENTS

2009-08-19 Thread Sergey Pulyaev INTEGO
Hi all, After switching from 2.0.9 to 2.2.3 i found that StaxOutInterceptor have changes it's behaviour. I have a problem with XMLStreamWriter in 2.0.9 - if function returns empty array - it will be changed to a null - for example: which mean new ArrayList() on client will be changed

Re: Exception while marshalling

2009-08-19 Thread Sergey Pulyaev INTEGO
Now i have got the same situation again - after switching to version 2.2.3. Now StaxOutInterceptor.getXMLOutputFactory always returns NULL - so i have no way to specify this flag anymore. How can i setup XMLStreamWriter to AUTOMATIC_EMPTY_ELEMENTS = OFF ? Sergey Pulyaev wrote: I have

Re: Exception while marshalling

2008-12-17 Thread Sergey Pulyaev
gnableFrom(outputFactory.getClass())){ WstxOutputFactory of = (WstxOutputFactory)outputFactory; of.getConfig().setProperty(XMLOutputFactory2.P_AUTOMATIC_EMPTY_ELEMENTS, false); } Sergey Pulyaev wrote: > > Ok, i have switched to 2.0.9. > But now - when i use code

Re: Exception while marshalling

2008-12-16 Thread Sergey Pulyaev
Ok, i have switched to 2.0.9. But now - when i use code in line 76 - i mean CachingXmlEventWriter - i get invalid response text: previously i get response from function with result List like that: http://schemas.xmlsoap.org/soap/envelope/";> http://ws.pc2.takecharge.com/";> But now i receive

Re: Exception while marshalling

2008-12-16 Thread Sergey Pulyaev
CXF cxf-api-2.0.6 Server: Jetty 6.1.9 I use CXF 2.0.6 - where is no string if (shouldValidate(message) && !isRequestor(message)) { in AbstractOutDatabindingInterceptor. Is there any solution for CXF 2.0.6 ? dkulp wrote: > > > If schema validation is turned on, we now (starting with 2.1.3) "

Exception while marshalling

2008-12-16 Thread Sergey Pulyaev
given identifier exists: [com.data.alert.AlertType#10] -- ---- Best regards, Sergey Pulyaev -- View this message in context: http://www.nabble.com/Exception-while-marshalling-tp21033073p21033073.html Sent from the cxf-user mailing list archive at Nabble.com.

Method with dynamic paramerters

2008-06-25 Thread Sergey Pulyaev
Hi! Is it possible to declare method with undefined list of parameters and get them in runtime? I need it to create web service with method that can receive list of parameters from MS SQL reporting service that cannot send hashMap as parameter but need different parameters for some situa

RE: Dinamic Clients - How to

2008-06-25 Thread Sergey Pulyaev
I have running server - it has some JaxBContext. I need to get concrete this context - not any other... To use for marshalling classes currently known to it using the reflection... -Original Message- From: Benson Margulies [mailto:[EMAIL PROTECTED] Sent: Friday, June 20, 2008 3:21 PM To:

RE: how do I enable logging of the SOAP request and response in CXF in straight Java?

2008-06-25 Thread Sergey Pulyaev
I made this by implementing SOAP interceptor, store the message in message and then get it if needed: Add the following: IN ApplicationContext.xml Create class logging/SAAJInterceptor.java package logging; import javax.xml.soap.SOAPMessage; import

Dinamic Clients - How to

2008-06-20 Thread Sergey Pulyaev
Hi, I have system which consists of Java web service server .Net web service client , But I have to notify .NET sometimes using the reverted configuration: One .NET service server And Java web service client. First configuration contains information about all types that can be sent to .

RE: howto configure CXF-Jetty logging

2008-06-20 Thread Sergey Pulyaev
Read this manual - how to configure log4J logging instead of java.util.logging. http://cwiki.apache.org/CXF20DOC/debugging.html I use log4j now without any problem :-) Best regards Sergey -Original Message- From: Glen Mazza [mailto:[EMAIL PROTECTED] Sent: Friday, June 20, 2008

RE: How to retreive XML request

2008-06-04 Thread Sergey Pulyaev
/response things between your server and client. B "following the tcp stream", you can wach the full request. Another advantage of this approach is the fact that your don't need to code anything to retrieve the information. Regards, TMK Sergey Pulyaev schrieb: > I use Jetty6 as co

How to retreive XML request

2008-06-04 Thread Sergey Pulyaev
I use Jetty6 as container and I want to retrieve the XML request as string if I have exception during the web service run... Is it possible? I tried to use ((HttpServletRequest) getMessageContext().get(AbstractHTTPDestination.HTTP_REQUEST)) .getInputStream() But I'm failed to get informat