Hello,

I am still trying to send an correct (soap)-request to my web service.
In my soap-request is one thing missing:
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/

What can I do, to insert this in my soap-request?


The example (down) with XML-Spy runs. The OXF doesn`t run.
There are 2 differences in the request (perhaps more?):
- HTTP Version (request) 1.1 <-> 1.2
- "SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding";
   is in the soap-request of OXF missing
The errormessage in OXF :
Internal Server Error (unexpected encoding style:
expected=http://schemas.xmlsoap.org/soap/encoding/, actual=)

So I think, that it is definitly the soap structure causing the error!

How can I change the structure of the soap message?

thanks and regards
Marcel


____________
***OXF***:

POST /IMMOWEBSERV/StammdatenVerwaltung HTTP/1.0
Host: pc-ju:8080
Content-Type: text/xml; charset=utf-8
SOAPAction: ""
Content-Length: 324

<?xml version="1.0" encoding="UTF-8"?>
<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>
  <m:getHallo xmlns:m="urn:targetStammdatenVerwaltung"/>
 </soapenv:Body>
</soapenv:Envelope>

HTTP/1.1 500 Internal Server Error
Content-Type: text/xml; charset="utf-8"
SOAPAction: ""
Date: Wed, 25 Jun 2003 12:54:29 GMT
Server: Apache Coyote HTTP/1.1 Connector [1.0]
Connection: close

<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/";
        xmlns:xsd="http://www.w3.org/2001/XMLSchema";
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
        xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/";
        xmlns:ns0="urn:targetStammdatenVerwaltung"
        xmlns:ns1="urn:typeStammdatenVerwaltung"
        env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";>
    <env:Body>
       <env:Fault>
          <faultcode>env:Server</faultcode>
          <faultstring>Internal Server Error
             (unexpected encoding style:
expected=http://schemas.xmlsoap.org/soap/encoding/, actual=)
          </faultstring>
       </env:Fault>
     </env:Body>
 </env:Envelope>
---------------------------------------------


*****XML-SPY*******:

POST /IMMOWEBSERV/StammdatenVerwaltung HTTP/1.1
Content-Type: text/xml
User-Agent: XML Spy
SOAPAction: ""
Host: pc-ju:8080
Content-Length: 422
Connection: Keep-Alive
Cache-Control: no-cache

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
                   xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/";
                   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
                   xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
        <SOAP-ENV:Body>
                <m:getHallo xmlns:m="urn:targetStammdatenVerwaltung"
                            
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
        </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

HTTP/1.1 200 OK
Content-Type: text/xml; charset="utf-8"
SOAPAction: ""
Transfer-Encoding: chunked
Date: Thu, 26 Jun 2003 07:54:34 GMT
Server: Apache Coyote HTTP/1.1 Connector [1.0]

<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/";
        xmlns:xsd="http://www.w3.org/2001/XMLSchema";
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
        xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/";
        xmlns:ns0="urn:targetStammdatenVerwaltung"
        xmlns:ns1="urn:typeStammdatenVerwaltung"
        env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";>
   <env:Body>
     <ns0:getHalloResponse>
        <result xsi:type="xsd:string">Hallo</result>
     </ns0:getHalloResponse>
   </env:Body>
</env:Envelope>







_______________________________________________
oxf-users mailing list
[EMAIL PROTECTED]
http://mail.orbeon.com/mailman/listinfo/oxf-users

Reply via email to