Hi Marcel,

As I understand the SOAP 1.1 specification, the encodingStyle attribute is optional. The SOAP 1.2 specification is more explicit about this and explains what happens if the erncodingStyle attribute is missing:

"If no encodingStyle attribute information item is in scope for a particular element information item or the value of such an attribute information item is "http://www.w3.org/2003/05/soap-envelope/encoding/none"; then no claims are made regarding the encoding style of that element information item and its descendants."

We cannot assume in OXF that the required encoding style will always be http://schemas.xmlsoap.org/soap/encoding. So we have modified to the delegation processor to add an optional encodingStyle attribute on the operation element. If this attribute is not present, no encoding style is specified (which is the current behaviour). Now you can write:

<service id="quotes" type="webservice"
        endpoint="http://localhost:7002/~avernet/webservice/";>
    <operation nsuri="urn:avernet" name="getRandomQuote"
        encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</service>

This feature will come with OXF 2.0 when it is released. If you need a solution earlier, please let me know and I will send you an early pre-OXF 2.0 version.

Alex


Marcel Reichert wrote:
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

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

Reply via email to