0

I'm very new to WSDL. I want to generate JAVA code from WSDL url.

Below is my code,

  <plugin>
    <groupId>org.apache.axis2</groupId>
    <artifactId>axis2-wsdl2code-maven-plugin</artifactId>
    <version>1.5.1</version>
    <executions>
      <execution>
        <id>generate-java-sources</id>
        <phase>process-sources</phase>
        <goals>
          <goal>wsdl2code</goal>
        </goals>
        <configuration>
            <wsdlUrls>
                <wsdlUrl>http://targeturl:88/webservice.php?wsdl</wsdlUrl>
            </wsdlUrls>
            <generateServerSide>false</generateServerSide>
            <databindingName>xmlbeans</databindingName>
            <packageName>com.foo.bar.mywsdl</packageName>
        </configuration>
      </execution>
    </executions>
  </plugin>

When I want to run the code by using a command

mvn process-sources

I will always get error because it will keep asking for

src/main/axis2/service.wsdl

I have been trying to look for location on the internet for a whole day but no luck for me yet.

Please help.

Hikaru Shindo
  • 2,611
  • 8
  • 34
  • 59

0 Answers0