Service created from WSDL doesn't deserialize correctly
-------------------------------------------------------

                 Key: CXF-2338
                 URL: https://issues.apache.org/jira/browse/CXF-2338
             Project: CXF
          Issue Type: Bug
          Components: JAXB Databinding
    Affects Versions: 2.2
         Environment: Darwin fou162.telenor.ntnu.no 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


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 empty. 

The wsdl file in question: http://px.pats.no/px/services/SmsNotification?WSDL
A web-based client that can be used to invoke the service: 
http://px.pats.no/px/4_short_messaging/index_notification_SMS.html

>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>http://px.pats.no/px/services/SmsNotification?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.

Reply via email to