Hi All,

I have written one java service in webMethods which is expecting input as a
stream. I am calling this java service as a web service from one java client
as follow:





public class wS_client {



           public static void chooseWS(Object input) {



                       ServiceServiceLocator aService=new
ServiceServiceLocator();



                       try {



                                   ServiceBindingStub
aStub=(ServiceBindingStub)aService.getservicePort0();





                                   String isOK=aStub.webServiceTest1
(input);

                                   System.out.println("Executed
OK?\t"+isOK);



                       } catch (Exception e) {



System.out.println("Exception-------------"+e.toString());         }

           }



public static void main(String[] arg ){



String testString = "testing is going on";



ByteArrayInputStream input= new ByteArrayInputStream(testString.getBytes());



chooseWS (input);





}





But I am getting the following exception on runtime:



java.io.IOException: No serializer found for class
java.io.ByteArrayInputStream in registry
[EMAIL PROTECTED]



I also tried to pass byte array as an input but it doesn't work. I would
appreciate any help on the same.



Regards

Sachin

Reply via email to