cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Kulp (JIRA)" <>
Subject [jira] Commented: (CXF-2338) Service created from WSDL doesn't deserialize correctly
Date Thu, 16 Jul 2009 18:14:14 GMT


Daniel Kulp commented on CXF-2338:

This is a bug in their service tester or similar.   If you look at the soap message coming

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="" xmlns:xsd=""
        <notifySmsReception xmlns="">
                <message xmlns="">Hello</message>
                <senderAddress xmlns="">tel:124</senderAddress>
                <smsServiceActivationNumber xmlns="">tel:2034</smsServiceActivationNumber>

you see that the child elements of <message> are all non-qualified.   (xmlns="") 

However, if you look at the schema for the SmsMessage type, it specifically says:

Thus, the service is not sending messages that match it's own schema.  That is a bug on their
part.   They either need to update their tester to match the schema or change the schema.

> Service created from WSDL doesn't deserialize correctly
> -------------------------------------------------------
>                 Key: CXF-2338
>                 URL:
>             Project: CXF
>          Issue Type: Bug
>          Components: JAXB Databinding
>    Affects Versions: 2.2
>         Environment: Darwin 9.7.0 Darwin Kernel Version 9.7.0:
Tue Mar 31 22:52:17 PDT 2009; root:xnu-1228.12.14~1/RELEASE_I386 i386
> fou162:lib wakko$ mvn --version
> Maven version: 2.0.9
> Java version: 1.6.0_13
> OS name: "mac os x" version: "10.5.7" arch: "x86_64" Family: "mac"
>            Reporter: Anders Storsveen
>             Fix For: Invalid
> I'm trying to create a web service from a WSDL file and then run it embedded in my java
application. I'm using maven to generate the classes and then create my own Impl and start
it with Endpoint.publish(). This seems to work fine, however not all deserialize correctly.
The method in question, takes two parameters, one String and one complex SmsMessage class.
When I invoke the method the SOAP is fine (and there exists other services built on this wsdl
that works) however the String in the method is set correctly, while the complex class is
> The wsdl file in question:
> A web-based client that can be used to invoke the service:
> From my pom.xml file:
> 			<plugin>
> 				<groupId>org.apache.cxf</groupId>
> 				<artifactId>cxf-codegen-plugin</artifactId>
> 				<version>${cxf.version}</version>
> 				<executions>
> 					<execution>
> 						<id>generate-sources</id>
> 						<configuration>
> 							<wsdlOptions>
> 								<wsdlOption>
> 									<!-- <wsdl>${basedir}/wsdl/SmsNotification.wsdl</wsdl> -->
> 									<wsdl></wsdl>
> 								</wsdlOption>
> 							</wsdlOptions>
> 						</configuration>
> 						<goals>
> 							<goal>wsdl2java</goal>
> 						</goals>
> 					</execution>
> 				</executions>
> 			</plugin>

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

View raw message