cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Phillip Rhodes" <spamsu...@rhoderunner.com>
Subject can't pass dateTime from dotnet client to java
Date Wed, 06 Aug 2008 16:01:29 GMT
I recently upgraded from xfire to cxf and the only issue that I have is that from my dotnet
client, I am trying to pass a System.DateTime to my java webservice, and it doesn't come through,
that is, my java service thinks that the value is null.  For now, I am going to convert these
properties to strings and do that Date parsing on my side, but wanted to just share this information
in case it's a bug.


I have included:
1) Dot net code
2) cxf logging of inbound message
3) my dependencies
4) wsdl generated from cxfservlet


The argument is called "startDate"

Here is my dotnet code:
DateTime startDate = DateTime.Now;
request.startDate = startDate;

Generated from dotnet (Reference.cs)
Please note that my other properties do not have a generated method to indicate if the value
is specified or not.

        private System.DateTime startDateField;

        /// <remarks/>
        public System.DateTime startDate {
            get {
                return this.startDateField;
            }
            set {
                this.startDateField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool startDateSpecified {
            get {
                return this.startDateFieldSpecified;
            }
            set {
                this.startDateFieldSpecified = value;
            }
        }



I pumped up the logging on the java side and the incoming message doesn't have my datetime
set.

Aug 6, 2008 11:11:27 AM org.apache.cxf.interceptor.LoggingInInterceptor logging
INFO: Inbound Message
----------------------------
Encoding: UTF-8
Headers: {content-length=[854], connection=[Keep-Alive], host=[dmidev.r-effects.com:8080],
user-agent=[Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client Protocol 2.0.50727.1433)],
expect=[100-continue], content-type=[text/xml; charset=utf-8], soapaction=[""]}
Messages: 
Message:

Payload: <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><findEvents
xmlns="http://services.dmi.reffects.com/"><arg0><attractionId>0</attractionId><catsRequired>0</catsRequired><includeAttractions>0</includeAttractions><includeCoupons>0</includeCoupons><includeCrawl>0</includeCrawl><includeEvents>0</includeEvents><includeRoadTrips>0</includeRoadTrips><includeTourPackages>0</includeTourPackages><maxNearbys>0</maxNearbys><maxResults>2</maxResults><mileRadius>0</mileRadius><objectId>0</objectId><pageNumber>0</pageNumber><pageSize>0</pageSize><randomOrder>0</randomOrder><regionId>0</regionId><siteId>1</siteId><stringPayload>1</stringPayload></arg0></findEvents></soap:Body></soap:Envelope>




Here is a list of all my dependencies:
XmlSchema-1.4.2.jar
activation-1.0.2.jar
ant-optional-1.5.1.jar
antlr-2.7.6.jar
aopalliance-1.0.jar
asm-1.5.3.jar
asm-attrs-1.5.3.jar
authsum-client-1.5-SNAPSHOT.jar
authsum-core-1.5-SNAPSHOT.jar
backport-util-concurrent-3.0.jar
c3p0-0.9.0-pre5.jar
cglib-2.1_3.jar
commons-beanutils-1.7.0.jar
commons-beanutils-core-1.7.0.jar
commons-codec-1.2.jar
commons-collections-3.1.jar
commons-configuration-1.3.jar
commons-dbcp-1.2.1.jar
commons-digester-1.6.jar
commons-email-1.1.jar
commons-fileupload-1.1.jar
commons-httpclient-3.0.jar
commons-io-1.1.jar
commons-jxpath-1.2.jar
commons-lang-2.1.jar
commons-logging-1.0.4.jar
commons-logging-api-1.0.4.jar
commons-pool-1.3.jar
commons-validator-1.3.0.jar
compass-1.2RC1.jar
concurrent-1.3.4.jar
csvjdbc-1.0.jar
cxf-api-2.0.7.jar
cxf-common-schemas-2.0.7.jar
cxf-common-utilities-2.0.7.jar
cxf-rt-bindings-soap-2.0.7.jar
cxf-rt-bindings-xml-2.0.7.jar
cxf-rt-core-2.0.7.jar
cxf-rt-databinding-jaxb-2.0.7.jar
cxf-rt-frontend-jaxws-2.0.7.jar
cxf-rt-frontend-simple-2.0.7.jar
cxf-rt-transports-http-2.0.7.jar
cxf-tools-common-2.0.7.jar
dmi-core-1.4-SNAPSHOT.jar
dmi-miles-1.4-SNAPSHOT.jar
dom4j-1.4.jar
ehcache-1.3.0.jar
geronimo-activation_1.1_spec-1.0.2.jar
geronimo-annotation_1.0_spec-1.1.1.jar
geronimo-javamail_1.4_spec-1.3.jar
geronimo-stax-api_1.0_spec-1.0.1.jar
geronimo-ws-metadata_2.0_spec-1.1.2.jar
hessian-2.1.12.jar
hibernate-3.2.1.ga.jar
hibernate-annotations-3.2.1.ga.jar
hivemind-1.1.1.jar
hivemind-lib-1.1.1.jar
hivemind-utils-0.1.jar
hsqldb-1.8.0.7.jar
isorelax-20020414.jar
jamon-2.0.jar
javassist-3.0.jar
jaxb-api-2.0.jar
jaxb-impl-2.0.5.jar
jaxb-xjc-2.0.jar
jaxen-1.0-FCS.jar
jaxws-api-2.0.jar
jcaptcha-all-1.0-RC6.jar
jdom-1.0.jar
jsr107cache-1.0.jar
jsr173_api-1.0.jar
jta-1.0.1B.jar
jtidy-4aug2000r7-dev.jar
junit-3.8.1.jar
kaptcha-2.2.jar
log4j-1.2.8.jar
lucene-core-2.2.0.jar
lucene-demos-2.0.0.jar
lucene-misc-2.2.0.jar
mail-1.4.jar
manTap4Library-1.4.jar
msv-20020414.jar
neethi-2.0.4.jar
ognl-2.6.7.jar
oro-2.0.8.jar
persistence-api-1.0.jar
pmiw-1.0.jar
quartz-1.5.2.jar
relaxngDatatype-20020414.jar
saaj-api-1.3.jar
saaj-impl-1.3.jar
saxpath-1.0-FCS.jar
spring-2.0.8.jar
spring-aop-2.0.8.jar
spring-beans-2.0.8.jar
spring-context-2.0.8.jar
spring-core-2.0.8.jar
spring-security-core-2.0.3.jar
spring-security-core-tiger-2.0.3.jar
spring-support-2.0.8.jar
spring-web-2.0.8.jar
sqljdbc-1.1.jar
stitch-om-1.4-SNAPSHOT.jar
stitch-ui-1.4-SNAPSHOT.jar
tacos-core-4.0.1.jar
tapestry-4.0.2.jar
tapestry-annotations-4.0.2.jar
tapestry-contrib-4.0.2.jar
tapestry-spring-1.0.0-SNAPSHOT.jar
textile4j-1.20.jar
velocity-1.4.jar
velocity-dep-1.4.jar
wsdl4j-1.6.1.jar
wstx-asl-3.2.4.jar
xalan-2.7.0.jar
xercesImpl-2.8.1.jar
xml-apis-1.3.03.jar
xml-resolver-1.2.jar
xmlParserAPIs-2.2.1.jar
xpp3_min-1.1.3.4.O.jar
xstream-1.1.3.jar
xstream-1.2.1.jar


Lastly, here is a wsdl from my object that I am trying to pass


<xs:complexType name="dmiRequest">
	<xs:sequence>
<xs:element name="attractionId" type="xs:long"/>
<xs:element minOccurs="0" name="attractionType" type="xs:string"/>
<xs:element minOccurs="0" name="categories" type="xs:string"/>
<xs:element name="catsRequired" type="xs:int"/>
<xs:element minOccurs="0" name="cityName" type="xs:string"/>
<xs:element minOccurs="0" name="endDate" type="xs:dateTime"/>
<xs:element minOccurs="0" name="endDateDisplay" type="xs:string"/>
<xs:element name="includeAttractions" type="xs:int"/>
<xs:element name="includeCoupons" type="xs:int"/>
<xs:element name="includeCrawl" type="xs:int"/>
<xs:element name="includeEvents" type="xs:int"/>
<xs:element name="includeRoadTrips" type="xs:int"/>
<xs:element name="includeTourPackages" type="xs:int"/>
<xs:element minOccurs="0" name="keywords" type="xs:string"/>
<xs:element maxOccurs="unbounded" minOccurs="0" name="latLongs" nillable="true" type="tns:latLong"/>
<xs:element name="maxNearbys" type="xs:int"/>
<xs:element name="maxResults" type="xs:int"/>
<xs:element name="mileRadius" type="xs:int"/>
<xs:element name="objectId" type="xs:long"/>
<xs:element name="pageNumber" type="xs:int"/>
<xs:element name="pageSize" type="xs:int"/>
<xs:element minOccurs="0" name="path" type="xs:string"/>
<xs:element maxOccurs="unbounded" minOccurs="0" name="properties" nillable="true" type="tns:propertyDTO"/>
<xs:element name="randomOrder" type="xs:int"/>
<xs:element name="regionId" type="xs:long"/>
<xs:element minOccurs="0" name="secureToken" type="xs:string"/>
<xs:element name="siteId" type="xs:long"/>
<xs:element minOccurs="0" name="sortKey" type="xs:string"/>
<xs:element minOccurs="0" name="sortOrder" type="xs:string"/>
<xs:element minOccurs="0" name="startDate" type="xs:dateTime"/>
<xs:element minOccurs="0" name="startDateDisplay" type="xs:string"/>
<xs:element name="stringPayload" type="xs:int"/>
<xs:element minOccurs="0" name="tags" type="xs:string"/>
<xs:element minOccurs="0" name="zipCode" type="xs:string"/>
</xs:sequence>
</xs:complexType>





Mime
View raw message