Guest User

Untitled

a guest
Dec 29th, 2017
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.66 KB | None | 0 0
  1. site_url/soap?wsdl_list=1
  2.  
  3. <masteringSampleModuleItemRepositoryV1>
  4. <wsdl_endpoint>
  5. http://www.magentolocal.com/soap/default?wsdl&services=masteringSampleModuleItemRepositoryV1
  6. </wsdl_endpoint>
  7. </masteringSampleModuleItemRepositoryV1>
  8.  
  9. <definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://www.magentolocal.com/soap/default?services=masteringSampleModuleItemRepositoryV1" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" name="MagentoWSDL" targetNamespace="http://www.magentolocal.com/soap/default?services=masteringSampleModuleItemRepositoryV1">
  10. <types>
  11. <xsd:schema targetNamespace="http://www.magentolocal.com/soap/default?services=masteringSampleModuleItemRepositoryV1">
  12. <xsd:element name="GenericFault" type="tns:GenericFault"/>
  13. <xsd:complexType name="GenericFaultParameter">
  14. <xsd:sequence>
  15. <xsd:element name="key" minOccurs="1" maxOccurs="1" type="xsd:string">
  16. <xsd:annotation>
  17. <xsd:documentation/>
  18. <xsd:appinfo xmlns:inf="http://www.magentolocal.com/soap/default?services=masteringSampleModuleItemRepositoryV1">
  19. <inf:maxLength/>
  20. </xsd:appinfo>
  21. </xsd:annotation>
  22. </xsd:element>
  23. <xsd:element name="value" minOccurs="1" maxOccurs="1" type="xsd:string">
  24. <xsd:annotation>
  25. <xsd:documentation/>
  26. <xsd:appinfo xmlns:inf="http://www.magentolocal.com/soap/default?services=masteringSampleModuleItemRepositoryV1">
  27. <inf:maxLength/>
  28. </xsd:appinfo>
  29. </xsd:annotation>
  30. </xsd:element>
  31. </xsd:sequence>
  32. </xsd:complexType>
  33. <xsd:complexType name="ArrayOfGenericFaultParameter">
  34. <xsd:annotation>
  35. <xsd:documentation>An array of GenericFaultParameter items.</xsd:documentation>
  36. <xsd:appinfo xmlns:inf="http://www.magentolocal.com/soap/default?services=masteringSampleModuleItemRepositoryV1"/>
  37. </xsd:annotation>
  38. <xsd:sequence>
  39. <xsd:element name="item" minOccurs="0" maxOccurs="unbounded" type="tns:GenericFaultParameter">
  40. <xsd:annotation>
  41. <xsd:documentation>An item of ArrayOfGenericFaultParameter.</xsd:documentation>
  42. <xsd:appinfo xmlns:inf="http://www.magentolocal.com/soap/default?services=masteringSampleModuleItemRepositoryV1"/>
  43. </xsd:annotation>
  44. </xsd:element>
  45. </xsd:sequence>
  46. </xsd:complexType>
  47. <xsd:complexType name="WrappedError">
  48. <xsd:sequence>
  49. <xsd:element name="message" minOccurs="1" maxOccurs="1" type="xsd:string">
  50. <xsd:annotation>
  51. <xsd:documentation/>
  52. <xsd:appinfo xmlns:inf="http://www.magentolocal.com/soap/default?services=masteringSampleModuleItemRepositoryV1">
  53. <inf:maxLength/>
  54. </xsd:appinfo>
  55. </xsd:annotation>
  56. </xsd:element>
  57. <xsd:element name="parameters" type="tns:ArrayOfGenericFaultParameter" minOccurs="0">
  58. <xsd:annotation>
  59. <xsd:documentation>Message parameters.</xsd:documentation>
  60. <xsd:appinfo xmlns:inf="http://www.magentolocal.com/soap/default?services=masteringSampleModuleItemRepositoryV1">
  61. <inf:natureOfType>array</inf:natureOfType>
  62. </xsd:appinfo>
  63. </xsd:annotation>
  64. </xsd:element>
  65. </xsd:sequence>
  66. </xsd:complexType>
  67. <xsd:complexType name="ArrayOfWrappedError">
  68. <xsd:annotation>
  69. <xsd:documentation>An array of WrappedError items.</xsd:documentation>
  70. <xsd:appinfo xmlns:inf="http://www.magentolocal.com/soap/default?services=masteringSampleModuleItemRepositoryV1"/>
  71. </xsd:annotation>
  72. <xsd:sequence>
  73. <xsd:element name="item" minOccurs="0" maxOccurs="unbounded" type="tns:WrappedError">
  74. <xsd:annotation>
  75. <xsd:documentation>An item of ArrayOfWrappedError.</xsd:documentation>
  76. <xsd:appinfo xmlns:inf="http://www.magentolocal.com/soap/default?services=masteringSampleModuleItemRepositoryV1"/>
  77. </xsd:annotation>
  78. </xsd:element>
  79. </xsd:sequence>
  80. </xsd:complexType>
  81. <xsd:complexType name="GenericFault">
  82. <xsd:sequence>
  83. <xsd:element name="Trace" minOccurs="0" maxOccurs="1" type="xsd:string">
  84. <xsd:annotation>
  85. <xsd:documentation>Exception calls stack trace.</xsd:documentation>
  86. <xsd:appinfo xmlns:inf="http://www.magentolocal.com/soap/default?services=masteringSampleModuleItemRepositoryV1">
  87. <inf:maxLength/>
  88. </xsd:appinfo>
  89. </xsd:annotation>
  90. </xsd:element>
  91. <xsd:element name="Parameters" type="tns:ArrayOfGenericFaultParameter" minOccurs="0">
  92. <xsd:annotation>
  93. <xsd:documentation>Additional exception parameters.</xsd:documentation>
  94. <xsd:appinfo xmlns:inf="http://www.magentolocal.com/soap/default?services=masteringSampleModuleItemRepositoryV1">
  95. <inf:natureOfType>array</inf:natureOfType>
  96. </xsd:appinfo>
  97. </xsd:annotation>
  98. </xsd:element>
  99. <xsd:element name="WrappedErrors" type="tns:ArrayOfWrappedError" minOccurs="0">
  100. <xsd:annotation>
  101. <xsd:documentation>Additional wrapped errors.</xsd:documentation>
  102. <xsd:appinfo xmlns:inf="http://www.magentolocal.com/soap/default?services=masteringSampleModuleItemRepositoryV1">
  103. <inf:natureOfType>array</inf:natureOfType>
  104. </xsd:appinfo>
  105. </xsd:annotation>
  106. </xsd:element>
  107. </xsd:sequence>
  108. </xsd:complexType>
  109. <xsd:complexType name="FrameworkDataImageContentInterface">
  110. <xsd:annotation>
  111. <xsd:documentation>Image Content data interface</xsd:documentation>
  112. <xsd:appinfo xmlns:inf="http://www.magentolocal.com/soap/default?services=masteringSampleModuleItemRepositoryV1"/>
  113. </xsd:annotation>
  114. <xsd:sequence>
  115. <xsd:element name="base64EncodedData" minOccurs="1" maxOccurs="1" type="xsd:string">
  116. <xsd:annotation>
  117. <xsd:documentation>Media data (base64 encoded content)</xsd:documentation>
  118. <xsd:appinfo xmlns:inf="http://www.magentolocal.com/soap/default?services=masteringSampleModuleItemRepositoryV1">
  119. <inf:maxLength/>
  120. </xsd:appinfo>
  121. </xsd:annotation>
  122. </xsd:element>
  123. <xsd:element name="type" minOccurs="1" maxOccurs="1" type="xsd:string">
  124. <xsd:annotation>
  125. <xsd:documentation>MIME type</xsd:documentation>
  126. <xsd:appinfo xmlns:inf="http://www.magentolocal.com/soap/default?services=masteringSampleModuleItemRepositoryV1">
  127. <inf:maxLength/>
  128. </xsd:appinfo>
  129. </xsd:annotation>
  130. </xsd:element>
  131. <xsd:element name="name" minOccurs="1" maxOccurs="1" type="xsd:string">
  132. <xsd:annotation>
  133. <xsd:documentation>Image name</xsd:documentation>
  134. <xsd:appinfo xmlns:inf="http://www.magentolocal.com/soap/default?services=masteringSampleModuleItemRepositoryV1">
  135. <inf:maxLength/>
  136. </xsd:appinfo>
  137. </xsd:annotation>
  138. </xsd:element>
  139. </xsd:sequence>
  140. </xsd:complexType>
  141. <xsd:complexType name="ArrayOfString">
  142. <xsd:annotation>
  143. <xsd:documentation>An array of string items.</xsd:documentation>
  144. <xsd:appinfo xmlns:inf="http://www.magentolocal.com/soap/default?services=masteringSampleModuleItemRepositoryV1"/>
  145. </xsd:annotation>
  146. <xsd:sequence>
  147. <xsd:element name="item" minOccurs="0" maxOccurs="unbounded" type="xsd:string">
  148. <xsd:annotation>
  149. <xsd:documentation>An item of ArrayOfString.</xsd:documentation>
  150. <xsd:appinfo xmlns:inf="http://www.magentolocal.com/soap/default?services=masteringSampleModuleItemRepositoryV1">
  151. <inf:maxLength/>
  152. </xsd:appinfo>
  153. </xsd:annotation>
  154. </xsd:element>
  155. </xsd:sequence>
  156. </xsd:complexType>
  157. <xsd:complexType name="FrameworkDataVideoContentInterface">
  158. <xsd:annotation>
  159. <xsd:documentation>Video Content data interface</xsd:documentation>
  160. <xsd:appinfo xmlns:inf="http://www.magentolocal.com/soap/default?services=masteringSampleModuleItemRepositoryV1"/>
  161. </xsd:annotation>
  162. <xsd:sequence>
  163. <xsd:element name="mediaType" minOccurs="1" maxOccurs="1" type="xsd:string">
  164. <xsd:annotation>
  165. <xsd:documentation>MIME type</xsd:documentation>
  166. <xsd:appinfo xmlns:inf="http://www.magentolocal.com/soap/default?services=masteringSampleModuleItemRepositoryV1">
  167. <inf:maxLength/>
  168. </xsd:appinfo>
  169. </xsd:annotation>
  170. </xsd:element>
  171. <xsd:element name="videoProvider" minOccurs="1" maxOccurs="1" type="xsd:string">
  172. <xsd:annotation>
  173. <xsd:documentation>Provider</xsd:documentation>
  174. <xsd:appinfo xmlns:inf="http://www.magentolocal.com/soap/default?services=masteringSampleModuleItemRepositoryV1">
  175. <inf:maxLength/>
  176. </xsd:appinfo>
  177. </xsd:annotation>
  178. </xsd:element>
  179. <xsd:element name="videoUrl" minOccurs="1" maxOccurs="1" type="xsd:string">
  180. <xsd:annotation>
  181. <xsd:documentation>Video URL</xsd:documentation>
  182. <xsd:appinfo xmlns:inf="http://www.magentolocal.com/soap/default?services=masteringSampleModuleItemRepositoryV1">
  183. <inf:maxLength/>
  184. </xsd:appinfo>
  185. </xsd:annotation>
  186. </xsd:element>
  187. <xsd:element name="videoTitle" minOccurs="1" maxOccurs="1" type="xsd:string">
  188. <xsd:annotation>
  189. <xsd:documentation>Title</xsd:documentation>
  190. <xsd:appinfo xmlns:inf="http://www.magentolocal.com/soap/default?services=masteringSampleModuleItemRepositoryV1">
  191. <inf:maxLength/>
  192. </xsd:appinfo>
  193. </xsd:annotation>
  194. </xsd:element>
  195. <xsd:element name="videoDescription" minOccurs="1" maxOccurs="1" type="xsd:string">
  196. <xsd:annotation>
  197. <xsd:documentation>Video Description</xsd:documentation>
  198. <xsd:appinfo xmlns:inf="http://www.magentolocal.com/soap/default?services=masteringSampleModuleItemRepositoryV1">
  199. <inf:maxLength/>
  200. </xsd:appinfo>
  201. </xsd:annotation>
  202. </xsd:element>
  203. <xsd:element name="videoMetadata" minOccurs="1" maxOccurs="1" type="xsd:string">
  204. <xsd:annotation>
  205. <xsd:documentation>Metadata</xsd:documentation>
  206. <xsd:appinfo xmlns:inf="http://www.magentolocal.com/soap/default?services=masteringSampleModuleItemRepositoryV1">
  207. <inf:maxLength/>
  208. </xsd:appinfo>
  209. </xsd:annotation>
  210. </xsd:element>
  211. </xsd:sequence>
  212. </xsd:complexType>
  213. <xsd:complexType name="CatalogDataProductAttributeMediaGalleryEntryExtensionInterface">
  214. <xsd:annotation>
  215. <xsd:documentation>
  216. ExtensionInterface class for @see MagentoCatalogApiDataProductAttributeMediaGalleryEntryInterface
  217. </xsd:documentation>
  218. <xsd:appinfo xmlns:inf="http://www.magentolocal.com/soap/default?services=masteringSampleModuleItemRepositoryV1"/>
  219. </xsd:annotation>
  220. <xsd:sequence>
  221. <xsd:element name="videoContent" minOccurs="0" maxOccurs="1" type="tns:FrameworkDataVideoContentInterface">
  222. <xsd:annotation>
  223. <xsd:documentation/>
  224. <xsd:appinfo xmlns:inf="http://www.magentolocal.com/soap/default?services=masteringSampleModuleItemRepositoryV1"/>
  225. </xsd:annotation>
  226. </xsd:element>
  227. </xsd:sequence>
  228. </xsd:complexType>
  229. <xsd:complexType name="CatalogDataProductAttributeMediaGalleryEntryInterface">
  230. <xsd:annotation>
  231. <xsd:documentation/>
  232. <xsd:appinfo xmlns:inf="http://www.magentolocal.com/soap/default?services=masteringSampleModuleItemRepositoryV1"/>
  233. </xsd:annotation>
  234. <xsd:sequence>
  235. <xsd:element name="id" minOccurs="0" maxOccurs="1" type="xsd:int">
  236. <xsd:annotation>
  237. <xsd:documentation>Gallery entry ID</xsd:documentation>
  238. <xsd:appinfo xmlns:inf="http://www.magentolocal.com/soap/default?services=masteringSampleModuleItemRepositoryV1">
  239. <inf:min/>
  240. <inf:max/>
  241. </xsd:appinfo>
  242. </xsd:annotation>
  243. </xsd:element>
  244. <xsd:element name="mediaType" minOccurs="1" maxOccurs="1" type="xsd:string">
  245. <xsd:annotation>
  246. <xsd:documentation>Media type</xsd:documentation>
  247. <xsd:appinfo xmlns:inf="http://www.magentolocal.com/soap/default?services=masteringSampleModuleItemRepositoryV1">
  248. <inf:maxLength/>
  249. </xsd:appinfo>
  250. </xsd:annotation>
  251. </xsd:element>
  252. <xsd:element name="label" minOccurs="1" maxOccurs="1" type="xsd:string">
  253. <xsd:annotation>
  254. <xsd:documentation>Gallery entry alternative text</xsd:documentation>
  255. <xsd:appinfo xmlns:inf="http://www.magentolocal.com/soap/default?services=masteringSampleModuleItemRepositoryV1">
  256. <inf:maxLength/>
  257. </xsd:appinfo>
  258. </xsd:annotation>
  259. </xsd:element>
  260. <xsd:element name="position" minOccurs="1" maxOccurs="1" type="xsd:int">
  261. <xsd:annotation>
  262. <xsd:documentation>Gallery entry position (sort order)</xsd:documentation>
  263. <xsd:appinfo xmlns:inf="http://www.magentolocal.com/soap/default?services=masteringSampleModuleItemRepositoryV1">
  264. <inf:min/>
  265. <inf:max/>
  266. </xsd:appinfo>
  267. </xsd:annotation>
  268. </xsd:element>
  269. <xsd:element name="disabled" minOccurs="1" maxOccurs="1" type="xsd:boolean">
  270. <xsd:annotation>
  271. <xsd:documentation>If gallery entry is hidden from product page</xsd:documentation>
  272. <xsd:appinfo xmlns:inf="http://www.magentolocal.com/soap/default?services=masteringSampleModuleItemRepositoryV1">
  273. <inf:default>false</inf:default>
  274. </xsd:appinfo>
  275. </xsd:annotation>
  276. </xsd:element>
  277. <xsd:element name="types" type="tns:ArrayOfString">
  278. <xsd:annotation>
  279. <xsd:documentation>
  280. Gallery entry image types (thumbnail, image, small_image etc)
  281. </xsd:documentation>
  282. <xsd:appinfo xmlns:inf="http://www.magentolocal.com/soap/default?services=masteringSampleModuleItemRepositoryV1">
  283. <inf:natureOfType>array</inf:natureOfType>
  284. </xsd:appinfo>
  285. </xsd:annotation>
  286. </xsd:element>
  287. <xsd:element name="file" minOccurs="0" maxOccurs="1" type="xsd:string">
  288. <xsd:annotation>
  289. <xsd:documentation>File path</xsd:documentation>
  290. <xsd:appinfo xmlns:inf="http://www.magentolocal.com/soap/default?services=masteringSampleModuleItemRepositoryV1">
  291. <inf:maxLength/>
  292. </xsd:appinfo>
  293. </xsd:annotation>
  294. </xsd:element>
  295. <xsd:element name="content" minOccurs="0" maxOccurs="1" type="tns:FrameworkDataImageContentInterface">
  296. <xsd:annotation>
  297. <xsd:documentation>Media gallery content</xsd:documentation>
  298. <xsd:appinfo xmlns:inf="http://www.magentolocal.com/soap/default?services=masteringSampleModuleItemRepositoryV1"/>
  299. </xsd:annotation>
  300. </xsd:element>
  301. <xsd:element name="extensionAttributes" minOccurs="0" maxOccurs="1" type="tns:CatalogDataProductAttributeMediaGalleryEntryExtensionInterface">
  302. <xsd:annotation>
  303. <xsd:documentation>
  304. Existing extension attributes object or create a new one.
  305. </xsd:documentation>
  306. <xsd:appinfo xmlns:inf="http://www.magentolocal.com/soap/default?services=masteringSampleModuleItemRepositoryV1"/>
  307. </xsd:annotation>
  308. </xsd:element>
  309. </xsd:sequence>
  310. </xsd:complexType>
  311. <xsd:element name="masteringSampleModuleItemRepositoryV1GetListRequest" type="tns:MasteringSampleModuleItemRepositoryV1GetListRequest" nillable="true"/>
  312. <xsd:complexType name="MasteringSampleModuleItemRepositoryV1GetListRequest">
  313. <xsd:annotation>
  314. <xsd:documentation/>
  315. <xsd:appinfo xmlns:inf="http://www.magentolocal.com/soap/default?services=masteringSampleModuleItemRepositoryV1"/>
  316. </xsd:annotation>
  317. <xsd:sequence/>
  318. </xsd:complexType>
  319. <xsd:element name="masteringSampleModuleItemRepositoryV1GetListResponse" type="tns:MasteringSampleModuleItemRepositoryV1GetListResponse"/>
  320. <xsd:complexType name="MasteringSampleModuleDataItemInterface">
  321. <xsd:annotation>
  322. <xsd:documentation/>
  323. <xsd:appinfo xmlns:inf="http://www.magentolocal.com/soap/default?services=masteringSampleModuleItemRepositoryV1"/>
  324. </xsd:annotation>
  325. <xsd:sequence>
  326. <xsd:element name="name" minOccurs="1" maxOccurs="1" type="xsd:string">
  327. <xsd:annotation>
  328. <xsd:documentation/>
  329. <xsd:appinfo xmlns:inf="http://www.magentolocal.com/soap/default?services=masteringSampleModuleItemRepositoryV1">
  330. <inf:maxLength/>
  331. <inf:callInfo>
  332. <inf:callName>masteringSampleModuleItemRepositoryV1GetList</inf:callName>
  333. <inf:returned>Always</inf:returned>
  334. </inf:callInfo>
  335. </xsd:appinfo>
  336. </xsd:annotation>
  337. </xsd:element>
  338. <xsd:element name="description" minOccurs="0" maxOccurs="1" type="xsd:string">
  339. <xsd:annotation>
  340. <xsd:documentation/>
  341. <xsd:appinfo xmlns:inf="http://www.magentolocal.com/soap/default?services=masteringSampleModuleItemRepositoryV1">
  342. <inf:maxLength/>
  343. <inf:callInfo>
  344. <inf:callName>masteringSampleModuleItemRepositoryV1GetList</inf:callName>
  345. <inf:returned>Conditionally</inf:returned>
  346. </inf:callInfo>
  347. </xsd:appinfo>
  348. </xsd:annotation>
  349. </xsd:element>
  350. </xsd:sequence>
  351. </xsd:complexType>
  352. <xsd:complexType name="ArrayOfMasteringSampleModuleDataItemInterface">
  353. <xsd:annotation>
  354. <xsd:documentation>
  355. An array of MasteringSampleModuleDataItemInterface items.
  356. </xsd:documentation>
  357. <xsd:appinfo xmlns:inf="http://www.magentolocal.com/soap/default?services=masteringSampleModuleItemRepositoryV1"/>
  358. </xsd:annotation>
  359. <xsd:sequence>
  360. <xsd:element name="item" minOccurs="0" maxOccurs="unbounded" type="tns:MasteringSampleModuleDataItemInterface">
  361. <xsd:annotation>
  362. <xsd:documentation>
  363. An item of ArrayOfMasteringSampleModuleDataItemInterface.
  364. </xsd:documentation>
  365. <xsd:appinfo xmlns:inf="http://www.magentolocal.com/soap/default?services=masteringSampleModuleItemRepositoryV1">
  366. <inf:callInfo>
  367. <inf:callName>masteringSampleModuleItemRepositoryV1GetList</inf:callName>
  368. <inf:returned>Conditionally</inf:returned>
  369. </inf:callInfo>
  370. </xsd:appinfo>
  371. </xsd:annotation>
  372. </xsd:element>
  373. </xsd:sequence>
  374. </xsd:complexType>
  375. <xsd:complexType name="MasteringSampleModuleItemRepositoryV1GetListResponse">
  376. <xsd:annotation>
  377. <xsd:documentation>
  378. Response container for the masteringSampleModuleItemRepositoryV1GetList call.
  379. </xsd:documentation>
  380. <xsd:appinfo xmlns:inf="http://www.magentolocal.com/soap/default?services=masteringSampleModuleItemRepositoryV1"/>
  381. </xsd:annotation>
  382. <xsd:sequence>
  383. <xsd:element name="result" type="tns:ArrayOfMasteringSampleModuleDataItemInterface">
  384. <xsd:annotation>
  385. <xsd:documentation/>
  386. <xsd:appinfo xmlns:inf="http://www.magentolocal.com/soap/default?services=masteringSampleModuleItemRepositoryV1">
  387. <inf:natureOfType>array</inf:natureOfType>
  388. <inf:callInfo>
  389. <inf:callName>masteringSampleModuleItemRepositoryV1GetList</inf:callName>
  390. <inf:returned>Always</inf:returned>
  391. </inf:callInfo>
  392. </xsd:appinfo>
  393. </xsd:annotation>
  394. </xsd:element>
  395. </xsd:sequence>
  396. </xsd:complexType>
  397. </xsd:schema>
  398. </types>
  399. <message name="GenericFault">
  400. <part name="messageParameters" element="tns:GenericFault"/>
  401. </message>
  402. <portType name="masteringSampleModuleItemRepositoryV1PortType">
  403. <operation name="masteringSampleModuleItemRepositoryV1GetList">
  404. <input message="tns:masteringSampleModuleItemRepositoryV1GetListRequest"/>
  405. <output message="tns:masteringSampleModuleItemRepositoryV1GetListResponse"/>
  406. <fault name="GenericFault" message="tns:GenericFault"/>
  407. </operation>
  408. </portType>
  409. <binding name="masteringSampleModuleItemRepositoryV1Binding" type="tns:masteringSampleModuleItemRepositoryV1PortType">
  410. <soap12:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
  411. <operation name="masteringSampleModuleItemRepositoryV1GetList">
  412. <soap12:operation soapAction="masteringSampleModuleItemRepositoryV1GetList"/>
  413. <input>
  414. <soap12:body use="literal"/>
  415. </input>
  416. <output>
  417. <soap12:body use="literal"/>
  418. </output>
  419. <fault name="GenericFault"/>
  420. </operation>
  421. </binding>
  422. <service name="masteringSampleModuleItemRepositoryV1Service">
  423. <port name="masteringSampleModuleItemRepositoryV1Port" binding="tns:masteringSampleModuleItemRepositoryV1Binding">
  424. <soap12:address location="http://www.magentolocal.com/soap/default?services=masteringSampleModuleItemRepositoryV1"/>
  425. </port>
  426. </service>
  427. <message name="masteringSampleModuleItemRepositoryV1GetListRequest">
  428. <part name="messageParameters" element="tns:masteringSampleModuleItemRepositoryV1GetListRequest"/>
  429. </message>
  430. <message name="masteringSampleModuleItemRepositoryV1GetListResponse">
  431. <part name="messageParameters" element="tns:masteringSampleModuleItemRepositoryV1GetListResponse"/>
  432. </message>
  433. </definitions>
  434.  
  435. <?php
  436.  
  437. class M2SoapTest {
  438.  
  439. public $wsdl_url;
  440. public $soapClient;
  441. public $context;
  442. public $shopUsername;
  443. public $shopPassword;
  444. public $session;
  445.  
  446. /**
  447. * Add a single condition, or an array of conditions to the WHERE clause of the query.
  448. *
  449. * @param mixed $conditions A string or array of where conditions.
  450. * @return JDatabaseQuery Returns this object to allow chaining.
  451. * @since 1.0
  452. */
  453. public function __construct() {
  454.  
  455. //List of availble services
  456. // $this->wsdl_url = 'http://www.magentolocal.com/soap?wsdl_list=1';
  457. //Local WSDL
  458. $this->wsdl_url = 'http://www.magentolocal.com/soap?wsdl&services=masteringSampleModuleItemRepositoryV1';
  459. // $this->shopUsername = 'featuredproduct';
  460. // $this->shopPassword = 'FeaturedProduct';
  461. $this->context = stream_context_create();
  462. $this->soapClient = new SoapClient(
  463. $this->wsdl_url, [
  464. // 'version' => SOAP_1_2,
  465. 'context' => $this->context,
  466. 'trace' => true,
  467. 'exceptions' => true,
  468. 'connection_timeout' => 500000,
  469. 'keep_alive' => false,
  470. 'cache_wsdl' => WSDL_CACHE_BOTH
  471. ]
  472. );
  473.  
  474. //Intiial Authentication on initialization of class
  475. // $this->authenticate();
  476. }
  477.  
  478. /**
  479. * Add a single condition, or an array of conditions to the WHERE clause of the query.
  480. *
  481. * @param mixed $conditions A string or array of where conditions.
  482. * @return JDatabaseQuery Returns this object to allow chaining.
  483. * @since 1.0
  484. */
  485. public function authenticate() {
  486. try {
  487. //Authenticate with shop Services
  488. $this->session = $this->soapClient->login($this->shopUsername, $this->shopPassword);
  489. return true;
  490. } catch (SoapFault $e) {
  491.  
  492. die('issue in login');
  493. echo "<pre>";
  494. print_r($e->getMessage());
  495. echo "</pre>";
  496. die();
  497. }
  498. return false;
  499. }
  500.  
  501. /**
  502. * Testing
  503. */
  504. public function testApi() {
  505. try {
  506. // $response = $this->soapClient->__getFunctions();
  507. $response = $this->soapClient->masteringSampleModuleItemRepositoryV1GetList([]);
  508. echo "<pre>";
  509. print_r($response);
  510. echo "</pre>";
  511. die();
  512. } catch (SoapFault $e) {
  513.  
  514. echo "<pre>";
  515. print_r($e->getMessage());
  516. echo "</pre>";
  517. die();
  518. }
  519. }
  520.  
  521. }
  522.  
  523. $obj = new M2SoapTest();
  524. $obj->testApi();
  525.  
  526. <pre>stdClass Object
  527. (
  528. [result] => stdClass Object
  529. (
  530. )
  531.  
  532. )
Add Comment
Please, Sign In to add comment