Listing 1: WSDL from the Business Process Service

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="urn:mycompany:/VBootCamp/Services/BP/BootcampBPService"
 xmlns:tns="urn:mycompany:/VBootCamp/Services/BP/BootcampBPService" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
   xmlns="http://schemas.xmlsoap.org/wsdl/">
  <wsdl:types>
    <xsd:schema elementFormDefault="qualified"
	 targetNamespace="urn:mycompany:/VBootCamp/Services/BP/BootcampBPService"
	  xmlns:xsd="http://www.w3.org/2001/XMLSchema"><xsd:element
	   name="operation1Response"><xsd:complexType><xsd:sequence><xsd:element name="result"
	    type="xsd:string"/></xsd:sequence></xsd:complexType></xsd:element><xsd:element
		 name="operation1"><xsd:complexType><xsd:sequence><xsd:element name="cust_id"
		  type="xsd:int"/></xsd:sequence></xsd:complexType></xsd:element></xsd:schema>
  </wsdl:types>
  <wsdl:message name="operation1Response">
    <wsdl:part name="message" element="tns:operation1Response"/>
  </wsdl:message>
  <wsdl:message name="operation1Request">
    <wsdl:part name="message" element="tns:operation1"/>
  </wsdl:message>
  <wsdl:portType name="BootcampBPService">
    <wsdl:operation name="operation1">
      <wsdl:input name="operation1Request" message="tns:operation1Request"/>
      <wsdl:output name="operation1Response" message="tns:operation1Response"/>
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:binding name="BootcampBPServiceHTTP_Binding" type="tns:BootcampBPService">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="operation1">
      <soap:operation
	   soapAction="urn:mycompany:/VBootCamp/Services/BP/BootcampBPService/BootcampBPService/operation1Request#"/>
      <wsdl:input name="operation1Request">
        <soap:body use="literal"/>
      </wsdl:input>
      <wsdl:output name="operation1Response">
        <soap:body use="literal"/>
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:service name="BootcampBPService">
    <wsdl:port name="BootcampBPService_SOAP_HTTP_Port" binding="tns:BootcampBPServiceHTTP_Binding">
      <soap:address	  location="http://ithain-xp.sybase.com:8080/BootcampBPService/services/SOAPHandler/HTTPTransport/urn~3Amycompany~3A/
VBootCamp/Services/BP/BootcampBPService/BootcampBPService"/>
    </wsdl:port>
  </wsdl:service>
</wsdl:definitions>


Listing 2: Clicked Event of the Client Application

SoapConnection 		conn
int 			ret

//bpbootcampbpservice is a proxy generated by Web service wizard
bpbootcampbpservice 	proxy
bpoperation1 		input
bpoperation1response 	output

try
	conn = create SoapConnection
  	ret = conn.CreateInstance(proxy, "bpbootcampbpservice")

  	if (ret <> 0)then
      		MessageBox("Fail", "Cannot create proxy bpbootcampbpservice")
      		return
   	end if

	//Set input - cust_id
	input.cust_id = Integer(em_1.text)

	//Call BP Operation
   	output = proxy.operation1( input )

	//Display result
	mle_1.text = output.result

	destroy conn

catch (SoapException e1)
	destroy conn
	MessageBox("Fail", "Can't invoke service 'operation1'")
catch (PBXRuntimeError e2)
	destroy conn
	MessageBox("Fail", "There is a runtime error when invoking Web service")
catch (RuntimeError e3)
	destroy conn
	MessageBox("Fail", "There is an unknown error when invoking Web service")
end try