So, if I read this correctly, you have defined your searchRetrieve method as
returning an object of type searchRetrieveResponse. I defined by
searchRetrieve method as returning a string. I suspect that your response
is correct as far as the WSDL is concerned. But, I believe the WSDL is in
error as far as the extensibility claims for our prototype are concerned.
If we are to return a well-known structured object, then there is no
extensibility mechanism. There is no point in have a responseSchema in the
request if the object that we are returning cannot carry the data required
for the response. The only way we can vary our response with the
responseSchema is if we return a simple string and embed an XML document in
the string.
Isn't that correct?
Ralph
> -----Original Message-----
> From: [log in to unmask] [mailto:[log in to unmask]]
> Sent: Sunday, November 18, 2001 11:06 PM
> To: LeVan,Ralph
> Subject: Re: No response from your server
>
>
> On Tue, Nov 06, 2001 at 08:05:50AM -0500, LeVan,Ralph wrote:
> > Some progress. Now I get this error:
> >
> > SOAPException=[SOAPException: faultCode=SOAP-ENV:Client;
> msg=No Deserializer
> > found to deserialize a
> 'urn:z3950:ZNG_Prototype1:searchRetrieveResponse'
> > using encoding style 'http://schemas.xmlsoap.org/soap/encoding/'.;
> > targetException=java.lang.IllegalArgumentException: No
> Deserializer found to
> > deserialize a
> 'urn:z3950:ZNG_Prototype1:searchRetrieveResponse' using
> > encoding style 'http://schemas.xmlsoap.org/soap/encoding/.]
> >
> > I defined my server as returning a String and put the XML
> document in it.
> > It looks like you are returning an object of type
> searchRetrieveResponse.
> >
> > Got a guess as to which one is right? If it's you, then
> what do I have to
> > do to get the message deserialized?
> >
> > Ralph
>
> I just came across this old email. It looks like my recent mail is
> actually something we started talking about previously.
>
> Here is a working search/retreive conversation between my client and
> server. This does not mean its correct. It just means its consistent
> with itself.
>
> HTTP REQUEST:
>
> POST /z3950.simdb.com/Marc HTTP/1.1
> SOAPAction: ""
> Content-Type: text/xml; charset=UTF-8
> Content-Length: 707
> User-Agent: SIM Soap Client 0.01
> Host: z3950.simdb.com:6745
>
> <?xml version="1.0"?>
> <SOAP-ENV:Envelope
> SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encodi
> ng/"
> xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
> xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:ns0="http://www.w3.org/1999/XMLSchema"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <SOAP-ENV:Body>
> <m:searchRetrieve xmlns:m="urn:z3950:ZNG_Prototype1"><query
> xsi:type="ns0:string">title=smith</query><startRecord
> xsi:type="ns0:int">1</startRecord><maximumRecords
> xsi:type="ns0:int">1</maximumRecords><responseSchema
> xsi:nil="true"/><recordSchema
> xsi:nil="true"/></m:searchRetrieve></SOAP-ENV:Body>
> </SOAP-ENV:Envelope>
>
>
> HTTP RESPONSE:
>
> HTTP/1.1 200
> Accept-Ranges: bytes
> Content-Length: 1593
> Content-Type: text/xml
> Date: Mon, 19 Nov 2001 04:04:38 GMT
> Server: simwebs/3.1.9
>
> <?xml version="1.0"?>
> <SOAP-ENV:Envelope
> SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
>
> xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
> xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:ns0="http://www.w3.org/1999/XMLSchema"
> xmlns:ns1="urn:z3950:ZNG_Prototype1"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <SOAP-ENV:Body>
> <m:searchRetrieveResponse
> xmlns:m="urn:z3950:ZNG_Prototype1"><return
> xsi:type="ns1:searchRetrieveResponse"><resultSetReference
> xsi:type="ns1:resultSetReference"><resultSetName
> xsi:type="xsd:string">default</resultSetName><resultSetTTL
> xsi:type="xsd:duration">P0DT00H05M00S</resultSetTTL></resultSe
> tReference><totalHits
> xsi:type="xsd:int">1</totalHits><records
> xsi:type="SOAP-ENC:Array"
> SOAP-ENC:arrayType="ns1:record[1]"><record
> xsi:type="ns1:record"><schema
> xsi:type="xsd:string">SUTRS</schema><recordData
> xsi:type="xsd:string">MARC:
>
> 041 0 a eng
> 100 1 a Bierce, Ambrose
> d 1842-1914?
> 245 00 a Can such things be
> 260 b Johnathan Cape and Harrison Smith
> c 1909
> 440 a Internet Wiretap Edition
> 856 s 339k
> u
> gopher://wiretap.spies.com:70/00/Library/Classic/cansuch.txt
> 956 b 1909
> 958 a Crowley, Rebecca
> b [log in to unmask]
> 959 a Fiction
> </recordData></record></records><status
> xsi:type="ns1:status"><statusCode
> xsi:type="xsd:int">0</statusCode><diagnostic xsi:nil="true"
> xsi:null="1"/></status></return></m:searchRetrieveResponse>
> </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>
>