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 Ryan Winkler <Ry...@i-link.net> on 2001/05/08 00:20:00 UTC

RE: Running AddressBook demo

Sounds like the problem I had this morning.  I had to revert to an earlier
version of Xerces... version 1.2.something

-r

-----Original Message-----
From: Ramani Krishnan [mailto:ramani.krishnan@jda.com]
Sent: Monday, May 07, 2001 4:23 PM
To: 'soap-user@xml.apache.org'
Subject: Running AddressBook demo


Whne  I try to run AddressBook demo, I get the following error

Deploying the addressbook service...
Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Client; msg=A
'htt
p://schemas.xmlsoap.org/soap/envelope/:Fault' element must contain a:
'faultcode
' element.; targetException=java.lang.IllegalArgumentException: A
'http://schema
s.xmlsoap.org/soap/envelope/:Fault' element must contain a: 'faultcode'
element.
]
        at org.apache.soap.rpc.Call.invoke(Call.java:244)
        at
org.apache.soap.server.ServiceManagerClient.invokeMethod(ServiceManag
erClient.java:127)
        at
org.apache.soap.server.ServiceManagerClient.deploy(ServiceManagerClie
nt.java:140)
        at
org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient
.java:228)
.


Any help appreciated.
Ramani 

-----Original Message-----
From: Tom Myers [mailto:tommyers@dreamscape.com]
Sent: Monday, May 07, 2001 3:08 PM
To: soap-user@xml.apache.org
Subject: Re: XML String


At 05:48 PM 5/7/2001 -0500, Lev Gelfer wrote:

>      My Java method returns an XML String. When I call it through SOAP the
String is converted and all < > symbols are replaced with &lt and &gt
symbols. Any ideas on how I can stop it. I tried to return CDATA[XML-STRING]
but that didn't help.


Well, as long as you're in Java, you should be able to parse the 
string and return an Element instead; as Bob Molden was just saying, 

>Check the GetAllListings.java program from the AddressBook sample. 

(and of course the AddressBook itself.) However, I'd like to find a
different answer here because I've been playing with script-services,
and in javascript so far as I know I can't return an Element...it has
to be a string, and so I've got your same problem. I guess I want to
substitute a different Serializer...it might give a performance
boost anyway, because the parse-then-return-Element solution should
be just a way of regenerating the string you're starting with. But 
I really don't yet know how to work it.

Tom Myers


---------------------------------------------------------------------
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

---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org