cancel
Showing results for 
Search instead for 
Did you mean: 

web service access

Former Member
0 Kudos

Hello,

I have a wsdl file and some Java classes generated on the basis of this wsdl. Now, can anybody tell me how I could have access to my business method from other java class.

Thanks for any feedback

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Altafin,

i just started with this too (in Internet Sales). Look if there are classes called xyzSoap and xyzService. To access the service i have this so far:

MyWS<b>Service</b> service = new MyWSService();

MyWS<b>Soap</b> mySoap = (MyWSSoap)service.getPort( "MyWSSoap" );

Your developtool (e.g. eclipse) should show the available methods then.

All in all i'am stuck (see my thread), so correct me if i'am wrong....

HTH rk

Message was edited by: Rainer Kruse

Former Member
0 Kudos

Hello Rainer

Unfortunately, my problem still isn't solved.

In Client class when try

MyService_Impl service = new MyService_Impl();

I get a runtime error.

The MyService_Impl has been automat generated with wscompile as wsdl proccesing result's.

Former Member
0 Kudos

Try MyService service = new MyService_Impl();

Former Member
0 Kudos

Hello,

When try to call my business method, get_number() I get a runtime error

"ava.lang.ExceptionInInitializerError: java.lang.SecurityException: Prohibited package name: java.util.logging.........."

My code is:

PortalServiceService_Impl service =

new PortalServiceService_Impl();

PortalService ps= service.getComSapPortalPrtSoapPortalService();

String s=ps.getClass().toString();

int hc=ps.hashCode();

int ii=ps.get_number();

System.out.println (s);

System.out.println(hc);