You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by Allen Brookes <ab...@roguewave.com> on 2000/09/20 22:51:27 UTC

help with apache soap classes

Hi,

I am having trouble using the apache soap classes.  Specifically I am having
problems
using the Parameter class. I create a parameter with the following
statement:

new Parameter("id", String.class, new String("10000"),
Constants.NS_URI_SOAP_ENC)

I add this parameter to a vector and use the vector as the parameters for a
call.  When I
invoke the call I get:

Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Client;
msg=The 'h
ttp://www.w3.org/1999/XMLSchema/instance/:type' attribute must be specified
for
every parameter.; targetException=java.lang.IllegalArgumentException: The
'http:
//www.w3.org/1999/XMLSchema/instance/:type' attribute must be specified for
ever
y parameter.]
        at com.ibm.soap.rpc.Call.invoke(Call.java:124)
        at testibmsoap.main(testibmsoap.java:49)

Can you tell me if I am using the Parameter class incorrectly?

Thanks in advance.

Allen Brookes
Rogue Wave Software