64,318
社区成员
发帖
与我相关
我的任务
分享
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<!-- Generated 2010-01-14 17:23:39 by Four J's WSDL File Generator, Build 73568
-->
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:fjsd="http://www.digitalchina.com/types/" xmlns:fjs="http://www.digitalchina.com/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" name="aws_pdmstd" targetNamespace="http://www.digitalchina.com/">
<message name="TIPTOPGateWay">
<part name="param" type="xsd:string" />
</message>
<message name="TIPTOPGateWayResponse">
<part name="result" type="xsd:string" />
</message>
<portType name="aws_pdmstdSoap">
<operation name="TIPTOPGateWay">
<input message="fjs:TIPTOPGateWay" />
<output message="fjs:TIPTOPGateWayResponse" />
</operation>
</portType>
<binding name="aws_pdmstdBind" type="fjs:aws_pdmstdSoap">
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
<operation name="TIPTOPGateWay">
<soap:operation soapAction="" />
<input>
<soap:body namespace="http://www.digitalchina.com/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" />
</input>
<output>
<soap:body namespace="http://www.digitalchina.com/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" />
</output>
</operation>
</binding>
<service name="aws_pdmstd">
<port name="aws_pdmstdSoap" binding="fjs:aws_pdmstdBind">
<soap:address location="http://172.16.9.27/cgi-bin/fglccgi/ws/r/aws_pdmstd" />
</port>
</service>
</definitions>
CString TIPTOPGateWay(CString xmlin)
{
ISoapSerializerPtr Serializer;
ISoapReaderPtr Reader;
ISoapConnectorPtr Connector;
// Connect to the service
Connector.CreateInstance(__uuidof(HttpConnector));
Connector->Property["EndPointURL"] = "http://172.16.9.27/cgi-bin/fglccgi/ws/r/aws_pdmstd";
Connector->Connect();
// Begin message
Connector->Property["SoapAction"] = "uri:soap_2.php";
Connector->BeginMessage();
// Create the SoapSerializer
Serializer.CreateInstance(__uuidof(SoapSerializer));
// Connect the serializer to the input stream of the connector
Serializer->Init(_variant_t((IUnknown*)Connector->InputStream));
// Build the SOAP Message
Serializer->startEnvelope("","","");
Serializer->startBody("");
Serializer->startElement("add","uri:soap_2.php","","m");
Serializer->endElement();
Serializer->endBody();
Serializer->endEnvelope();
// Send the message to the web service
Connector->EndMessage();
// Read the response
Reader.CreateInstance(__uuidof(SoapReader));
// Connect the reader to the output stream of the connector
Reader->Load(_variant_t((IUnknown*)Connector->OutputStream),"");
// Display the result
CString xmlout;
return xmlout;
}