WebMethods Examples

could you please any one can give me any examples of all the services what we can create using WebMethods.

Checkout the Tutorials (wMSamples,flat file,web services tutorials)

Cheers,
Thota

hello everybody

Following Forum Topic can help you to see the example of webMethods

http://pappupass.com/forum/topic.asp?whichpage=1&TOPIC_ID=4#4

Thanks
A Shah

how to write javaservice and how to recomiple that service
show me one error com.wm.app.b2b.service.ServiceException

is there need any jar file
please help me
thanks advance

There is no additional jar file is needed to create/compile a java service. A java service autometically gets compile as soon as you save it.

package

First

Folder

Javaproblem

my javaservice

IDataCursor pc = pipeline.getCursor();
Values in = Values.use(pipeline);
Values out=in;
String S1=in.getString(“S1”);
String S2=“Hellowwwwww Mr.”;
String S=" ";
S=S1;
out.put(“S”,S);
System.out.println(S);
pc.destroy();

input,output

s1,s

imports in shared tab

com.wm.app.service.*
com.wm.data
com.wm.util

source in shared tab


public String a(String S){
return S;
}

but showm me error

follwing error

Could not run ‘firstjava’.

com.wm.app.b2b.server.ServiceException: [ISS.0026.9102] Service ‘JavaProblem:firstjava’ is not operational. To run this service, first recompile the Java source.

please help me step by step process

thanks advanced

in server show me error

Failed to read class JavaProblem from input stream

What is the error that is shown when you save the service?

The imports you have on the shared tab on not necessary.

There are few things that you might like to check in your example:

The input/output variables are case sensitive. In your code you are referring to input/output variables as “S1” & “S”.

As Rob has already indicated, above imports are actually not required.

It could not be the cause of error, however above source is also looks redundant.

This error is shown because your clss is not compiled ,so first set the extended variables in the IS>settings>extended>edit extended settings in that set

watt.server.compile=C:\webMethods7.1\jvm\win150\bin\javac -classpath {0} -d {1} {2}
watt.server.compile.unicode=C:\webMethods7.1\jvm\win150\bin\javac -encoding Unicode -classpath {0} -d {1} {2}

Regards
Rajesh