You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by mmistroni <mm...@gmail.com> on 2008/03/16 17:20:23 UTC

ServiceMix jsr181 tutorial

hi all,
  i went thru jsr181 tutorial at servicemix site...
i got to the end successfullly, despite couple of problems that i'd like to
report here to see if anyone is aware, as i would like to edit the page so
that anyone who tries does not get stuck like i did.

First of all, i have generated su using  version=3.3-SNAPSHOT, therefore the
generated pom contained this for wsgen
[code]
<plugin>
        <groupId>org.apache.servicemix.tooling</groupId>
        <artifactId>xfire-maven-plugin</artifactId>
        <version>${servicemix-version}</version>
        <executions>
          <execution>
            <phase>generate-sources</phase>
            <goals>
              <goal>wsgen</goal>
            </goals>
            <configuration>
              <wsdls>
                 <wsdl>src/main/resources/service.wsdl</wsdl>
                 <wsdl>src/main/resources/uszip.wsdl</wsdl>
                <wsdl>src/main/resources/LocalTime.wsdl</wsdl>
              </wsdls>
              
              <outputDirectory>target/generated-sources</outputDirectory>
              <profile>org.codehaus.xfire.jaxws.gen.JAXWSProfile</profile>
            </configuration>
          </execution>
        </executions>
      </plugin>
[/code]
Unfortunately, seems like using property
<generateServiceStubs>false</generateServiceStubs>
didnt work, therefore once i have edited the generated files, i had to
remove the plugin from the pom (to avoid generation)

Secondly, looks like the wsdl posted for service.wsdl is little incorrect
i had to replace the corresponding section with this:
[code]
	<xsd:complexType>
					<xsd:sequence>
						<xsd:element name="time" type="xsd:string"/>
						<!--
							minOccurs="0" maxOccurs="unbounded"> 
						</xsd:element> -->
					</xsd:sequence>
				</xsd:complexType>
[/code]

When i run the test, i found some errors for conflicts in the classpath
related to jaxb-api.
THis was because i was running with jdk-1.5.0_06 . I had to replace it with
jdk1.6.0_05

Lastly, i have added a sample page following the wsdl example in
<ServiceMixRoot>\examples\wsdl-first.

I posted this just to doublecheck with servicemix guys, as it might be that
i have been sleeping for too long... and i wanted to ask if i can go ahead
and edit the page of the tutorial.

thanks everybody and regards 
  marco







-- 
View this message in context: http://www.nabble.com/ServiceMix-jsr181-tutorial-tp16080775s12049p16080775.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.