axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dami...@apache.org
Subject cvs commit: ws-axis/c/tests/client/xsdAnyTest1 ExtensibilityQueryMain.cpp
Date Mon, 30 Aug 2004 05:42:27 GMT
damitha     2004/08/29 22:42:27

  Modified:    c/tests/client/xsdAnyTest1 ExtensibilityQueryMain.cpp
  Log:
  Removed hard coded url to take from command line
  
  Revision  Changes    Path
  1.6       +11 -3     ws-axis/c/tests/client/xsdAnyTest1/ExtensibilityQueryMain.cpp
  
  Index: ExtensibilityQueryMain.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/tests/client/xsdAnyTest1/ExtensibilityQueryMain.cpp,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- ExtensibilityQueryMain.cpp	28 Jun 2004 08:11:43 -0000	1.5
  +++ ExtensibilityQueryMain.cpp	30 Aug 2004 05:42:27 -0000	1.6
  @@ -1,18 +1,26 @@
   #include "gen_src/ExtensibilityQueryPortType.h"
   
  -int main(void)
  +int main(int argc, char* argv[])
   {
  +    char endpoint[256];
  +    const char* server="localhost";
  +    const char* port="80";
       AnyType* pAny = new AnyType();
       pAny->_size = 2;
       pAny->_array = new char*[2];
   
  +    server = argv[1];
  +    port = argv[2];
  +
       pAny->_array[0] = strdup("<queryExpression><queryByServiceDataNames xsi:type=\"ns1:QNamesType\"
xmlns:ns1=\"http://www.gridforum.org/namespaces/2003/03/OGSI\"><name>serviceDataName</name></queryByServiceDataNames></queryExpression>");
       pAny->_array[1] = strdup("<getQuoteResponse xmlns=\"http://www.getquote.org/test\"><result><name>Widgets
Inc.</name><symbol>WID</symbol><public>true</public></result></getQuoteResponse>");
   
       string str;
       try{
  -
  -        ExtensibilityQueryPortType* pStub = new ExtensibilityQueryPortType("http://localhost:9090/axis/testXSDANY",APTHTTP);
  +	sprintf(endpoint, "http://%s:%s/axis/testXSDANY", server, port);
  +        printf("endpoint:%s\n", endpoint);
  +        //ExtensibilityQueryPortType* pStub = new ExtensibilityQueryPortType("http://localhost:5555/axis/testXSDANY",APTHTTP);
  +        ExtensibilityQueryPortType* pStub = new ExtensibilityQueryPortType(endpoint);
           AnyType* pAnyReturn = pStub->query(pAny);
   		if (!pAnyReturn)
   		{
  
  
  

Mime
View raw message