Hi All,
I've written two clients (DII and static stub client) for my webservice.The DII 
client works fine but not able to write the static stub client.Here is the my 
static stub client code :

Stub stub = (Stub) (new 
CommerceItemService_Impl().getProductCollectionServicePort());
 stub._setProperty(javax.xml.rpc.Stub.ENDPOINT_ADDRESS_PROPERTY, 
"http://localhost:8080/commerceItems/ProductCollection";);
       
System.out.println(stub._getProperty(javax.xml.rpc.Stub.ENDPOINT_ADDRESS_PROPERTY));
        ProductCollectionService service =(ProductCollectionService) stub;
        service.testMethod();


Want to invoke the web-service method "testMethod()" ,but gives following error:

Exception in thread "main" java.lang.ClassCastException: org.jboss.axis.Message
    at com.sun.xml.rpc.client.StubBase._postSendingHook(StubBase.java:231)
    at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:324)
    at 
com.clientproject.commerceItems.client.stubs.ProductCollectionService_Stub.testMethod(ProductCollectionService_Stub.java:69)
    at 
com.clientproject.commerceItems.client.stubs.StaticStubClient.main(StaticStubClient.java:20)

--
Sonal


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3945143#3945143

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3945143


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to