[MOBY-l] MobyRequest problem
Benjamin Good
bmg at sfu.ca
Fri Jun 11 19:54:58 UTC 2004
Dear list,
I am working on a moby service in java. I have succeeded in running it
with a perl client, but am having problems with a java client that uses
the MobyRequest class. The client works fine on other services from
moby central and on other perl services that I have written. The
question is should I alter my service or alter MobyRequest to handle it???
cheers
-ben
The error occurs in MobyRequest at this point.
Element resultDom = ((MessageElement)
soapCall.getResponseMessage().getSOAPPart().getEnvelope()).getAsDOM();
Here is the trace,
Input to MOBY Service is:
<?xml version="1.0" encoding="UTF-8"?>
<moby:MOBY xmlns:moby="http://www.biomoby.org/moby">
<moby:mobyContent>
<moby:mobyData moby:queryID='1'><Simple
xmlns="http://www.biomoby.org/moby"
xmlns:moby="http://www.biomoby.org/moby"
moby:articleName=""><moby:Wildcard_Query namespace='' id=''><moby:String
namespace='' id=''
articleName='germplasm_name'>IR64</moby:String><moby:Integer
namespace='' id='' articleName='start_row'>1</moby:Integer><moby:Integer
namespace='' id=''
articleName='end_row'>2</moby:Integer></moby:Wildcard_Query></Simple>
</moby:mobyData>
</moby:mobyContent>
</moby:MOBY>
- No returnType was specified to the Call object! You must call
setReturnType() if you have called addParameter().
SOAP Response was:
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<ns1:echoBytesResponse
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns1="http://biomoby.org/">
<ns1:echoBytesReturn xsi:type="soapenc:base64"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KICAgICAgIDxtb2J5Ok1PQlkgeG1sbnM6bW9ieT0iaHR0cDovL3d3dy5iaW9tb2J5Lm9yZy9tb2J5Ij4KICAgICAgICAgIDxtb2J5Om1vYnlDb250ZW50Pgo8bW9ieTptb2J5RGF0YSBtb2J5OnF1ZXJ5SUQ9JzEnPjxTaW1wbGUgeG1sbnM9Imh0dHA6Ly93d3cuYmlvbW9ieS5vcmcvbW9ieSIgeG1sbnM6bW9ieT0iaHR0cDovL3d3dy5iaW9tb2J5Lm9yZy9tb2J5IiBtb2J5OmFydGljbGVOYW1lPSIiPjxtb2J5OldpbGRjYXJkX1F1ZXJ5IG5hbWVzcGFjZT0nJyBpZD0nJz48bW9ieTpTdHJpbmcgbmFtZXNwYWNlPScnIGlkPScnIGFydGljbGVOYW1lPSdnZXJtcGxhc21fbmFtZSc+SVI2NDwvbW9ieTpTdHJpbmc+PG1vYnk6SW50ZWdlciBuYW1lc3BhY2U9JycgaWQ9JycgYXJ0aWNsZU5hbWU9J3N0YXJ0X3Jvdyc+MTwvbW9ieTpJbnRlZ2VyPjxtb2J5OkludGVnZXIgbmFtZXNwYWNlPScnIGlkPScnIGFydGljbGVOYW1lPSdlbmRfcm93Jz4yPC9tb2J5OkludGVnZXI+PC9tb2J5OldpbGRjYXJkX1F1ZXJ5PjwvU2ltcGxlPiAgICAgICAgICAgICAgPC9tb2J5Om1vYnlEYXRhPgogICAgICAgICAgPC9tb2J5Om1vYnlDb250ZW50PgogICAgICAgPC9tb2J5Ok1PQlk+Cg==</ns1:echoBytesReturn>
</ns1:echoBytesResponse>
</soapenv:Body>
</soapenv:Envelope>
Caught an exception from moby:org.biomoby.shared.SOAPException: Could
not get SOAP response as DOM Element: org.biomoby.shared.SOAPException:
Could not find a Base64 encoded SOAP payload
ERROR: Unable to initiate moby service.
org.biomoby.shared.SOAPException: Could not get SOAP response as DOM
Element: org.biomoby.shared.SOAPException: Could not find a Base64
encoded SOAP payload
at
org.biomoby.client.MobyRequest.performSOAPRequest(MobyRequest.java:358)
at org.biomoby.client.MobyRequest.invokeService(MobyRequest.java:232)
More information about the moby-l
mailing list