users@jax-rpc.java.net

Re: Starting from WSDL!!!

From: Dilip Easwaran <dilip_at_IIITB.AC.IN>
Date: Fri, 05 Apr 2002 01:19:24 -0700

(sorry if this query appears twice in the list)

Thanks Dale.


but i still get these errors when i start from WSDL.( i dont when i use

ant build
ant install
ant run .
i also want to know the difference between the stubs generated with RMI
interfaces and stubs generated from WSDl.Why is it that my example
works when i use stubs generated with RMI interfaces and not with those
generated with WSDL?? and what is the use of the x._Config.properties
generated by xrpcc when it is fed with wsdl. and if i start from wsdl for
a simple add method i get these errors .i didnt get these errors in EA1

java.rmi.RemoteException: HTTP transport error:
java.lang.ArrayIndexOutOfBoundsE
xception; nested exception is:
        HTTP transport error: java.lang.ArrayIndexOutOfBoundsException

)


this is the x._Config.properties generated by xrpcc.
# This file is generated by xrpcc.

port0.tie=Client.HelloIFPort_Tie
port0.servant=Please specify the servant class for port:HelloIFPort
port0.name=HelloIFPort
port0.wsdl.targetNamespace=http://simplebean-hello.org/wsdl
port0.wsdl.serviceName=HelloWorld
port0.wsdl.portName=HelloIFPort
portcount=1

errors are:

C:\jwsdp-1_0-ea2\docs\tutorial\examples\jaxrpc\simplebean>java
Client.HelloClient2
demoArray method:
it was a dark and stormy night
java.rmi.RemoteException: received fault: "Internal Server Error
(deserialization error: deserialization error: deserialization error:
deserialization error: deserialization error: unexpected element name:
expected=string, actual={http://www.w3.org/2001/XMLSchema}string)" (code:
"Server" namespace: "http://schemas.xmlsoap.org/soap/envelope/"); nested
exception is:received fault: "Internal Server Error (deserialization
error: deserialization error: deserialization error: deserialization error:
deserialization error: unexpected element name: expected=string,
actual={http://www.w3.org/2001/XMLSchema}string)"
(code: "Server" amespace: "http://schemas.xmlsoap.org/soap/envelope/")
 at Client.HelloIFPort_Stub.reverse(Unknown Source)
 at Client.HelloClient2.demoArray(HelloClient2.java:51)
 at Client.HelloClient2.main(HelloClient2.java:15)
Caused by: received fault: "Internal Server Error (deserialization
error: deserialization error: deserialization error: deserialization error:
deserialization error: unexpected element name: expected=string,
actual={http://www.w3.org/2001/XMLSchema}string)"
(code: "Server" amespace: "http://schemas.xmlsoap.org/soap/envelope/")
at
com.sun.xml.rpc.client.StreamingSender._raiseFault(StreamingSender.ja
va:321)
at
com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:211
)
        ... 3 more

pl help

thanx
dilip