cancel
Showing results for 
Search instead for 
Did you mean: 

Problem when generating web service client using eclipse JavaEE

Former Member
0 Kudos

Hi,

I have created a subservience in SAP .. and the WSDL endpoint is :http://10.130.105.8:8000/sap/bc/srt/wsdl/flv_10002A111AD1/srvc_url/sap/bc/srt/rfc/sap/ztm_ws_get_emp...

But there is problem when I set the service definition. Can you help me, in how to generate the  Java classes for SAP web service ?

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

I have got the same problem.

When I try to create Web Service Client in eclipse IDE, it always says: invalid WSDL.

Any idea? Would you please tell me how did you figure this out? Thanks.

Regards,

Jerry

rosenberg_eitan
Active Contributor
0 Kudos

Hi,

Any update ?

Regards.

Former Member
0 Kudos

Hi,

I've done it by myself, thank you for your help . Now, I am trying to make it for android application.

Thanks,

rosenberg_eitan
Active Contributor
0 Kudos

Hi,

Great.

When you are done please write an article about it.

Regards.

rosenberg_eitan
Active Contributor
0 Kudos

Hi,

Did you got your WSDL from the web interface soamanager ?

Check the wsdl for soap:address tag .

Regards.

rosenberg_eitan
Active Contributor
0 Kudos

Hi,

Hello again .

Have you tried your service using soapui ?

You can use your WSDL as input .

In order to eliminate eclipse problem try this service:(I just did)

http://www.oorsprong.org/websamples.countryinfo/CountryInfoService.wso?WSDL

Regards.


package main;

import java.io.FileInputStream;
import java.rmi.RemoteException;
import java.util.Properties;
import org.oorsprong.www.websamples_countryinfo.CountryInfoServiceSoapType;
import org.oorsprong.www.websamples_countryinfo.CountryInfoServiceSoapTypeProxy;
import org.oorsprong.www.websamples_countryinfo.TCountryCodeAndName;

public class Main {

public static void main(String[] args) {

  try {
   final Properties properties = new Properties();
   properties.load(new FileInputStream("properties.ini"));
   System.getProperties().putAll(properties);
  } catch (final Exception exception) {
   exception.printStackTrace();
  }

  new Main();

}

public Main() {

  try {

   final CountryInfoServiceSoapType infoServiceSoapType = new CountryInfoServiceSoapTypeProxy();

   final TCountryCodeAndName[] tCountryCodeAndNames = infoServiceSoapType.listOfCountryNamesByName();

   for (final TCountryCodeAndName tCountryCodeAndName : tCountryCodeAndNames) {
    System.out.println(tCountryCodeAndName.getSName());
   }

  } catch (final RemoteException exception) {
   exception.printStackTrace();
  }

}

}