PDA

View Full Version : Problem with <SOAP>


joseye1
05-17-2010, 05:22 PM
Hi,
I tried to get a SOAP service through <soap> tag, but receive the following error:
"Org.xml.sax.SAXException: SimpleDeserializer Encountered a child element, Which Is Not Expected, Was it something in trying to deserialize"

I do not understand that can happen, thanks for the help. The Code is:


<canvas debug="true" height="530">
<include href="rpc/rpc.lzx" />

<debug x="15" y="15" width="415" height="500"/>

<soap name="bugService" wsdl="http://www.openmeetings.de/openmeetings/services/UserService?wsdl">
<handler name="onload">
Debug.debug('WSDL at %w', this.wsdl);
Debug.debug('proxy:');
Debug.inspect(this.proxy);
</handler>

<handler name="onerror" args="error">
Debug.debug('error: %w', error);
</handler>

<remotecall funcname="getSession"></remotecall>

</soap>
<button text="GetSession">
<handler name="onclick">
parent.bugService.getSession.invoke();
</handler>
</button>
</canvas>

d~l
05-18-2010, 04:12 AM
Here is a tip for SOAP (wsdl) troubleshooting ..

copy the *.wsdl URL

http://www.openmeetings.de/openmeetings/services/UserService?wsdl

paste into here .. wsdl-viewer (http://tomi.vanek.sk/index.php?page=wsdl-viewer)

and submit .. here is the result ..

openmeetings wsdl view (http://www.w3.org/2000/06/webdata/xslt?xslfile=http://tomi.vanek.sk/xml/wsdl-viewer.xsl&amp;xmlfile=http://www.openmeetings.de/openmeetings/services/UserService?wsdl&amp;transform=Submit)

You might need to set larger fonts in your browser (the rendered text is quite small in my Firefox browser).

You can also download the wsdl-viewer to view downloaded copy of wsdl locally.

then design your SOAP to reflect the API.

joseye1
05-19-2010, 08:00 PM
Excellent, thanks.

Jose