[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Help with WebServices
How about this?
<?xml version="1.0" encoding="utf-8" ?>
- <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://www.wintill.com/services/customers" xmlns:s1="http://www.wintill.com/schemas/customers" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="http://www.wintill.com/services/customers" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Provides functions for maintaining and retrieving customer records.</wsdl:documentation>
- <wsdl:types>
- <s:schema elementFormDefault="qualified" targetNamespace="http://www.wintill.com/services/customers">
<s:import namespace="http://www.wintill.com/schemas/customers" />
<s:element name="GetCustomerRequest" type="tns:GetCustomerRequest" />
- <s:complexType name="GetCustomerRequest">
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="AccountRef" type="s:string" />
</s:sequence>
</s:complexType>
<s:element name="GetCustomerResult" type="tns:GetCustomerResponse" />
- <s:complexType name="GetCustomerResponse">
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" ref="s1:Customer" />
</s:sequence>
</s:complexType>
<s:element name="AmendCreateCustomerRequest" type="tns:AmendCreateCustomerRequest" />
- <s:complexType name="AmendCreateCustomerRequest">
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" ref="s1:Customer" />
</s:sequence>
</s:complexType>
<s:element name="AmendCreateCustomerResult" type="tns:AmendCreateCustomerResponse" />
- <s:complexType name="AmendCreateCustomerResponse">
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" ref="s1:Customer" />
</s:sequence>
</s:complexType>
<s:element name="SearchCustomersRequest" type="tns:SearchCustomersRequest" />
- <s:complexType name="SearchCustomersRequest">
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="SearchCustomerName" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="SearchPostcode" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="StartSearchAtName" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="StartSearchAtOtherName" type="s:string" />
</s:sequence>
</s:complexType>
<s:element name="SearchCustomersResult" type="tns:SearchCustomersResponse" />
- <s:complexType name="SearchCustomersResponse">
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" ref="s1:CustomerList" />
</s:sequence>
</s:complexType>
<s:element name="AccountCreditRequest" type="tns:AuthorizeAccountCreditRequest" />
- <s:complexType name="AuthorizeAccountCreditRequest">
- <s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="LocationID" type="s:int" />
<s:element minOccurs="1" maxOccurs="1" name="MachineID" type="s:int" />
<s:element minOccurs="0" maxOccurs="1" name="CustomerAccountRef" type="s:string" />
<s:element minOccurs="1" maxOccurs="1" name="CreditAmount" type="s:double" />
</s:sequence>
</s:complexType>
<s:element name="AuthorizeAccountCreditResult" type="tns:AuthorizeAccountCreditResponse" />
- <s:complexType name="AuthorizeAccountCreditResponse">
- <s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="LocationID" type="s:int" />
<s:element minOccurs="1" maxOccurs="1" name="MachineID" type="s:int" />
<s:element minOccurs="0" maxOccurs="1" name="CustomerAccountRef" type="s:string" />
<s:element minOccurs="1" maxOccurs="1" name="CreditAmount" type="s:double" />
<s:element minOccurs="0" maxOccurs="1" name="AuthorizationCode" type="s:string" />
</s:sequence>
</s:complexType>
<s:element name="AccountDebitRequest" type="tns:AuthorizeAccountDebitRequest" />
- <s:complexType name="AuthorizeAccountDebitRequest">
- <s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="LocationID" type="s:int" />
<s:element minOccurs="1" maxOccurs="1" name="MachineID" type="s:int" />
<s:element minOccurs="0" maxOccurs="1" name="CustomerAccountRef" type="s:string" />
<s:element minOccurs="1" maxOccurs="1" name="DebitAmount" type="s:double" />
</s:sequence>
</s:complexType>
<s:element name="AuthorizeAccountDebitResult" type="tns:AuthorizeAccountDebitResponse" />
- <s:complexType name="AuthorizeAccountDebitResponse">
- <s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="LocationID" type="s:int" />
<s:element minOccurs="1" maxOccurs="1" name="MachineID" type="s:int" />
<s:element minOccurs="0" maxOccurs="1" name="CustomerAccountRef" type="s:string" />
<s:element minOccurs="1" maxOccurs="1" name="DebitAmount" type="s:double" />
<s:element minOccurs="0" maxOccurs="1" name="AuthorizationCode" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="StatusMessage" type="s:string" />
</s:sequence>
</s:complexType>
<s:element name="CancelAccountCreditRequest" type="tns:CancelAccountCreditAuthorizationRequest" />
- <s:complexType name="CancelAccountCreditAuthorizationRequest">
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="AuthorizationCode" type="s:string" />
</s:sequence>
</s:complexType>
<s:element name="CancelAccountCreditAuthorizationResult" type="tns:CancelAccountCreditAuthorizationResponse" />
- <s:complexType name="CancelAccountCreditAuthorizationResponse">
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="AuthorizationCode" type="s:string" />
<s:element minOccurs="1" maxOccurs="1" name="AuthorizationCancelled" type="s:boolean" />
<s:element minOccurs="0" maxOccurs="1" name="StatusMessage" type="s:string" />
</s:sequence>
</s:complexType>
<s:element name="CancelAccountDebitRequest" type="tns:CancelAccountDebitAuthorizationRequest" />
- <s:complexType name="CancelAccountDebitAuthorizationRequest">
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="AuthorizationCode" type="s:string" />
</s:sequence>
</s:complexType>
<s:element name="CancelAccountDebitAuthorizationResult" type="tns:CancelAccountDebitAuthorizationResponse" />
- <s:complexType name="CancelAccountDebitAuthorizationResponse">
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="AuthorizationCode" type="s:string" />
<s:element minOccurs="1" maxOccurs="1" name="AuthorizationCancelled" type="s:boolean" />
<s:element minOccurs="0" maxOccurs="1" name="StatusMessage" type="s:string" />
</s:sequence>
</s:complexType>
<s:element name="GetAccountSummaryRequest" type="tns:GetAccountSummaryRequest" />
- <s:complexType name="GetAccountSummaryRequest">
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="AccountRef" type="s:string" />
</s:sequence>
</s:complexType>
<s:element name="GetAccountSummaryResult" type="tns:GetAccountSummaryResponse" />
- <s:complexType name="GetAccountSummaryResponse">
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" ref="s1:AccountSummary" />
</s:sequence>
</s:complexType>
<s:element name="GetCreateCustomerDetailsForContactRequest" type="tns:GetCreateCustomerDetailsForContactRequest" />
- <s:complexType name="GetCreateCustomerDetailsForContactRequest">
- <s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="NewRecordLocationID" type="s:int" />
<s:element minOccurs="1" maxOccurs="1" name="NewRecordMachineID" type="s:int" />
<s:element minOccurs="1" maxOccurs="1" name="ContactLocationID" type="s:int" />
<s:element minOccurs="1" maxOccurs="1" name="ContactMachineID" type="s:int" />
<s:element minOccurs="1" maxOccurs="1" name="ContactID" type="s:int" />
<s:element minOccurs="1" maxOccurs="1" name="ContactTypeID" type="s:int" />
</s:sequence>
</s:complexType>
<s:element name="GetCreateCustomerDetailsForContactResult" type="tns:GetCreateCustomerDetailsForContactResponse" />
- <s:complexType name="GetCreateCustomerDetailsForContactResponse">
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" ref="s1:Customer" />
</s:sequence>
</s:complexType>
</s:schema>
- <s:schema elementFormDefault="qualified" targetNamespace="http://www.wintill.com/schemas/customers">
<s:element name="Customer" type="s1:CustomerT" />
- <s:complexType name="CustomerT">
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="AccountRef" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ContactDetails" type="s1:ContactT" />
<s:element minOccurs="0" maxOccurs="1" name="CreditLimit" type="s:decimal" />
<s:element minOccurs="0" maxOccurs="1" name="AccountBalance" type="s:decimal" />
<s:element minOccurs="0" maxOccurs="1" name="DiscountID" type="s:positiveInteger" />
<s:element minOccurs="0" maxOccurs="1" name="PriceBandID" type="s:int" />
</s:sequence>
<s:attribute name="CustomerLocationID" type="s:positiveInteger" />
<s:attribute name="CustomerMachineID" type="s:positiveInteger" />
<s:attribute name="CustomerID" type="s:positiveInteger" />
</s:complexType>
- <s:complexType name="ContactT">
- <s:sequence>
- <s:choice minOccurs="1" maxOccurs="1">
<s:element minOccurs="0" maxOccurs="1" name="Person" type="s1:PersonT" />
<s:element minOccurs="0" maxOccurs="1" name="Company" type="s1:CompanyT" />
</s:choice>
<s:element minOccurs="0" maxOccurs="1" name="ContactAddresses" type="s1:ArrayOfContactAddrT" />
<s:element minOccurs="0" maxOccurs="1" name="ContactEmailAddresses" type="s1:ArrayOfContactEmailT" />
<s:element minOccurs="0" maxOccurs="1" name="ContactTelephoneNumbers" type="s1:ArrayOfContactTelNoT" />
</s:sequence>
</s:complexType>
- <s:complexType name="PersonT">
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="Title" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="Forename" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="Surname" type="s:string" />
</s:sequence>
<s:attribute name="PersonLocationID" type="s:positiveInteger" />
<s:attribute name="PersonMachineID" type="s:positiveInteger" />
<s:attribute name="PersonID" type="s:positiveInteger" />
</s:complexType>
- <s:complexType name="CompanyT">
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="Name" type="s:string" />
</s:sequence>
<s:attribute name="CompanyLocationID" type="s:positiveInteger" />
<s:attribute name="CompanyMachineID" type="s:positiveInteger" />
<s:attribute name="CompanyID" type="s:positiveInteger" />
</s:complexType>
- <s:complexType name="ArrayOfContactAddrT">
- <s:sequence>
<s:element minOccurs="0" maxOccurs="unbounded" name="ContactAddress" type="s1:ContactAddrT" />
</s:sequence>
</s:complexType>
- <s:complexType name="ContactAddrT">
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="Description" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="Address" type="s1:AddressT" />
</s:sequence>
<s:attribute name="IsDefault" type="s:boolean" />
</s:complexType>
- <s:complexType name="AddressT">
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="Line1" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="Line2" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="Line3" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="Line4" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="Line5" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="Postcode" type="s:string" />
</s:sequence>
<s:attribute name="AddrLocationID" type="s:positiveInteger" />
<s:attribute name="AddrMachineID" type="s:positiveInteger" />
<s:attribute name="AddrID" type="s:positiveInteger" />
</s:complexType>
- <s:complexType name="ArrayOfContactEmailT">
- <s:sequence>
<s:element minOccurs="0" maxOccurs="unbounded" name="ContactEmailAddress" type="s1:ContactEmailT" />
</s:sequence>
</s:complexType>
- <s:complexType name="ContactEmailT">
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="Description" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="EmailAddress" type="s1:EMailT" />
</s:sequence>
<s:attribute name="IsDefault" type="s:boolean" />
</s:complexType>
- <s:complexType name="EMailT">
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="Address" type="s:string" />
</s:sequence>
<s:attribute name="EmailLocationID" type="s:positiveInteger" />
<s:attribute name="EmailMachineID" type="s:positiveInteger" />
<s:attribute name="EmailID" type="s:positiveInteger" />
</s:complexType>
- <s:complexType name="ArrayOfContactTelNoT">
- <s:sequence>
<s:element minOccurs="0" maxOccurs="unbounded" name="ContactTelephoneNumber" type="s1:ContactTelNoT" />
</s:sequence>
</s:complexType>
- <s:complexType name="ContactTelNoT">
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="Description" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="TelephoneNo" type="s1:TelephoneNoT" />
</s:sequence>
<s:attribute name="IsDefault" type="s:boolean" />
</s:complexType>
- <s:complexType name="TelephoneNoT">
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="Number" type="s:string" />
</s:sequence>
<s:attribute name="TelNoLocationID" type="s:positiveInteger" />
<s:attribute name="TelNoMachineID" type="s:positiveInteger" />
<s:attribute name="TelNoID" type="s:positiveInteger" />
</s:complexType>
<s:element name="CustomerList" type="s1:ArrayOfCustomerViewT" />
- <s:complexType name="ArrayOfCustomerViewT">
- <s:sequence>
<s:element minOccurs="0" maxOccurs="unbounded" name="CustomerView" type="s1:CustomerViewT" />
</s:sequence>
</s:complexType>
- <s:complexType name="CustomerViewT">
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="Name" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="Postcode" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="AccountRef" type="s:string" />
</s:sequence>
<s:attribute name="CustomerLocationID" type="s:int" use="required" />
<s:attribute name="CustomerMachineID" type="s:int" use="required" />
<s:attribute name="CustomerID" type="s:int" use="required" />
</s:complexType>
<s:element name="AccountSummary" type="s1:AccountSummaryT" />
- <s:complexType name="AccountSummaryT">
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="AccountRef" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="Transactions" type="s1:ArrayOfAccountSummaryItemT" />
</s:sequence>
</s:complexType>
- <s:complexType name="ArrayOfAccountSummaryItemT">
- <s:sequence>
<s:element minOccurs="0" maxOccurs="unbounded" name="Transaction" type="s1:AccountSummaryItemT" />
</s:sequence>
</s:complexType>
- <s:complexType name="AccountSummaryItemT">
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="TransactionRef" type="s:string" />
<s:element minOccurs="1" maxOccurs="1" name="DateTime" type="s:dateTime" />
<s:element minOccurs="0" maxOccurs="1" name="Description" type="s:string" />
<s:element minOccurs="1" maxOccurs="1" name="Amount" type="s:double" />
<s:element minOccurs="0" maxOccurs="1" name="Currency" type="s1:CurrencyT" />
</s:sequence>
</s:complexType>
- <s:complexType name="CurrencyT">
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="ISOCode" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="Description" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="Symbol" type="s:string" />
<s:element minOccurs="1" maxOccurs="1" name="ExchangeRate" type="s:double" />
<s:element minOccurs="1" maxOccurs="1" name="DecimalPlaces" type="s:int" />
</s:sequence>
<s:attribute name="CurrencyRecordID" type="s:int" use="required" />
<s:attribute name="CurrencySeriesID" type="s:int" use="required" />
</s:complexType>
</s:schema>
</wsdl:types>
- <wsdl:message name="GetCustomerSoapIn">
<wsdl:part name="GetCustomerRequest" element="tns:GetCustomerRequest" />
</wsdl:message>
- <wsdl:message name="GetCustomerSoapOut">
<wsdl:part name="GetCustomerResult" element="tns:GetCustomerResult" />
</wsdl:message>
- <wsdl:message name="AmendCreateCustomerSoapIn">
<wsdl:part name="AmendCreateCustomerRequest" element="tns:AmendCreateCustomerRequest" />
</wsdl:message>
- <wsdl:message name="AmendCreateCustomerSoapOut">
<wsdl:part name="AmendCreateCustomerResult" element="tns:AmendCreateCustomerResult" />
</wsdl:message>
- <wsdl:message name="SearchCustomersSoapIn">
<wsdl:part name="SearchCustomersRequest" element="tns:SearchCustomersRequest" />
</wsdl:message>
- <wsdl:message name="SearchCustomersSoapOut">
<wsdl:part name="SearchCustomersResult" element="tns:SearchCustomersResult" />
</wsdl:message>
- <wsdl:message name="AuthorizeAccountCreditSoapIn">
<wsdl:part name="AccountCreditRequest" element="tns:AccountCreditRequest" />
</wsdl:message>
- <wsdl:message name="AuthorizeAccountCreditSoapOut">
<wsdl:part name="AuthorizeAccountCreditResult" element="tns:AuthorizeAccountCreditResult" />
</wsdl:message>
- <wsdl:message name="AuthorizeAccountDebitSoapIn">
<wsdl:part name="AccountDebitRequest" element="tns:AccountDebitRequest" />
</wsdl:message>
- <wsdl:message name="AuthorizeAccountDebitSoapOut">
<wsdl:part name="AuthorizeAccountDebitResult" element="tns:AuthorizeAccountDebitResult" />
</wsdl:message>
- <wsdl:message name="CancelAccountCreditAuthorizationSoapIn">
<wsdl:part name="CancelAccountCreditRequest" element="tns:CancelAccountCreditRequest" />
</wsdl:message>
- <wsdl:message name="CancelAccountCreditAuthorizationSoapOut">
<wsdl:part name="CancelAccountCreditAuthorizationResult" element="tns:CancelAccountCreditAuthorizationResult" />
</wsdl:message>
- <wsdl:message name="CancelAccountDebitAuthorizationSoapIn">
<wsdl:part name="CancelAccountDebitRequest" element="tns:CancelAccountDebitRequest" />
</wsdl:message>
- <wsdl:message name="CancelAccountDebitAuthorizationSoapOut">
<wsdl:part name="CancelAccountDebitAuthorizationResult" element="tns:CancelAccountDebitAuthorizationResult" />
</wsdl:message>
- <wsdl:message name="GetAccountSummarySoapIn">
<wsdl:part name="GetAccountSummaryRequest" element="tns:GetAccountSummaryRequest" />
</wsdl:message>
- <wsdl:message name="GetAccountSummarySoapOut">
<wsdl:part name="GetAccountSummaryResult" element="tns:GetAccountSummaryResult" />
</wsdl:message>
- <wsdl:message name="GetCreateCustomerDetailsForContactSoapIn">
<wsdl:part name="GetCreateCustomerDetailsForContactRequest" element="tns:GetCreateCustomerDetailsForContactRequest" />
</wsdl:message>
- <wsdl:message name="GetCreateCustomerDetailsForContactSoapOut">
<wsdl:part name="GetCreateCustomerDetailsForContactResult" element="tns:GetCreateCustomerDetailsForContactResult" />
</wsdl:message>
- <wsdl:portType name="CustomerManager">
- <wsdl:operation name="GetCustomer">
<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Returns customer details for the specified account reference</wsdl:documentation>
<wsdl:input message="tns:GetCustomerSoapIn" />
<wsdl:output message="tns:GetCustomerSoapOut" />
</wsdl:operation>
- <wsdl:operation name="AmendCreateCustomer">
<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Allows creation/update of single customer records including contact information (addresses, email addresses, and telephone numbers)</wsdl:documentation>
<wsdl:input message="tns:AmendCreateCustomerSoapIn" />
<wsdl:output message="tns:AmendCreateCustomerSoapOut" />
</wsdl:operation>
- <wsdl:operation name="SearchCustomers">
<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Returns a list of customers for given search criteria. SearchName should be either a company name or person's surname or the first part of either. SearchPostcode should be a valid full or first part of a postcode. StartSearchAtName should be a company name or a person's surname or the first part of either, the search will return results which are alphabetically greater than or eqaul to this value. StartSearchAtOtherName is used when searching a specific person's forename or initial.</wsdl:documentation>
<wsdl:input message="tns:SearchCustomersSoapIn" />
<wsdl:output message="tns:SearchCustomersSoapOut" />
</wsdl:operation>
- <wsdl:operation name="AuthorizeAccountCredit">
<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Provides authorization code for credits to customer account.</wsdl:documentation>
<wsdl:input message="tns:AuthorizeAccountCreditSoapIn" />
<wsdl:output message="tns:AuthorizeAccountCreditSoapOut" />
</wsdl:operation>
- <wsdl:operation name="AuthorizeAccountDebit">
<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Provides authorization code for debits from customer account.</wsdl:documentation>
<wsdl:input message="tns:AuthorizeAccountDebitSoapIn" />
<wsdl:output message="tns:AuthorizeAccountDebitSoapOut" />
</wsdl:operation>
- <wsdl:operation name="CancelAccountCreditAuthorization">
<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Cancels existing authorization for customer account credit.</wsdl:documentation>
<wsdl:input message="tns:CancelAccountCreditAuthorizationSoapIn" />
<wsdl:output message="tns:CancelAccountCreditAuthorizationSoapOut" />
</wsdl:operation>
- <wsdl:operation name="CancelAccountDebitAuthorization">
<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Cancels existing authorization for customer account debit.</wsdl:documentation>
<wsdl:input message="tns:CancelAccountDebitAuthorizationSoapIn" />
<wsdl:output message="tns:CancelAccountDebitAuthorizationSoapOut" />
</wsdl:operation>
- <wsdl:operation name="GetAccountSummary">
<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Returns a list of credit and debit transactions for a given account reference.</wsdl:documentation>
<wsdl:input message="tns:GetAccountSummarySoapIn" />
<wsdl:output message="tns:GetAccountSummarySoapOut" />
</wsdl:operation>
- <wsdl:operation name="GetCreateCustomerDetailsForContact">
<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Returns customer details for a supplied contact ID. If a customer details record does not exist for the supplied contact ID then a new account is created using the supplied NewRecordLocationID and NewRecordMachineID parameters.</wsdl:documentation>
<wsdl:input message="tns:GetCreateCustomerDetailsForContactSoapIn" />
<wsdl:output message="tns:GetCreateCustomerDetailsForContactSoapOut" />
</wsdl:operation>
</wsdl:portType>
- <wsdl:binding name="CustomerManager" type="tns:CustomerManager">
- <wsdl:documentation>
<wsi:Claim conformsTo="http://ws-i.org/profiles/basic/1.1" xmlns:wsi="http://ws-i.org/schemas/conformanceClaim/" />
</wsdl:documentation>
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
- <wsdl:operation name="GetCustomer">
<soap:operation soapAction="http://www.wintill.com/services/customers/GetCustomer" style="document" />
- <wsdl:input>
<soap:body use="literal" />
</wsdl:input>
- <wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
- <wsdl:operation name="AmendCreateCustomer">
<soap:operation soapAction="http://www.wintill.com/services/customers/AmendCreateCustomer" style="document" />
- <wsdl:input>
<soap:body use="literal" />
</wsdl:input>
- <wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
- <wsdl:operation name="SearchCustomers">
<soap:operation soapAction="http://www.wintill.com/services/customers/SearchCustomers" style="document" />
- <wsdl:input>
<soap:body use="literal" />
</wsdl:input>
- <wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
- <wsdl:operation name="AuthorizeAccountCredit">
<soap:operation soapAction="http://www.wintill.com/services/customers/AuthorizeAccountCredit" style="document" />
- <wsdl:input>
<soap:body use="literal" />
</wsdl:input>
- <wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
- <wsdl:operation name="AuthorizeAccountDebit">
<soap:operation soapAction="http://www.wintill.com/services/customers/AuthorizeAccountDebit" style="document" />
- <wsdl:input>
<soap:body use="literal" />
</wsdl:input>
- <wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
- <wsdl:operation name="CancelAccountCreditAuthorization">
<soap:operation soapAction="http://www.wintill.com/services/customers/CancelAccountCreditAuthorization" style="document" />
- <wsdl:input>
<soap:body use="literal" />
</wsdl:input>
- <wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
- <wsdl:operation name="CancelAccountDebitAuthorization">
<soap:operation soapAction="http://www.wintill.com/services/customers/CancelAccountDebitAuthorization" style="document" />
- <wsdl:input>
<soap:body use="literal" />
</wsdl:input>
- <wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
- <wsdl:operation name="GetAccountSummary">
<soap:operation soapAction="http://www.wintill.com/services/customers/GetAccountSummary" style="document" />
- <wsdl:input>
<soap:body use="literal" />
</wsdl:input>
- <wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
- <wsdl:operation name="GetCreateCustomerDetailsForContact">
<soap:operation soapAction="http://www.wintill.com/services/customers/GetCreateCustomerDetailsForContact" style="document" />
- <wsdl:input>
<soap:body use="literal" />
</wsdl:input>
- <wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
- <wsdl:service name="Customer_x0020_Maintenance_x0020_Service">
<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Provides functions for maintaining and retrieving customer records.</wsdl:documentation>
- <wsdl:port name="CustomerManager" binding="tns:CustomerManager">
<soap:address location="http://192.168.1.13/WinTillCustomerService/CustomerManager.asmx" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Charles Wilt
Sent: 23 October 2015 14:00
To: HTTPAPI and FTPAPI Projects
Subject: Re: Help with WebServices
No.
Did you look at the example I gave you a link to?
http://www.w3schools.com/webservices/tempconvert.asmx?WSDL
<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="
http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="
http://www.w3schools.com/webservices/" xmlns:soap="
http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="
http://www.w3.org/2001/XMLSchema" xmlns:soap12="
http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="
http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="
http://www.w3schools.com/webservices/" xmlns:wsdl="
http://schemas.xmlsoap.org/wsdl/">
<wsdl:types>
<s:schema elementFormDefault="qualified" targetNamespace="
http://www.w3schools.com/webservices/">
<s:element name="FahrenheitToCelsius">
<s:complexType>
<s:sequence>
Have you read Scott's presentation? He talks about SOAP web services and WSDLs.
Charles
On Fri, Oct 23, 2015 at 8:52 AM, Connie Fuller <CFuller@xxxxxxxxxxx> wrote:
> Hi Charles,
>
> Do you mean this:
>
> POST /WinTillCustomerService/CustomerManager.asmx HTTP/1.1
> Host:
> Content-Type: text/xml; charset=utf-8
> Content-Length: length
> SOAPAction:
> "http://www.wintill.com/services/customers/AmendCreateCustomer
> "
>
> <?xml version="1.0" encoding="utf-8"?> <soap:Envelope
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="
> http://schemas.xmlsoap.org/soap/envelope/">
> <soap:Body>
> <AmendCreateCustomerRequest xmlns="
> http://www.wintill.com/services/customers">
> <Customer CustomerLocationID="positiveInteger"
> CustomerMachineID="positiveInteger" CustomerID="positiveInteger" xmlns="
> http://www.wintill.com/schemas/customers">
> <AccountRef>string</AccountRef>
> <ContactDetails>
> <ContactAddresses>
> <ContactAddress xsi:nil="true" />
> <ContactAddress xsi:nil="true" />
> </ContactAddresses>
> <ContactEmailAddresses>
> <ContactEmailAddress xsi:nil="true" />
> <ContactEmailAddress xsi:nil="true" />
> </ContactEmailAddresses>
> <ContactTelephoneNumbers>
> <ContactTelephoneNumber xsi:nil="true" />
> <ContactTelephoneNumber xsi:nil="true" />
> </ContactTelephoneNumbers>
> </ContactDetails>
> <CreditLimit>decimal</CreditLimit>
> <AccountBalance>decimal</AccountBalance>
> <DiscountID>positiveInteger</DiscountID>
> <PriceBandID>int</PriceBandID>
> </Customer>
> </AmendCreateCustomerRequest>
> </soap:Body>
> </soap:Envelope>
>
> Sorry for being so vauge, I've not worked with them before so this is
> all very new to me.
>
> Kind regards,
> Connie
>
> -----Original Message-----
> From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:
> ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Charles Wilt
> Sent: 23 October 2015 13:46
> To: HTTPAPI and FTPAPI Projects
> Subject: Re: Help with WebServices
>
> I can't see that, it's local to your network..
>
> But probably not, usually WSDL is part of the URL...
>
> Try
> http://192.168.1.58/WinTillCustomerService/CustomerManager.asmx?WSDL
> <
> http://192.168.1.58/WinTillCustomerService/CustomerManager.asmx?op=Ame
> ndCreateCustomer
> >
>
> Charles
>
>
>
> On Fri, Oct 23, 2015 at 8:43 AM, Connie Fuller <CFuller@xxxxxxxxxxx>
> wrote:
>
> > Hi Charles,
> >
> > Is this what you're looking for?
> >
> >
> >
> http://192.168.1.58/WinTillCustomerService/CustomerManager.asmx?op=Ame
> ndCreateCustomer
> >
> > Thanks,
> > Connie
> >
> > -----Original Message-----
> > From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:
> > ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Charles Wilt
> > Sent: 23 October 2015 13:38
> > To: HTTPAPI and FTPAPI Projects
> > Subject: Re: Help with WebServices
> >
> > Also, your second document is not the WSDL.
> >
> > A WSDL looks like so:
> > http://www.w3schools.com/webservices/tempconvert.asmx?WSDL
> >
> > In a browser, try opening http://
> > WinTillCustomerService/CustomerManager.asmx?WSDL
> >
> > The URL to the WSDL is what you'd want to open with SoapUI to
> > examine the service.
> >
> > Have you read through Scott's presentation?
> >
> >
> http://www.scottklement.com/presentations/Web%20Services%20from%20RPG%
> 20with%20HTTPAPI.pdf
> >
> > Charles
> >
> >
> > On Fri, Oct 23, 2015 at 7:38 AM, Connie Fuller <CFuller@xxxxxxxxxxx>
> > wrote:
> >
> > > Hi Scott,
> > >
> > > I have attached the debug file for you.
> > >
> > > As for the WSDL, I think what you're looking for is within the
> > > second attachment, webserviceattempt2.txt
> > >
> > > Hope this information is OK, if you need anything else then please
> > > let me know.
> > >
> > > Kind regards,
> > > Connie
> > >
> > > -----Original Message-----
> > > From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:
> > > ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Scott Klement
> > > Sent: 23 October 2015 07:01
> > > To: HTTPAPI and FTPAPI Projects
> > > Subject: Re: Help with WebServices
> > >
> > > Connie,
> > >
> > > I did see your messages on RPG400-L as well as this one, and
> > > unfortunately, I don't feel that I have enough information to help you.
> > > Every web service is different, and the error you are getting is
> > > not coming from HTTPAPI, it is coming from the web service server.
> > > (The server sends the error to HTTPAPI, which in turn copies it
> > > back to
> > > you.)
> > >
> > > Please create a debug/trace file so I can see some more detailed
> > > information, and post it here. Also, since it sounds like you're
> using
> > > SOAP, please provide the WSDL (or a link to it) so we can see what
> > > is expected for this service.
> > >
> > > To create the debug/trace, add a line like the following to the
> > > start of your program and recompile/run:
> > >
> > > callp http_debug(*on);
> > >
> > > This will create a file named /tmp/httpapi_debug.txt. Please
> > > attach that file to a reply to this message so I can see it. (and
> > > the WSDL as well, or provide a link to the WSDL).
> > >
> > > Thanks!
> > >
> > >
> > >
> > > On 10/22/2015 7:26 AM, Connie Fuller wrote:
> > > > Good Afternoon,
> > > >
> > > >
> > > > I have posted this on the RGP/400 mailing lists on Midrange
> > > > but a
> > lot
> > > > of users have pointed me in this direction.
> > > >
> > > >
> > > > Basically I have created a webservice in RPG, and I am
> > > > trying to do
> > > the
> > > > HTML_POST to send the request to the designated server.
> > > >
> > > >
> > > > It is not working - my knowledge of WebServices are very
> > > > little and
> > > I'm
> > > > trying to use a source program we use for another type of
> > webservice
> > > > but cannot get it to work.
> > > >
> > > >
> > > > As far as I'm aware the SOAP body is OK, it seems to dump on
> > > > the
> > HTML
> > > > Post:
> > > >
> > > >
> > > > rc = %len(soap);
> > > >
> > > > rc = http_post_xml(
> > > >
> > > > url
> > > >
> > > > : %addr(SOAP) + 4
> > > >
> > > > : %len(SOAP)
> > > >
> > > > : *NULL
> > > >
> > > > : %paddr(endElem)
> > > >
> > > > : *null
> > > >
> > > > : 600
> > > >
> > > > : HTTP_USERAGENT
> > > >
> > > > : 'text/xml'
> > > >
> > > > : SOAPACTION);
> > > >
> > > >
> > > > I keep getting a response saying the `server did not
> > > > recognise
> the
> > > > value of HTTP Header SOAPACTION'.
> > > >
> > > >
> > > > I am trying to get the HTTP_DEBUG to work and create a debug
> > > > log for
> > > me
> > > > on the IFS but can't get that to produce the file.
> > > >
> > > >
> > > > Can anyone help me with this? I am a complete novice and want to
> > > > webservices and any help would be very much appreciated.
> > > >
> > > >
> > > > I am using the Scott Klements HTTP_API copysource.
> > > >
> > > >
> > > > Any help would be great.
> > > >
> > > >
> > > > Thanks,
> > > >
> > > >
> > > >
> > > > Connie Fuller
> > > >
> > > > Computer Programmer/Analyst
> > > >
> > > > Williamson-Dickie Europe Ltd
> > > >
> > > >
> > >
> > > ------------------------------------------------------------------
> > > ----
> > > - This is the FTPAPI mailing list. To unsubscribe, please go to:
> > > http://www.scottklement.com/mailman/listinfo/ftpapi
> > > ------------------------------------------------------------------
> > > ----
> > > -
> > >
> > > ------------------------------------------------------------------
> > > ----
> > > - This is the FTPAPI mailing list. To unsubscribe, please go to:
> > > http://www.scottklement.com/mailman/listinfo/ftpapi
> > > ------------------------------------------------------------------
> > > ----
> > > -
> > >
> > >
> > --------------------------------------------------------------------
> > --- This is the FTPAPI mailing list. To unsubscribe, please go to:
> > http://www.scottklement.com/mailman/listinfo/ftpapi
> > --------------------------------------------------------------------
> > ---
> >
> ----------------------------------------------------------------------
> - This is the FTPAPI mailing list. To unsubscribe, please go to:
> http://www.scottklement.com/mailman/listinfo/ftpapi
> ----------------------------------------------------------------------
> -
>
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------