SoapFault
[email protected] Wed, 11 Dec 2002 11:23:54 +0100 (MET)
| Newsgroups | gmane.comp.java.enhydra.ksoap |
|---|---|
| Message-ID | <[email protected]> |
Hello everyone,
I'm trying to connect with a midp/ksoap client to a GLUE webservice and call
two methods named
void login( String userId )
void addAppointment ( String userId, Appointment app)
Login works fine, but I get an server error when trying to call
addAppointment with a faultstring like this:
<faultstring> electric.xml.io.schema.SchemaException:
could not find a type with qname
www.themindelectric.com/package/:Appointment
</faultstring>
It look's like the ":" in ":Appointment" should'nt be there??
Here's part of my code:
//
static final String serviceNamespace =
"http://www.themindelectric.com/wsdl/JNotes/";
static final String serviceUrl =
"http://sls1n8:8008/jnote/webservices/jnote";
transport = new HttpTransport( serviceUrl, soapAction );
ClassMap classMap = new ClassMap(false);
classMap.addMapping("www.themindelectric.com/package/","Appointment",new
Appointment().getClass());
transport.setClassMap(classMap);
...
...
soapObj = new SoapObject(
serviceNamespace,
"addAppointment");
soapObj.addProperty("userId",mobile+pin);
soapObj.addProperty("app",this.generateAppointment(desc,date));
try{
transport.call(soapObj);
}catch(Exception e){
e.printStackTrace();
}
//
(The Appointment class implements KvmSerializable.)
Has anybody an idea what I've done wrong?
Thanks in advance,
Philip
--
+++ GMX - Mail, Messaging & more http://www.gmx.net +++
NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen!