Missing encodingStyle
[email protected] Mon, 03 Mar 2003 11:12:04 +0100 (CET)
| Newsgroups | gmane.comp.java.enhydra.ksoap |
|---|---|
| Message-ID | <[email protected]> |
Hi, i'm currently trying to access a webservice which is deployed on a SunONE ApplicationServer 7 (which is nearly the same as the Sun Wireless Developer Kit). When i try to access the service, i get an "object not found"-error or something similar. When i try to access it "by hand" - this means i use XMLSpy to access the service - and use the XML which is created by ksoap, he complains about a missing encoding style. When i compare the XML there is really one attribute more in the code: SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" (SOAP-ENV is bound to "http://schemas.xmlsoap.org/soap/envelope/"). As i took a look in the source of the SoapSerializationEnvelope, i found a piece of code which is commented out: writer.attribute (Soap.ENV, "encodingStyle", encodingStyle); It is in the write(XmlSerializer) method. I wonder if this the point where this attribute should be written and if there is a possibility add this attribute by hand (i still use envelope.encodingStyle = "http://schemas.xmlsoap.org/soap/encoding/";) Thanks for help, Torsten Straßer