You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@xml.apache.org by Graham Cunningham <gr...@kinetic.ch> on 2001/03/12 11:11:25 UTC

MSSoap Toolkit 2.0 Beta 2

I am having problems with the encodingStyle when using the low level api
from C++, it generates the following request which as you can see has an
encodingStyle = "", Using apache on the server side I get an error cause it
cant work out which deserializer to use, I cant see a way to not output this
blank string for the encodingStyle (well the docs say "" or NULL but "" just
comes out as is and NULL gives a compile error) so what entry for
encodingStyle can I use to get ms and apache to work together.

Request :-

POST /soap/servlet/rpcrouter HTTP/1.1
Content-Type: text/xml
Host: localhost
SOAPAction: "urn:manu-stink"
Content-Length: 448

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<SOAP-ENV:Envelope
SOAP-ENV:encodingStyle=""
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body
SOAP-ENV:encodingStyle="">
<dalvany:getName xmlns:dalvany="urn:manu-stink" SOAP-ENV:encodingStyle="">
 <dalvany:param1 SOAP-ENV:encodingStyle="">5</dalvany:param1>
 <dalvany:param2 SOAP-ENV:encodingStyle="">10</dalvany:param2>
</dalvany:getName></SOAP-ENV:Body>
</SOAP-ENV:Envelope>

RESPONSE:
HTTP/1.1 400 Bad
Date: Mon, 12 Mar 2001 10:02:25 GMT
Server: Apache/1.3.17 (Win32) mod_jk
Content-Length: 547
Set-Cookie2: JSESSIONID=kubt4lgm01;Version=1;Discard;Path="/soap"
Set-Cookie: JSESSIONID=kubt4lgm01;Path=/soap
Servlet-Engine: Tomcat Web Server/3.2.1 (JSP 1.1; Servlet 2.2; Java 1.2.2;
Windows NT 5.0 x86; java.vendor=Sun Microsystems Inc.)
Connection: close
Content-Type: text/xml; charset=utf-8

<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/1999/XMLSchema">

<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Client</faultcode>
<faultstring>No Deserializer found to deserialize a
'http://schemas.xmlsoap.org/soap/envelope/:Parameter' using encoding style
''.</faultstring>
<faultactor>/soap/servlet/rpcrouter</faultactor>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>




RE: MSSoap Toolkit 2.0 Beta 2

Posted by Shu <sh...@esker.fr>.
You can use "http://schemas.xmlsoap.org/soap/encoding/" for encodingStyle
  -----Message d'origine-----
  De : Graham Cunningham [mailto:graham.cunningham@kinetic.ch]
  Envoyé : lundi 12 mars 2001 11:11
  À : soap
  Objet : MSSoap Toolkit 2.0 Beta 2


  I am having problems with the encodingStyle when using the low level api
from C++, it generates the following request which as you can see has an
encodingStyle = "", Using apache on the server side I get an error cause it
cant work out which deserializer to use, I cant see a way to not output this
blank string for the encodingStyle (well the docs say "" or NULL but "" just
comes out as is and NULL gives a compile error) so what entry for
encodingStyle can I use to get ms and apache to work together.

  Request :-

  POST /soap/servlet/rpcrouter HTTP/1.1
  Content-Type: text/xml
  Host: localhost
  SOAPAction: "urn:manu-stink"
  Content-Length: 448

  <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  <SOAP-ENV:Envelope
  SOAP-ENV:encodingStyle=""
  xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
  <SOAP-ENV:Body
  SOAP-ENV:encodingStyle="">
  <dalvany:getName xmlns:dalvany="urn:manu-stink" SOAP-ENV:encodingStyle="">
   <dalvany:param1 SOAP-ENV:encodingStyle="">5</dalvany:param1>
   <dalvany:param2 SOAP-ENV:encodingStyle="">10</dalvany:param2>
  </dalvany:getName></SOAP-ENV:Body>
  </SOAP-ENV:Envelope>

  RESPONSE:
  HTTP/1.1 400 Bad
  Date: Mon, 12 Mar 2001 10:02:25 GMT
  Server: Apache/1.3.17 (Win32) mod_jk
  Content-Length: 547
  Set-Cookie2: JSESSIONID=kubt4lgm01;Version=1;Discard;Path="/soap"
  Set-Cookie: JSESSIONID=kubt4lgm01;Path=/soap
  Servlet-Engine: Tomcat Web Server/3.2.1 (JSP 1.1; Servlet 2.2; Java 1.2.2;
Windows NT 5.0 x86; java.vendor=Sun Microsystems Inc.)
  Connection: close
  Content-Type: text/xml; charset=utf-8

  <?xml version='1.0' encoding='UTF-8'?>
  <SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/1999/XMLSchema">

  <SOAP-ENV:Body>
  <SOAP-ENV:Fault>
  <faultcode>SOAP-ENV:Client</faultcode>
  <faultstring>No Deserializer found to deserialize a
