2013-04-25 41 views
2

我想使用ADF mobile調用SOAP請求。我的要求是:在ADF mobile中調用SAOP請求

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"><soap:Header><wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" soap:mustUnderstand="1"><wsse:UsernameToken xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><wsse:Username>INDIA</wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">welcome</wsse:Password></wsse:UsernameToken></wsse:Security></soap:Header> 
    <soap:Body xmlns:ns1="http://xmlns.oracle.com/bpel/mobile/Notificationlist"> 
     <ns1:NotificationlistRetrievalREQ> 
      <ns1:NotificationlistType>HR_OFFER</ns1:NotificationlistType> 
      <ns1:Status>TODO</ns1:Status> 
      <ns1:Mode/> 
     </ns1:NotificationlistRetrievalREQ> 
    </soap:Body> 
</soap:Envelope> 

所以,我已經調用簡單的SOAP服務,沒有安全頭。但是我不知道如何在ADF mobile中傳遞安全頭。提前致謝。

回答

0

你可以嘗試創建一個擴展SOAPProvider類Provider類,並在其中執行getAdditionalSoapHeaders方法。在此方法中設置各種標題,並修改DataControls.dcx文件以指向您的Provider類。 我在這裏解釋了一個這樣的用例blog post here.