From: Scott N. <sni...@sc...> - 2003-04-29 16:22:29
|
Mark, I am very happy to hear that you have this working. It's an admirable effort on your part. Regarding Apache SOAP, xsi:type was originally required. However, because Microsoft's SOAP implementations have always tried to avoid it (not just doc/lit, but also rpc/encoded messages), a workaround was added by which developers could specify mappings not just between the xsi:type and Java type, but also between element name and Java type. It appears the developers have done that in this case. On 28 Apr 2003 at 17:51, Mark Tombs wrote: > > Just to let you know I got it working. Very peculiar. It seems that what= I > need to do is encode the parameter value using base64_encode, and not se= nd > the xsd:type at all! I.e. the XML looks like > > <inputData_>asdkfaspdfasdokpokpk</inputData_> > > and not > > <inputData_ xsd:type=3D"base64Binary">sdlkasjd=F6fkasdlfkajsldkj</inputD= ata_> > > I've hacked nuSoap.php to get this to work, as I can't see how to set th= e > parameter as a literal. > > I was under the impression that Apache SOAP required the xsd:type to be > supplied, but I guess I was wrong. > > thanks for your help. > > Mark. > > On Monday 28 April 2003 07.28, Mark Tombs wrote: > > This is the response I get: > > > > HTTP/1.1 500 Internal Server Error Date: Tue, 29 Apr 2003 06:22:58 GMT > > Server: Orion/1.5.2 Content-Length: 557 Set-Cookie: > > JSESSIONID=3DAEECOGNFNEEI; Path=3D/ Cache-Control: private Connection:= Close > > Content-Type: text/xml; > > charset=3Dutf-8 <?xml version=3D'1.0' encoding=3D'UTF-8'?> <SOAP-ENV:E= nvelope > > xmlns:SOAP-ENV=3D"http://schemas.xmlsoap.org/soap/envelope/" > > xmlns:xsi=3D"http://www.w3.org/1999/XMLSchema-instance" > > xmlns:xsd=3D"http://www.w3.org/1999/XMLSchema"> <SOAP-ENV:Body> > > <SOAP-ENV:Fault> <faultcode>SOAP-ENV:Client</faultcode> <faultstring>N= o > > Deserializer found to deserialize a > > 'http://www.w3.org/2001/XMLSchema:base64' using encoding style > > 'http://schemas.xmlsoap.org/soap/encoding/'.</faultstring> > > <faultactor>/niku/soap</faultactor> </SOAP-ENV:Fault> </SOAP-ENV:Body> > > </SOAP-ENV:Envelope> > > > > thanks > > > > Mark > > > > On Monday 28 April 2003 23.07, Scott Nichol wrote: > > > $param =3D new soapval('inputData_', base64_encode($xml), 'base64', > > > false, 'http://schemas.xmlsoap.org/soap/encoding/'); > > > > > > Exactly what you do get back when you try it this way? > > > > [--snip--] > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > Nusoap-general mailing list > > Nus...@li... > > https://lists.sourceforge.net/lists/listinfo/nusoap-general > > Scott Nichol Do not reply directly to this e-mail address, as it is filtered to only receive e-mail from specific mailing lists. |