I am trying to access a web service (two files below). The client uses ASP.NET/C# for its web architecture. I can add a web link, but for some reason I cannot create a proxy class for the wsdl file. The goal is to use the function in the server.php file so that I can use xmlstring to display the data on the ASP.NET website. Any help would be greatly appreciated. Many thanks
server.php file. This file has a php function that retrieves data from mysql db, and the function returns the data as an XML string.
<?php
This is the WSDL file associated with the server.php file.
<?xml version ='1.0' encoding ='UTF-8' ?> <definitions name="MyWebService" targetNamespace="http://cet-apache-04.cet.bolton.ac.uk/student/mib1bee/CST3017/assignment/scenario1/service.wsdl" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://cet-apache-04.cet.bolton.ac.uk/student/mib1bee/CST3017/assignment/scenario1/service.wsdl" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <message name="getXML_Request"> <part name="input" /> </message> <message name="getXML_Response"> <part name="xmlString" type="xsd:string"/> </message> <portType name="myWebService_PortType"> <operation name="getXML"> <input message="tns:getXML_Request"/> <output message="tns:getXML_Response"/> </operation> </portType> <binding name="myWebService_Binding" type="tns:myWebService_PortType"> <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> <operation name="getXML"> <input> <soap:body use="literal"/> </input> <output> <soap:body use="literal"/> </output> </operation> </binding> <service name="myWebService_Service"> <port name="myWebService_Port" binding="tns:myWebService_Binding"> <soap:address location="http://cet-apache-04.cet.bolton.ac.uk/student/mib1bee/CST3017/assignment/scenario1/server.php"/> </port> </service> </definitions>
source share