Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $str = '<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">';
- $str .= '<soapenv:Header/>';
- $str .= '<soapenv:Body>';
- $str .= '<Username>uname1</Username>';
- $str .= '<Password>upassword1</Password>';
- $str .= '<RequestType>GetDiamonds</RequestType>';
- $str .= '<ClientId>51</ClientId>';
- $str .= '<MySoapReq>';
- $str .= '<Params>';
- $str .= '<Diamond_ID>%18112%</Diamond_ID>';
- $str .= '<Diamond_ID>%1625%</Diamond_ID>';
- $str .= '<Diamond_ID>%18625%</Diamond_ID>';
- $str .= '</Params>';
- $str .= '</MySoapReq>';
- $str .= '</soapenv:Body>';
- $str .= '</soapenv:Envelope>';
- $client = new SoapClient(null, array('location' => 'http://localhost:8080/testsoap',
- 'uri'=>'http://localhost:8080/testsoap'
- ));
- $return = $client->__soapCall("GetDiamonds",
- array(new SoapParam($str))
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement