00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #if defined(__BORLANDC__)
00012 #pragma option push -w-8060
00013 #pragma option push -w-8004
00014 #endif
00015 #include "stockQuoteH.h"
00016 #ifdef __cplusplus
00017 extern "C" {
00018 #endif
00019
00020 SOAP_SOURCE_STAMP("@(#) stockQuoteClient.c ver 2.8.3 2011-08-08 19:56:59 GMT")
00021
00022
00023 SOAP_FMAC5 int SOAP_FMAC6 soap_call___ns2__GetQuote(struct soap *soap, const char *soap_endpoint, const char *soap_action, struct _ns1__GetQuote *ns1__GetQuote, struct _ns1__GetQuoteResponse *ns1__GetQuoteResponse)
00024 { struct __ns2__GetQuote soap_tmp___ns2__GetQuote;
00025 if (!soap_endpoint)
00026 soap_endpoint = "http://www.webservicex.net/stockquote.asmx";
00027 if (!soap_action)
00028 soap_action = "http://www.webserviceX.NET/GetQuote";
00029 soap->encodingStyle = NULL;
00030 soap_tmp___ns2__GetQuote.ns1__GetQuote = ns1__GetQuote;
00031 soap_begin(soap);
00032 soap_serializeheader(soap);
00033 soap_serialize___ns2__GetQuote(soap, &soap_tmp___ns2__GetQuote);
00034 if (soap_begin_count(soap))
00035 return soap->error;
00036 if (soap->mode & SOAP_IO_LENGTH)
00037 { if (soap_envelope_begin_out(soap)
00038 || soap_putheader(soap)
00039 || soap_body_begin_out(soap)
00040 || soap_put___ns2__GetQuote(soap, &soap_tmp___ns2__GetQuote, "-ns2:GetQuote", NULL)
00041 || soap_body_end_out(soap)
00042 || soap_envelope_end_out(soap))
00043 return soap->error;
00044 }
00045 if (soap_end_count(soap))
00046 return soap->error;
00047 if (soap_connect(soap, soap_endpoint, soap_action)
00048 || soap_envelope_begin_out(soap)
00049 || soap_putheader(soap)
00050 || soap_body_begin_out(soap)
00051 || soap_put___ns2__GetQuote(soap, &soap_tmp___ns2__GetQuote, "-ns2:GetQuote", NULL)
00052 || soap_body_end_out(soap)
00053 || soap_envelope_end_out(soap)
00054 || soap_end_send(soap))
00055 return soap_closesock(soap);
00056 if (!ns1__GetQuoteResponse)
00057 return soap_closesock(soap);
00058 soap_default__ns1__GetQuoteResponse(soap, ns1__GetQuoteResponse);
00059 if (soap_begin_recv(soap)
00060 || soap_envelope_begin_in(soap)
00061 || soap_recv_header(soap)
00062 || soap_body_begin_in(soap))
00063 return soap_closesock(soap);
00064 soap_get__ns1__GetQuoteResponse(soap, ns1__GetQuoteResponse, "ns1:GetQuoteResponse", "");
00065 if (soap->error)
00066 return soap_recv_fault(soap, 0);
00067 if (soap_body_end_in(soap)
00068 || soap_envelope_end_in(soap)
00069 || soap_end_recv(soap))
00070 return soap_closesock(soap);
00071 return soap_closesock(soap);
00072 }
00073
00074 SOAP_FMAC5 int SOAP_FMAC6 soap_call___ns3__GetQuote(struct soap *soap, const char *soap_endpoint, const char *soap_action, struct _ns1__GetQuote *ns1__GetQuote, struct _ns1__GetQuoteResponse *ns1__GetQuoteResponse)
00075 { struct __ns3__GetQuote soap_tmp___ns3__GetQuote;
00076 if (!soap_endpoint)
00077 soap_endpoint = "http://www.webservicex.net/stockquote.asmx";
00078 if (!soap_action)
00079 soap_action = "http://www.webserviceX.NET/GetQuote";
00080 soap->encodingStyle = NULL;
00081 soap_tmp___ns3__GetQuote.ns1__GetQuote = ns1__GetQuote;
00082 soap_begin(soap);
00083 soap_serializeheader(soap);
00084 soap_serialize___ns3__GetQuote(soap, &soap_tmp___ns3__GetQuote);
00085 if (soap_begin_count(soap))
00086 return soap->error;
00087 if (soap->mode & SOAP_IO_LENGTH)
00088 { if (soap_envelope_begin_out(soap)
00089 || soap_putheader(soap)
00090 || soap_body_begin_out(soap)
00091 || soap_put___ns3__GetQuote(soap, &soap_tmp___ns3__GetQuote, "-ns3:GetQuote", NULL)
00092 || soap_body_end_out(soap)
00093 || soap_envelope_end_out(soap))
00094 return soap->error;
00095 }
00096 if (soap_end_count(soap))
00097 return soap->error;
00098 if (soap_connect(soap, soap_endpoint, soap_action)
00099 || soap_envelope_begin_out(soap)
00100 || soap_putheader(soap)
00101 || soap_body_begin_out(soap)
00102 || soap_put___ns3__GetQuote(soap, &soap_tmp___ns3__GetQuote, "-ns3:GetQuote", NULL)
00103 || soap_body_end_out(soap)
00104 || soap_envelope_end_out(soap)
00105 || soap_end_send(soap))
00106 return soap_closesock(soap);
00107 if (!ns1__GetQuoteResponse)
00108 return soap_closesock(soap);
00109 soap_default__ns1__GetQuoteResponse(soap, ns1__GetQuoteResponse);
00110 if (soap_begin_recv(soap)
00111 || soap_envelope_begin_in(soap)
00112 || soap_recv_header(soap)
00113 || soap_body_begin_in(soap))
00114 return soap_closesock(soap);
00115 soap_get__ns1__GetQuoteResponse(soap, ns1__GetQuoteResponse, "ns1:GetQuoteResponse", "");
00116 if (soap->error)
00117 return soap_recv_fault(soap, 0);
00118 if (soap_body_end_in(soap)
00119 || soap_envelope_end_in(soap)
00120 || soap_end_recv(soap))
00121 return soap_closesock(soap);
00122 return soap_closesock(soap);
00123 }
00124
00125 #ifdef __cplusplus
00126 }
00127 #endif
00128
00129 #if defined(__BORLANDC__)
00130 #pragma option pop
00131 #pragma option pop
00132 #endif
00133
00134