'http://schemas.xmlsoap.org/soap/envelope/:Parameter' using encoding style
''.</faultstring>
  <faultactor>/soap/servlet/rpcrouter</faultactor>
  </SOAP-ENV:Fault>
  </SOAP-ENV:Body>
  </SOAP-ENV:Envelope>




RE: MSSoap Toolkit 2.0 Beta 2

Posted by Shu <sh...@esker.fr>.
You can use "http://schemas.xmlsoap.org/soap/encoding/" for encodingStyle
  -----Message d'origine-----
  De : Graham Cunningham [mailto:graham.cunningham@kinetic.ch]
  Envoyé : lundi 12 mars 2001 11:11
  À : soap
  Objet : MSSoap Toolkit 2.0 Beta 2


  I am having problems with the encodingStyle when using the low level api
from C++, it generates the following request which as you can see has an
encodingStyle = "", Using apache on the server side I get an error cause it
cant work out which deserializer to use, I cant see a way to not output this
blank string for the encodingStyle (well the docs say "" or NULL but "" just
comes out as is and NULL gives a compile error) so what entry for
encodingStyle can I use to get ms and apache to work together.

  Request :-

  POST /soap/servlet/rpcrouter HTTP/1.1
  Content-Type: text/xml
  Host: localhost
  SOAPAction: "urn:manu-stink"
  Content-Length: 448

  <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  <SOAP-ENV:Envelope
  SOAP-ENV:encodingStyle=""
  xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
  <SOAP-ENV:Body
  SOAP-ENV:encodingStyle="">
  <dalvany:getName xmlns:dalvany="urn:manu-stink" SOAP-ENV:encodingStyle="">
   <dalvany:param1 SOAP-ENV:encodingStyle="">5</dalvany:param1>
   <dalvany:param2 SOAP-ENV:encodingStyle="">10</dalvany:param2>
  </dalvany:getName></SOAP-ENV:Body>
  </SOAP-ENV:Envelope>

  RESPONSE:
  HTTP/1.1 400 Bad
  Date: Mon, 12 Mar 2001 10:02:25 GMT
  Server: Apache/1.3.17 (Win32) mod_jk
  Content-Length: 547
  Set-Cookie2: JSESSIONID=kubt4lgm01;Version=1;Discard;Path="/soap"
  Set-Cookie: JSESSIONID=kubt4lgm01;Path=/soap
  Servlet-Engine: Tomcat Web Server/3.2.1 (JSP 1.1; Servlet 2.2; Java 1.2.2;
Windows NT 5.0 x86; java.vendor=Sun Microsystems Inc.)
  Connection: close
  Content-Type: text/xml; charset=utf-8

  <?xml version='1.0' encoding='UTF-8'?>
  <SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/1999/XMLSchema">

  <SOAP-ENV:Body>
  <SOAP-ENV:Fault>
  <faultcode>SOAP-ENV:Client</faultcode>
  <faultstring>No Deserializer found to deserialize a
'http://schemas.xmlsoap.org/soap/envelope/:Parameter' using encoding style
''.</faultstring>
  <faultactor>/soap/servlet/rpcrouter</faultactor>
  </SOAP-ENV:Fault>
  </SOAP-ENV:Body>
  </SOAP-ENV:Envelope>