JeffSaar wrote: > > We have created a RPG program that invokes a JAVA method that is receiving the error "NoSuchMethodError". The error points to a "(Ljava.lang.String" issue in the class we are using. > We created the proxy class using Websphere's Client proxy wizard by referencing the WSDL for the web service. Our java method and RPG prototype/procedure specifically references "java.lang.String" so I don't know where the Ljava is coming from. I think this is causing a signature issue. If anybody can give me some help with this it would be very much appreciated. Jeff, the L in Ljava.lang.String just means "Object". In the signature, most of the types are a single letter, I, F etc. For objects, the type is L followed by the class and a semicolon, so for java.lang.String, you get "Ljava.lang.String;" in the signature. Try doing a javap -s class on the class containing that method. javap will show the signatures of all the methods.

" issue in the class we are using. > We created the proxy class using Websphere's Client proxy wizard by referencing the WSDL for the web service. Our java method and RPG prototype/procedure specifically references "java.lang.String" so I don't know where the Ljava is coming from. I think this is causing a signature issue. If anybody can give me some help with this it would be very much appreciated. Jeff, the L in Ljava.lang.String just means "Object". In the signature, most of the types are a single letter, I, F etc. For objects, the type is L followed by the class and a semicolon, so for java.lang.String, you get "Ljava.lang.String;" in the signature. Try doing a javap -s class on the class containing that method. javap will show the signatures of all the methods.
Reply With Quote