2014-12-12 2 views
0

(참고 : 나는 SOAP에 새로운 해요 그래서 분명 뭔가 누락 될 수 있습니다)루비 Savon/w : 여러 네임 스페이스로 SOAP 서비스에 이야기

내 현재 생성 된 요청은 다음과 같습니다

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tns="http://service.com/services/base" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
    <soapenv:Body> 
     <tns:someOperation> 
     <tns:suppliedParameterInstances> 
      <tns:paramName>param_name</tns:paramName> 
      <tns:instanceName>?</tns:instanceName> 
      <tns:value>Value</tns:value> 
     </tns:suppliedParameterInstances> 
     </tns:someOperation> 
    </soapenv:Body> 
</soapenv:Envelope> 

을 그리고 알려진 작업 요청에서 내 참조 XML :

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tns="http://service.com/services/base" xmlns:typ="http://type.service.com/types"> 
    <soapenv:Header/>                        
    <soapenv:Body>                         
     <tns:someOperation>                   
     <tns:suppliedParameterInstances>                   
      <typ:paramName>param_name</typ:paramName>              
      <typ:instanceName>?</typ:instanceName>                 
      <typ:value>"Value"</typ:value>               
     </tns:suppliedParameterInstances>  
     </tns:someOperation> 
    </soapenv:Body> 
</soapenv:Envelope> 

나는 WSDL을 할 수 있지만, Savon은 "TNS"을 따기해야하는지 나는 그것을 충분히 말할 읽는 방법을 모르는/" typ "(그리고 그것은 내 것이 아니에요. o 인터넷에 넘길 수는 없습니다.) 지옥, 나는이 질문에 이름을 붙이는 법을 알기에 SOAP을 잘 모릅니다 .... 어쨌든! 첫 번째 XML이 두 번째처럼 보일 때까지 Savon을 찌를 필요가 있습니다. 어떤 생각이나 내가 읽어야 할 것들의 이름?

+0

이 질문에 대한 또 다른 대답이 표시되면 즉시이 질문을 복제하여 닫아야합니다. –

+0

다른 질문에 대답이 없으므로 "닫을 수 없습니다". – Narfanator

+0

@theTinMan : 질문 중복의 기준이 아닙니다. –

답변

0

는 대답을 찾을 수 :. Replicating XML Request with Savon/Ruby

"GetList의 네임 스페이스가 올바른지 당신이 아마 작성해야하는 것은, 문제에 대한 정확한 해결책이 될 수 없습니다

soap_client.call(:get_list, 
       :attributes => {'xmlns:b'=>'http://schemas.datacontract.org/'}, 
       message: { 'ListRequest' => { 'tns:id' => 1 } } 

입니다 내가 돈 때문에 wsdl에 액세스 할 수 없으므로 테스트 할 수 없지만 솔루션의 핵심을 가져야합니다. "

+2

당신이 내 대답을 복사하면 upvote의 깔끔함을주는 것이 좋을 것입니다. –

+0

D' oh! 당신이 올바른지. – Narfanator