Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2014
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.42 KB | None | 0 0
  1. Private Sub Command3_Click()
  2.  
  3.  
  4. Dim SoapClient As MSSOAPLib30.SoapClient30
  5. Set SoapClient = New MSSOAPLib30.SoapClient30
  6.  
  7.  
  8. Dim WSDLPath As String
  9. WSDLPath = "http://127.0.0.1/soap/apaja.php?wsdl"
  10. Call SoapClient.MSSoapInit(WSDLPath)
  11.  
  12. Dim bar() As cobaData
  13.  
  14. bar = SoapClient.Get_Test_Data()
  15. Print bar
  16.  
  17. End Sub
  18.  
  19. <?xml version="1.0" encoding="windows-1252"?>
  20. <definitions xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="urn:Testing_Service" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="urn:Testing_Service">
  21. <types>
  22. <xsd:schema targetNamespace="urn:Testing_Service">
  23. <xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
  24. <xsd:import namespace="http://schemas.xmlsoap.org/wsdl/"/>
  25. <xsd:complexType name="MyTableData">
  26. <xsd:all>
  27. <xsd:element name="lId" type="xsd:string"/>
  28. <xsd:element name="sValue" type="xsd:string"/>
  29. <xsd:element name="sText" type="xsd:string"/>
  30. </xsd:all>
  31. </xsd:complexType>
  32. <xsd:complexType name="MyTableArray">
  33. <xsd:complexContent>
  34. <xsd:restriction base="SOAP-ENC:Array">
  35. <xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="tns:MyTableData[]"/>
  36. </xsd:restriction>
  37. </xsd:complexContent>
  38. </xsd:complexType>
  39. </xsd:schema>
  40. </types>
  41. <message name="Say_HelloRequest">
  42. <part name="name" type="xsd:string"/></message>
  43. <message name="Say_HelloResponse">
  44. <part name="return" type="xsd:string"/></message>
  45. <message name="Get_Test_DataRequest"/>
  46. <message name="Get_Test_DataResponse">
  47. <part name="return" type="tns:MyTableArray"/></message>
  48. <portType name="Testing_ServicePortType">
  49. <operation name="Say_Hello">
  50. <documentation>Sends a greeting with your name!</documentation>
  51. <input message="tns:Say_HelloRequest"/>
  52. <output message="tns:Say_HelloResponse"/>
  53. </operation>
  54. <operation name="Get_Test_Data">
  55. <documentation> Get all the data from test_table.</documentation>
  56. <input message="tns:Get_Test_DataRequest"/>
  57. <output message="tns:Get_Test_DataResponse"/>
  58. </operation>
  59. </portType>
  60. <binding name="Testing_ServiceBinding" type="tns:Testing_ServicePortType">
  61. <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
  62. <operation name="Say_Hello">
  63. <soap:operation soapAction="urn:Testing_Service#hello" style="rpc"/>
  64. <input><soap:body use="encoded" namespace="urn:Testing_Service" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input>
  65. <output><soap:body use="encoded" namespace="urn:Testing_Service" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output>
  66. </operation>
  67. <operation name="Get_Test_Data">
  68. <soap:operation soapAction="http://127.0.0.1/soap/apaja.php/Get_Test_Data" style="rpc"/>
  69. <input><soap:body use="encoded" namespace="urn:Testing_Service" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input>
  70. <output><soap:body use="encoded" namespace="urn:Testing_Service" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output>
  71. </operation>
  72. </binding>
  73. <service name="Testing_Service">
  74. <port name="Testing_ServicePort" binding="tns:Testing_ServiceBinding">
  75. <soap:address location="http://127.0.0.1/soap/apaja.php"/>
  76. </port>
  77. </service>
  78. </definitions>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement