2011-10-07 1 views
2
내가 savon 0.9.7 루비 1.8.7를 사용하고 있습니다

하게 실패Savon 요청,이 요청

SOAPAction: http://xx.xx.xx.xx/services/1, 
Content-Type: text/xml;charset=UTF-8, 
Content-Length: 526 

<?xml version="1.0" encoding="UTF-8"?> 
<env:Envelope xmlns:wsdl="http://xx.xx.xx.xx/services" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ins0="http://xx.xx.xx.xx/services" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"> 
    <env:Body> 
    <ins0:Body3DGeneration> 
     <ins0:path>adsa</ins0:path> 
     <ins0:measures>assaasd</ins0:measures> 
     <ins0:landmarks>adsd</ins0:landmarks> 
    </ins0:Body3DGeneration> 
    </env:Body> 
</env:Envelope> 

을하지만 서버는 같은 것을 필요 것을 :

:

Content-Type: text/xml; charset=utf-8 
Content-Length: length 
SOAPAction: "http://xx.xx.xx.xx/services/1" 

<?xml version="1.0" encoding="utf-8"?> 
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> 
    <soap:Body> 
    <Body3DGeneration xmlns="http://xx.xx.xx.xx/services"> 
     <path>string</path> 
     <landmarks>string</landmarks> 
     <measures>string</measures> 
    </Body3DGeneration> 
    </soap:Body> 
</soap:Envelope> 

나는 다음 오류를 받고 있어요

도와 주시겠습니까? 나는 좋은 savon 요청을하지는 않는다고 생각하지만 문서에서 아무 것도 못 찾는다. 당신은 원시 쿼리 예를

response = client.request do |soap| 
     soap.xml = '<?xml version="1.0" encoding="UTF-8"?>....' 
     http.headers["SOAPAction"] = "http://xx.xx.xx.xx/services/1" 
    end 
+0

죄송합니다 사람을 사용하여 서버를 확인할 수 있습니다

decay

답변

1
가이 오류는 서버 응답이며, 매개 변수가 잘못!