I've just upgraded to Cocoon 2.1.9 so I can use CInclude POST (which had a bug 
in 2.1.8). I was trying it out with a SOAP service and I couldn't get it to 
work. I was wondering if anyone has and if so if they could show me a working 
example. I tried:

<data xmlns:cinclude="http://apache.org/cocoon/include/1.0";>
    <cinclude:includexml ignoreErrors="false">
        
<cinclude:src>http://services.xmethods.net:80/soap/servlet/rpcrouter</cinclude:src>
      <cinclude:configuration>
        <cinclude:parameter>
          <cinclude:name>method</cinclude:name>
          <cinclude:value>POST</cinclude:value>
        </cinclude:parameter>
      </cinclude:configuration>
      <cinclude:parameters>
        <cinclude:parameter>
          <cinclude:name>item</cinclude:name>
          <cinclude:value>
                <soapenv:Envelope  
                          xmlns:q0="http://www.w3.org/1999/XMLSchema";  
                          
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>  
                          <ns0:getTemp  
                          
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";  
                          xmlns:ns0="urn:xmethods-Temperature">  
                                90210
                          </ns0:getTemp>  
                          </soapenv:Body>  
                 </soapenv:Envelope>
          </cinclude:value>
        </cinclude:parameter>
      </cinclude:parameters>
    </cinclude:includexml>
  </data>

which should just return the temperature of that ZIP code (the one that most 
people use as an example :D). It returns a 500 code though. 

I was also thinking it might be the mime type... is there a way to change that 
in CInclude?

Thanks,

Gary

*****************************************************************
The information contained in this message may be confidential or 
legally privileged and is intended for the addressee only. If you 
have received this message in error or there are any problems 
please notify the originator immediately. The unauthorised use, 
disclosure, copying or alteration of this message is 
strictly forbidden.
*****************************************************************


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to