Advertisement
Guest User

Untitled

a guest
Feb 25th, 2017
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. $str = '<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">';
  2. $str .= '<soapenv:Header/>';
  3. $str .= '<soapenv:Body>';
  4. $str .= '<Username>uname1</Username>';
  5. $str .= '<Password>upassword1</Password>';
  6. $str .= '<RequestType>GetDiamonds</RequestType>';
  7. $str .= '<ClientId>51</ClientId>';
  8. $str .= '<MySoapReq>';
  9. $str .= '<Params>';
  10. $str .= '<Diamond_ID>%18112%</Diamond_ID>';
  11. $str .= '<Diamond_ID>%1625%</Diamond_ID>';
  12. $str .= '<Diamond_ID>%18625%</Diamond_ID>';
  13. $str .= '</Params>';
  14. $str .= '</MySoapReq>';
  15. $str .= '</soapenv:Body>';
  16. $str .= '</soapenv:Envelope>';
  17.  
  18. $client = new SoapClient(null, array('location' => 'http://localhost:8080/testsoap',
  19. 'uri'=>'http://localhost:8080/testsoap'
  20. ));
  21.  
  22. $return = $client->__soapCall("GetDiamonds",
  23. array(new SoapParam($str))
  24. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement