WSDL Generated Successfully!

WSDL file saved as: sales_service.wsdl

Service URL: http://eas.gurumm.com/sales_service.php

Namespace: http://eas.gurumm.com/sales_service

Available Operations:

WSDL Content:

<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/"
             xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
             xmlns:tns="http://eas.gurumm.com/sales_service"
             xmlns:xsd="http://www.w3.org/2001/XMLSchema"
             targetNamespace="http://eas.gurumm.com/sales_service"
             elementFormDefault="qualified">

    <!-- Type definitions -->
    <types>
        <xsd:schema targetNamespace="http://eas.gurumm.com/sales_service">
            
            <!-- Customer Type -->
            <xsd:complexType name="Customer">
                <xsd:sequence>
                    <xsd:element name="customer_id" type="xsd:int"/>
                    <xsd:element name="first_name" type="xsd:string"/>
                    <xsd:element name="last_name" type="xsd:string"/>
                    <xsd:element name="email" type="xsd:string"/>
                    <xsd:element name="phone" type="xsd:string"/>
                    <xsd:element name="address" type="xsd:string"/>
                    <xsd:element name="city" type="xsd:string"/>
                    <xsd:element name="state" type="xsd:string"/>
                    <xsd:element name="zip_code" type="xsd:string"/>
                </xsd:sequence>
            </xsd:complexType>
            
            <!-- Product Type -->
            <xsd:complexType name="Product">
                <xsd:sequence>
                    <xsd:element name="product_id" type="xsd:int"/>
                    <xsd:element name="product_name" type="xsd:string"/>
                    <xsd:element name="description" type="xsd:string"/>
                    <xsd:element name="price" type="xsd:decimal"/>
                    <xsd:element name="stock_quantity" type="xsd:int"/>
                    <xsd:element name="category" type="xsd:string"/>
                </xsd:sequence>
            </xsd:complexType>
            
            <!-- Sale Type -->
            <xsd:complexType name="Sale">
                <xsd:sequence>
                    <xsd:element name="sale_id" type="xsd:int"/>
                    <xsd:element name="customer_id" type="xsd:int"/>
                    <xsd:element name="sale_date" type="xsd:date"/>
                    <xsd:element name="total_amount" type="xsd:decimal"/>
                    <xsd:element name="payment_method" type="xsd:string"/>
                    <xsd:element name="status" type="xsd:string"/>
                </xsd:sequence>
            </xsd:complexType>
            
            <!-- Response Type -->
            <xsd:complexType name="ServiceResponse">
                <xsd:sequence>
                    <xsd:element name="success" type="xsd:boolean"/>
                    <xsd:element name="message" type="xsd:string"/>
                    <xsd:element name="data" type="xsd:anyType" minOccurs="0"/>
                </xsd:sequence>
            </xsd:complexType>
            
        </xsd:schema>
    </types>

    <!-- Message definitions -->
    <message name="createCustomerRequest">
        <part name="customerData" type="xsd:anyType"/>
    </message>
    <message name="createCustomerResponse">
        <part name="return" type="tns:ServiceResponse"/>
    </message>
    
    <message name="getCustomerRequest">
        <part name="customerId" type="xsd:int"/>
    </message>
    <message name="getCustomerResponse">
        <part name="return" type="tns:ServiceResponse"/>
    </message>
    
    <message name="createProductRequest">
        <part name="productData" type="xsd:anyType"/>
    </message>
    <message name="createProductResponse">
        <part name="return" type="tns:ServiceResponse"/>
    </message>
    
    <message name="getProductsRequest">
    </message>
    <message name="getProductsResponse">
        <part name="return" type="tns:ServiceResponse"/>
    </message>
    
    <message name="createSaleRequest">
        <part name="saleData" type="xsd:anyType"/>
    </message>
    <message name="createSaleResponse">
        <part name="return" type="tns:ServiceResponse"/>
    </message>
    
    <message name="getSaleRequest">
        <part name="saleId" type="xsd:int"/>
    </message>
    <message name="getSaleResponse">
        <part name="return" type="tns:ServiceResponse"/>
    </message>
    
    <message name="getSalesReportRequest">
        <part name="startDate" type="xsd:string"/>
        <part name="endDate" type="xsd:string"/>
    </message>
    <message name="getSalesReportResponse">
        <part name="return" type="tns:ServiceResponse"/>
    </message>

    <!-- Port Type -->
    <portType name="SalesServicePortType">
        <operation name="createCustomer">
            <input message="tns:createCustomerRequest"/>
            <output message="tns:createCustomerResponse"/>
        </operation>
        <operation name="getCustomer">
            <input message="tns:getCustomerRequest"/>
            <output message="tns:getCustomerResponse"/>
        </operation>
        <operation name="createProduct">
            <input message="tns:createProductRequest"/>
            <output message="tns:createProductResponse"/>
        </operation>
        <operation name="getProducts">
            <input message="tns:getProductsRequest"/>
            <output message="tns:getProductsResponse"/>
        </operation>
        <operation name="createSale">
            <input message="tns:createSaleRequest"/>
            <output message="tns:createSaleResponse"/>
        </operation>
        <operation name="getSale">
            <input message="tns:getSaleRequest"/>
            <output message="tns:getSaleResponse"/>
        </operation>
        <operation name="getSalesReport">
            <input message="tns:getSalesReportRequest"/>
            <output message="tns:getSalesReportResponse"/>
        </operation>
    </portType>

    <!-- Binding -->
    <binding name="SalesServiceBinding" type="tns:SalesServicePortType">
        <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
        
        <operation name="createCustomer">
            <soap:operation soapAction="createCustomer"/>
            <input>
                <soap:body use="encoded" namespace="http://eas.gurumm.com/sales_service" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
            </input>
            <output>
                <soap:body use="encoded" namespace="http://eas.gurumm.com/sales_service" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
            </output>
        </operation>
        
        <operation name="getCustomer">
            <soap:operation soapAction="getCustomer"/>
            <input>
                <soap:body use="encoded" namespace="http://eas.gurumm.com/sales_service" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
            </input>
            <output>
                <soap:body use="encoded" namespace="http://eas.gurumm.com/sales_service" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
            </output>
        </operation>
        
        <operation name="createProduct">
            <soap:operation soapAction="createProduct"/>
            <input>
                <soap:body use="encoded" namespace="http://eas.gurumm.com/sales_service" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
            </input>
            <output>
                <soap:body use="encoded" namespace="http://eas.gurumm.com/sales_service" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
            </output>
        </operation>
        
        <operation name="getProducts">
            <soap:operation soapAction="getProducts"/>
            <input>
                <soap:body use="encoded" namespace="http://eas.gurumm.com/sales_service" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
            </input>
            <output>
                <soap:body use="encoded" namespace="http://eas.gurumm.com/sales_service" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
            </output>
        </operation>
        
        <operation name="createSale">
            <soap:operation soapAction="createSale"/>
            <input>
                <soap:body use="encoded" namespace="http://eas.gurumm.com/sales_service" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
            </input>
            <output>
                <soap:body use="encoded" namespace="http://eas.gurumm.com/sales_service" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
            </output>
        </operation>
        
        <operation name="getSale">
            <soap:operation soapAction="getSale"/>
            <input>
                <soap:body use="encoded" namespace="http://eas.gurumm.com/sales_service" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
            </input>
            <output>
                <soap:body use="encoded" namespace="http://eas.gurumm.com/sales_service" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
            </output>
        </operation>
        
        <operation name="getSalesReport">
            <soap:operation soapAction="getSalesReport"/>
            <input>
                <soap:body use="encoded" namespace="http://eas.gurumm.com/sales_service" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
            </input>
            <output>
                <soap:body use="encoded" namespace="http://eas.gurumm.com/sales_service" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
            </output>
        </operation>
    </binding>

    <!-- Service -->
    <service name="eas_service">
        <port name="SalesServicePort" binding="tns:SalesServiceBinding">
            <soap:address location="http://eas.gurumm.com/sales_service.php"/>
        </port>
    </service>

</definitions>