You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@xml.apache.org by Cedric Bompart <ce...@morse.com> on 2001/04/19 10:13:30 UTC
new type... again
Hi,
**** from my quest to involve new type, I received this exception... any
idea?
Fault Code = SOAP-ENV:Server
Fault String = java.lang.IllegalArgumentException: No Serializer found to
serialize a 'bank.Account' using encoding style
'http://schemas.xmlsoap.org/soap/encoding/'.
**** here is my deployment descriptor:
<isd:service xmlns:isd="http://xml.apache.org/xml-soap/deployment"
id="urn:bankService">
<isd:provider type="java" scope="Application" methods="getAccount">
<isd:java class="bank.Manager" static="false"/>
</isd:provider>
<isd:faultListener>org.apache.soap.server.DOMFaultListener</isd:faultListene
r>
<isd:mappings>
<isd:map
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:x="urn:xml-soap-bank" qname="x:Account" javaType="bank.Account"
java2XMLClassName="org.apache.soap.encoding.soapenc.BeanSerializer"
xml2JavaClassName="org.apache.soap.encoding.soapenc.BeanSerializer"/>
</isd:mappings>
</isd:service>
**** and my Account class:
package bank;
public class Account {
private int id;
private long balance;
public Account() {}
public Account(int id, long balance) {
this.id = id;
this.balance = balance;
}
public int getId() {
return this.id;
}
public void setId(int id) {
this.id = id;
}
public long getBalance() {
return this.balance;
}
public void setBalance(long balance) {
this.balance = balance;
}
public String toString() {
return id + " " + balance;
}
}
**** thx.
Ced.
--
Cedric Bompart, Internet Developer, Morse Hughes Rae
tel: 01332 826110 mobile: 07931 536934 switchboard: 01332 826000
email: c.bompart@hughesrae.co.uk
This email and any attachments are confidential and are intended only for
the addressee. If you are not the intended recipient of this email and have
received it in error, please notify the sender immediately by reply email
and then delete it from your system.
---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org
RE: new type... again
Posted by Kamlesh Lal NE <ka...@changepond.com>.
just try with this dd
<abc:service xmlns:abc="http://xml.apache.org/xml-soap/deployment"
id="urn:bankService" type="message">
<abc:provider type="java"
scope="Application"
methods="getAccount">
<abc:java class="bank.Manager" static="false"/>
</abc:provider>
<abc:faultListener>org.apache.soap.server.DOMFaultListener</abc:faultListene
r>
</abc:service>
kamlesh
-----Original Message-----
From: Cedric Bompart [mailto:cedric.bompart@morse.com]
Sent: Thursday, April 19, 2001 3:14 AM
To: Soap (E-mail)
Subject: new type... again
Hi,
**** from my quest to involve new type, I received this exception... any
idea?
Fault Code = SOAP-ENV:Server
Fault String = java.lang.IllegalArgumentException: No Serializer found to
serialize a 'bank.Account' using encoding style
'http://schemas.xmlsoap.org/soap/encoding/'.
**** here is my deployment descriptor:
<isd:service xmlns:isd="http://xml.apache.org/xml-soap/deployment"
id="urn:bankService">
<isd:provider type="java" scope="Application" methods="getAccount">
<isd:java class="bank.Manager" static="false"/>
</isd:provider>
<isd:faultListener>org.apache.soap.server.DOMFaultListener</isd:faultListene
r>
<isd:mappings>
<isd:map
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:x="urn:xml-soap-bank" qname="x:Account" javaType="bank.Account"
java2XMLClassName="org.apache.soap.encoding.soapenc.BeanSerializer"
xml2JavaClassName="org.apache.soap.encoding.soapenc.BeanSerializer"/>
</isd:mappings>
</isd:service>
**** and my Account class:
package bank;
public class Account {
private int id;
private long balance;
public Account() {}
public Account(int id, long balance) {
this.id = id;
this.balance = balance;
}
public int getId() {
return this.id;
}
public void setId(int id) {
this.id = id;
}
public long getBalance() {
return this.balance;
}
public void setBalance(long balance) {
this.balance = balance;
}
public String toString() {
return id + " " + balance;
}
}
**** thx.
Ced.
--
Cedric Bompart, Internet Developer, Morse Hughes Rae
tel: 01332 826110 mobile: 07931 536934 switchboard: 01332 826000
email: c.bompart@hughesrae.co.uk
This email and any attachments are confidential and are intended only for
the addressee. If you are not the intended recipient of this email and have
received it in error, please notify the sender immediately by reply email
and then delete it from your system.
---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org
RE: new type... again
Posted by Kamlesh Lal NE <ka...@changepond.com>.
just try with this dd
<abc:service xmlns:abc="http://xml.apache.org/xml-soap/deployment"
id="urn:bankService" type="message">
<abc:provider type="java"
scope="Application"
methods="getAccount">
<abc:java class="bank.Manager" static="false"/>
</abc:provider>
<abc:faultListener>org.apache.soap.server.DOMFaultListener</abc:faultListene
r>
</abc:service>
kamlesh
-----Original Message-----
From: Cedric Bompart [mailto:cedric.bompart@morse.com]
Sent: Thursday, April 19, 2001 3:14 AM
To: Soap (E-mail)
Subject: new type... again
Hi,
**** from my quest to involve new type, I received this exception... any
idea?
Fault Code = SOAP-ENV:Server
Fault String = java.lang.IllegalArgumentException: No Serializer found to
serialize a 'bank.Account' using encoding style
'http://schemas.xmlsoap.org/soap/encoding/'.
**** here is my deployment descriptor:
<isd:service xmlns:isd="http://xml.apache.org/xml-soap/deployment"
id="urn:bankService">
<isd:provider type="java" scope="Application" methods="getAccount">
<isd:java class="bank.Manager" static="false"/>
</isd:provider>
<isd:faultListener>org.apache.soap.server.DOMFaultListener</isd:faultListene
r>
<isd:mappings>
<isd:map
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:x="urn:xml-soap-bank" qname="x:Account" javaType="bank.Account"
java2XMLClassName="org.apache.soap.encoding.soapenc.BeanSerializer"
xml2JavaClassName="org.apache.soap.encoding.soapenc.BeanSerializer"/>
</isd:mappings>
</isd:service>
**** and my Account class:
package bank;
public class Account {
private int id;
private long balance;
public Account() {}
public Account(int id, long balance) {
this.id = id;
this.balance = balance;
}
public int getId() {
return this.id;
}
public void setId(int id) {
this.id = id;
}
public long getBalance() {
return this.balance;
}
public void setBalance(long balance) {
this.balance = balance;
}
public String toString() {
return id + " " + balance;
}
}
**** thx.
Ced.
--
Cedric Bompart, Internet Developer, Morse Hughes Rae
tel: 01332 826110 mobile: 07931 536934 switchboard: 01332 826000
email: c.bompart@hughesrae.co.uk
This email and any attachments are confidential and are intended only for
the addressee. If you are not the intended recipient of this email and have
received it in error, please notify the sender immediately by reply email
and then delete it from your system.
---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org